answer
stringlengths
15
1.25M
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
# $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 <API key>=32 .include <bsd.lib.mk>
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 "<SHA256-like>" license "GPL-2.0" bottle do cellar :any_skip_relocation sha256 "<SHA256-like>" => :catalina sha256 "<SHA256-like>" => :mojave sha256 "<SHA256-like>" => :high_sierra sha256 "<SHA256-like>" => :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
<!DOCTYPE html PUBLIC "- <html xmlns="http: <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#<API key>">SFMT.h</a> </li> <li>w128_t : <a class="el" href="_s_f_m_t_8h.html#<API key>">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 & <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.13 </small></address> </body> </html>
#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" /* Get the serial console UART configuration */ #ifdef HAVE_SERIAL_CONSOLE # if defined(<API key>) # 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(<API key>) # 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(<API key>) # 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(<API key>) # define NUC_UART_CLK <API key> #elif defined(<API key>) # define NUC_UART_CLK BOARD_PLL_FOUT #elif defined(<API key>) # define NUC_UART_CLK NUC_INTHI_FREQUENCY #endif #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 & <API key>) >> <API key>; } while (depth >= (NUC_CONSOLE_DEPTH-1)); #endif } #endif /* HAVE_SERIAL_CONSOLE */ 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 <API key> 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 <API key> 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(<API key>) || defined(<API key>) regval = getreg32(NUC_GCR_ALT_MFP); regval &= ~GCR_ALT_MFP_EBI_EN; #ifdef <API key> regval &= ~(<API key> | <API key>); #endif putreg32(NUC_GCR_ALT_MFP); #endif /* <API key> || <API key> */ #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 |= <API key>; putreg32(regval, NUC_GCR_IPRSTC2); regval &= ~<API key>; putreg32(regval, NUC_GCR_IPRSTC2); #endif #ifdef CONFIG_NUC_UART1 regval |= <API key>; putreg32(regval, NUC_GCR_IPRSTC2); regval &= ~<API key>; putreg32(regval, NUC_GCR_IPRSTC2); #endif #ifdef CONFIG_NUC_UART2 regval |= <API key>; putreg32(regval, NUC_GCR_IPRSTC2); regval &= ~<API key>; 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 &= ~<API key>; #if defined(<API key>) regval |= <API key>; #elif defined(<API key>) regval |= <API key>; #elif defined(<API key>) regval |= <API key>; #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 */ } 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 */ } #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 + <API key>); /* 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 &= ~<API key>; regval |= UART_BAUD_DIVIDER_X(divx); brd -= 2; break; } } } } regval &= ~UART_BAUD_BRD_MASK; regval |= UART_BAUD_BRD(brd); putreg32(regval, base + <API key>); } #endif /* HAVE_UART */
require "language/haskell" class Purescript < Formula include Language::Haskell::Cabal desc "Strongly typed programming language that compiles to JavaScript" homepage "http: url "https://github.com/purescript/purescript/archive/v0.11.7.tar.gz" sha256 "<SHA256-like>" head "https://github.com/purescript/purescript.git" bottle do cellar :any_skip_relocation sha256 "<SHA256-like>" => :high_sierra sha256 "<SHA256-like>" => :sierra sha256 "<SHA256-like>" => :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 <API key> "-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
#ifndef HTMLButtonElement_h #define HTMLButtonElement_h #include "<API key>.h" namespace WebCore { class HTMLButtonElement : public <API key> { public: static PassRefPtr<HTMLButtonElement> create(const QualifiedName&, Document*, HTMLFormElement*); void setType(const AtomicString&); String value() const; virtual bool <API key>() 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 <API key>() OVERRIDE; virtual void parseAttribute(const Attribute&) OVERRIDE; virtual bool <API key>(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 <API key>() 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 <API key>() const { return true; } virtual bool recalcWillValidate() const; Type m_type; bool m_isActivatedSubmit; }; } // namespace #endif
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); <API key>(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) { <API key>(); 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 <API key>(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 <API key>() { return numVisibleItems * itemHeight; } @Override public int <API key>() { 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() { <API key>(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(); <API key>(); super.beforeRemoveFromGUI(gui); } @Override public void insertChild(Widget child, int index) throws <API key> { throw new <API key>(); } @Override public void removeAllChildren() throws <API key> { throw new <API key>(); } @Override public Widget removeChild(int index) throws <API key> { throw new <API key>(); } private void addListener() { if(model != null) { model.addChangeListener(listener); } } private void removeListener() { if(model != null) { model.<API key>(listener); } } private void addSelectedListener() { if(selectedModel != null) { selectedModel.addCallback(listener); syncSelected(); } } private void <API key>() { 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() { } } }
#include <sys/cdefs.h> #include <stdlib.h> #include "rtld_lock.h" #include "thr_private.h" static int _thr_rtld_clr_flag(int); static void *<API key>(void); static void <API key>(void *); static void <API key>(void *); static void <API key>(void *); static int _thr_rtld_set_flag(int); static void <API key>(void *); #ifdef NOTYET static void * <API key>(void) { pthread_rwlock_t prwlock; if (<API key>(&prwlock, NULL)) return (NULL); return (prwlock); } static void <API key>(void *lock) { pthread_rwlock_t prwlock; prwlock = (pthread_rwlock_t)lock; if (prwlock != NULL) <API key>(&prwlock); } static void <API key>(void *lock) { pthread_rwlock_t prwlock; prwlock = (pthread_rwlock_t)lock; _thr_rwlock_rdlock(&prwlock); } static void <API key>(void *lock) { pthread_rwlock_t prwlock; prwlock = (pthread_rwlock_t)lock; _thr_rwlock_wrlock(&prwlock); } static void <API key>(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 = <API key>; li.lock_destroy = <API key>; li.rlock_acquire = <API key>; li.wlock_acquire = <API key>; li.lock_release = <API key>; 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 * <API key>(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 <API key>(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 <API key>(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 <API key>(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 <API key>(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 = <API key>; li.lock_destroy = <API key>; li.rlock_acquire = <API key>; li.wlock_acquire = <API key>; li.lock_release = <API key>; 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); }
<!DOCTYPE HTML PUBLIC "- <!--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("<API key>.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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >QAbstractListModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >QAbstractListModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >QAbstractTableModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >QAbstractFileEngine</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >QAbstractListModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >QAbstractItemModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >QAbstractTableModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >QAbstractItemModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >QAbstractItemModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >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%<API key>" ><API key></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%<API key>" >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%<API key>" >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%<API key>" >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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionFrameV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionFrameV2</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionSpinBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionSpinBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionSlider</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionSlider</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionButton</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionHeader</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionHeader</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionToolBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionToolBar</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QItemSelectionModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QItemSelectionModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QSyntaxHighlighter</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QSyntaxHighlighter</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsItemGroup</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsItemGroup</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsPixmapItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsPixmapItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QToolBarChangeEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QToolBarChangeEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractProxyModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractProxyModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStandardItemModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStandardItemModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QTextBlockUserData</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QTextBlockUserData</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionToolBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionToolBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionToolBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionFrameV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrame" >QStyleOptionFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrintDialog" >QPrintDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPathItem" >QGraphicsPathItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsRectItem" >QGraphicsRectItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsSceneEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsSceneEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsSceneEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsSceneEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsSceneEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsSceneEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsSceneEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsSceneEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionSpinBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionSlider</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionComplex</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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%<API key>" ><API key></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%<API key>" ><API key></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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsItemGroup</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsPixmapItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollArea" >QScrollArea</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsView" >QGraphicsView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextEdit" >QTextEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractScrollArea</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >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%<API key>" >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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionFrameV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionSpinBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionSlider</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionHeader</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionToolBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionToolBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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" ><API key> (<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" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionComplex</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><API key> (<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%<API key>" ><API key></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%<API key>" ><API key></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%<API key>" >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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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" ><API key> (<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="<API key>.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="<API key>.html#t%3APointF" >PointF</A >))</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTranslator" >QTranslator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%3AQMimeData" >QMimeData</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFileOpenEvent" >QFileOpenEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%3AQChildEvent" >QChildEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimerEvent" >QTimerEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >QAbstractListModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPolygonF" >QPolygonF</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >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" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%3AQModelIndex" >QModelIndex</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDataStream" >QDataStream</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTextCodec" >QTextCodec</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFile" >QFile</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%3AQIODevice" >QIODevice</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >QAbstractListModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >QAbstractTableModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Core.html#t%<API key>" >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%<API key>" ><API key></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%<API key>" >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%<API key>" >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%<API key>" >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" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStatusBar" >QStatusBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSizeGrip" >QSizeGrip</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRubberBand" >QRubberBand</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialogButtonBox" >QDialogButtonBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQProgressBar" >QProgressBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabWidget" >QTabWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplashScreen" >QSplashScreen</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFocusFrame" >QFocusFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMainWindow" >QMainWindow</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplitterHandle" >QSplitterHandle</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDesktopWidget" >QDesktopWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLineEdit" >QLineEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleValidator" >QDoubleValidator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIntValidator" >QIntValidator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRegExpValidator" >QRegExpValidator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTableFormat" >QTextTableFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTable" >QTextTable</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextListFormat" >QTextListFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockFormat" >QTextBlockFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextImageFormat" >QTextImageFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextList" >QTextList</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabV2" >QStyleOptionTabV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionFrameV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionSlider</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionHeader</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionToolBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QItemSelectionModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQActionGroup" >QActionGroup</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsTextItem" >QGraphicsTextItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoGroup" >QUndoGroup</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsScene" >QGraphicsScene</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQClipboard" >QClipboard</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSystemTrayIcon" >QSystemTrayIcon</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDataWidgetMapper" >QDataWidgetMapper</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputContext" >QInputContext</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoStack" >QUndoStack</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCompleter" >QCompleter</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QSyntaxHighlighter</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></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" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextDocument" >QTextDocument</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpacerItem" >QSpacerItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStackedLayout" >QStackedLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGridLayout" >QGridLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQContextMenuEvent" >QContextMenuEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabletEvent" >QTabletEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWheelEvent" >QWheelEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQKeyEvent" >QKeyEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMouseEvent" >QMouseEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconEngineV2" >QIconEngineV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsItemGroup</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsPixmapItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsLineItem" >QGraphicsLineItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadialGradient" >QRadialGradient</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQConicalGradient" >QConicalGradient</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLinearGradient" >QLinearGradient</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplitter" >QSplitter</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStackedWidget" >QStackedWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMoveEvent" >QMoveEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCloseEvent" >QCloseEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQShortcutEvent" >QShortcutEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHideEvent" >QHideEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragLeaveEvent" >QDragLeaveEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStatusTipEvent" >QStatusTipEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHelpEvent" >QHelpEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQResizeEvent" >QResizeEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFocusEvent" >QFocusEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputMethodEvent" >QInputMethodEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQActionEvent" >QActionEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQShowEvent" >QShowEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconDragEvent" >QIconDragEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QToolBarChangeEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHoverEvent" >QHoverEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintEvent" >QPaintEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragEnterEvent" >QDragEnterEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQProgressDialog" >QProgressDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontDialog" >QFontDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFileDialog" >QFileDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQErrorMessage" >QErrorMessage</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMessageBox" >QMessageBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColorDialog" >QColorDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateEdit" >QDateEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTimeEdit" >QTimeEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWindowsStyle" >QWindowsStyle</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontComboBox" >QFontComboBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHBoxLayout" >QHBoxLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleSpinBox" >QDoubleSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollArea" >QScrollArea</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsView" >QGraphicsView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrintDialog" >QPrintDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QAbstractProxyModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStandardItemModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDirModel" >QDirModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPathItem" >QGraphicsPathItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsRectItem" >QGraphicsRectItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolButton" >QToolButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCheckBox" >QCheckBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadioButton" >QRadioButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPushButton" >QPushButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontMetricsF" >QFontMetricsF</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextLength" >QTextLength</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStandardItem" >QStandardItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidgetItem" >QTreeWidgetItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQKeySequence" >QKeySequence</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintEngine" >QPaintEngine</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColormap" >QColormap</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></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" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQItemSelection" >QItemSelection</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontMetrics" >QFontMetrics</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTableCell" >QTextTableCell</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFragment" >QTextFragment</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSizePolicy" >QSizePolicy</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontInfo" >QFontInfo</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPixmapCache" >QPixmapCache</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleHintReturn" >QStyleHintReturn</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QTextBlockUserData</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPainterPath" >QPainterPath</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidgetItem" >QTableWidgetItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextOption" >QTextOption</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontComboBox" >QFontComboBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQComboBox" >QComboBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTable" >QTextTable</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrame" >QTextFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextList" >QTextList</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockGroup" >QTextBlockGroup</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextImageFormat" >QTextImageFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextCharFormat" >QTextCharFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTableFormat" >QTextTableFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrameFormat" >QTextFrameFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionToolBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabV2" >QStyleOptionTabV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTab" >QStyleOptionTab</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionFrameV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrame" >QStyleOptionFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWindowsStyle" >QWindowsStyle</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragEnterEvent" >QDragEnterEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragMoveEvent" >QDragMoveEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrintDialog" >QPrintDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextEdit" >QTextEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconEngineV2" >QIconEngineV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconEngine" >QIconEngine</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHBoxLayout" >QHBoxLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQVBoxLayout" >QVBoxLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBoxLayout" >QBoxLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragEnterEvent" >QDragEnterEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragMoveEvent" >QDragMoveEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDropEvent" >QDropEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateEdit" >QDateEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTimeEdit" >QTimeEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateTimeEdit" >QDateTimeEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMimeSource" >QMimeSource</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollBar" >QScrollBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDial" >QDial</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSlider" >QSlider</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSlider" >QAbstractSlider</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleValidator" >QDoubleValidator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIntValidator" >QIntValidator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRegExpValidator" >QRegExpValidator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQValidator" >QValidator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadialGradient" >QRadialGradient</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQConicalGradient" >QConicalGradient</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLinearGradient" >QLinearGradient</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGradient" >QGradient</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolButton" >QToolButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCheckBox" >QCheckBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadioButton" >QRadioButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPushButton" >QPushButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractButton" >QAbstractButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTable" >QTextTable</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextList" >QTextList</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrame" >QTextFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockGroup" >QTextBlockGroup</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextObject" >QTextObject</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQContextMenuEvent" >QContextMenuEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabletEvent" >QTabletEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWheelEvent" >QWheelEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQKeyEvent" >QKeyEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMouseEvent" >QMouseEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputEvent" >QInputEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateEdit" >QDateEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTimeEdit" >QTimeEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpinBox" >QSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleSpinBox" >QDoubleSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateTimeEdit" >QDateTimeEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPathItem" >QGraphicsPathItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsRectItem" >QGraphicsRectItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsSceneEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTableFormat" >QTextTableFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextListFormat" >QTextListFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockFormat" >QTextBlockFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextImageFormat" >QTextImageFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextCharFormat" >QTextCharFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrameFormat" >QTextFrameFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFormat" >QTextFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpacerItem" >QSpacerItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLayoutItem" >QLayoutItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionSlider</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionComplex</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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%<API key>" ><API key></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%<API key>" ><API key></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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsItemGroup</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QGraphicsPixmapItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsLineItem" >QGraphicsLineItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPathItem" >QGraphicsPathItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsRectItem" >QGraphicsRectItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollArea" >QScrollArea</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsView" >QGraphicsView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextEdit" >QTextEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >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%<API key>" >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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabV2" >QStyleOptionTabV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionFrameV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionSlider</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionHeader</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionToolBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionToolBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTab" >QStyleOptionTab</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrame" >QStyleOptionFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" ><API key></A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%<API key>" >QStyleOptionComplex</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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%<API key>" ><API key></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%<API key>" ><API key></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%<API key>" >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" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBitmap" >QBitmap</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQImage" >QImage</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrinter" >QPrinter</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPicture" >QPicture</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPixmap" >QPixmap</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" ><API key> a r =&gt; <API key> (<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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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%<API key>" ></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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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%<API key>" >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%<API key>" ></A ></A ><B >TQTextInlineObject</B > a = <A HREF="Qtc-Classes-Types.html#t%<API key>" >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%<API key>" ></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:<API key>" ><A NAME="t%<API key>" ></A ></A ><B ><API key></B > a = <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > (<A HREF="Qtc-Classes-Types.html#t%<API key>" ><API key></A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:<API key>" ><A NAME="t%<API key>" ></A ></A ><B ><API key></B > a = <A HREF="Qtc-Classes-Types.html#t%<API key>" ><API key></A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:<API key>" ><A NAME="t%<API key>" ></A ></A ><B ><API key></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%<API key>" >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%<API key>" ></A ></A ><B >TQImageTextKeyLang</B > a = <A HREF="Qtc-Classes-Types.html#t%<API key>" >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%<API key>" ></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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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%<API key>" ></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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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%<API key>" ></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%<API key>" ></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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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%<API key>" ></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:<API key>" ><A NAME="v%<API key>" ></A ></A ><B ><API key></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" ><API key></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="botbar" >Produced by <A HREF="http: >Haddock</A > version 2.4.2</TD ></TR ></TABLE ></BODY ></HTML >
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 <API key>(name); } if (n_p.Length == 1) { return result; } var ctor = result.GetType().GetConstructor(new Type[] { }); if (ctor == null) { throw new <API key>(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 <API key>(name); } item.SetParameters(parameters); return item; } catch (Exception ex) { throw new <API key>(string.Format( "Cannot construct repository item: {0}", ex.Message), ex); } } } }
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.<API key> resources = new System.ComponentModel.<API key>(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.<API key>; 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.<API key> = 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.<API key>(this.<API key>); // 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; } }
class Cpm < Formula desc "Fast CPAN module installer" homepage "https://metacpan.org/pod/cpm" url "https://cpan.metacpan.org/authors/id/S/SK/SKAJI/App-cpm-0.997002.tar.gz" sha256 "<SHA256-like>" license any_of: ["Artistic-1.0-Perl", "GPL-1.0-or-later"] head "https://github.com/skaji/cpm.git" bottle do sha256 cellar: :any_skip_relocation, arm64_big_sur: "<SHA256-like>" sha256 cellar: :any_skip_relocation, big_sur: "<SHA256-like>" sha256 cellar: :any_skip_relocation, catalina: "<SHA256-like>" sha256 cellar: :any_skip_relocation, mojave: "<SHA256-like>" end depends_on "perl" resource "Module::Build::Tiny" do url "https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-Tiny-0.039.tar.gz" sha256 "<SHA256-like>" end resource "CPAN::Common::Index" do url "https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Common-Index-0.010.tar.gz" sha256 "<SHA256-like>" end resource "CPAN::DistnameInfo" do url "https://cpan.metacpan.org/authors/id/G/GB/GBARR/CPAN-DistnameInfo-0.12.tar.gz" sha256 "<SHA256-like>" end resource "CPAN::Meta::Check" do url "https://cpan.metacpan.org/authors/id/L/LE/LEONT/CPAN-Meta-Check-0.014.tar.gz" sha256 "<SHA256-like>" end resource "Capture::Tiny" do url "https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Capture-Tiny-0.48.tar.gz" sha256 "<SHA256-like>" end resource "Class::Tiny" do url "https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Class-Tiny-1.008.tar.gz" sha256 "<SHA256-like>" end resource "Command::Runner" do url "https://cpan.metacpan.org/authors/id/S/SK/SKAJI/Command-Runner-0.103.tar.gz" sha256 "<SHA256-like>" end resource "ExtUtils::Config" do url "https://cpan.metacpan.org/authors/id/L/LE/LEONT/ExtUtils-Config-0.008.tar.gz" sha256 "<SHA256-like>" end resource "ExtUtils::Helpers" do url "https://cpan.metacpan.org/authors/id/L/LE/LEONT/ExtUtils-Helpers-0.026.tar.gz" sha256 "<SHA256-like>" end resource "ExtUtils::InstallPaths" do url "https://cpan.metacpan.org/authors/id/L/LE/LEONT/<API key>.012.tar.gz" sha256 "<SHA256-like>" end resource "ExtUtils::MakeMaker::CPANfile" do url "https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/<API key>.09.tar.gz" sha256 "<SHA256-like>" end resource "File::Copy::Recursive" do url "https://cpan.metacpan.org/authors/id/D/DM/DMUEY/<API key>.45.tar.gz" sha256 "<SHA256-like>" end resource "File::Which" do url "https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/File-Which-1.23.tar.gz" sha256 "<SHA256-like>" end resource "File::pushd" do url "https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/File-pushd-1.016.tar.gz" sha256 "<SHA256-like>" end resource "HTTP::Tinyish" do url "https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/HTTP-Tinyish-0.17.tar.gz" sha256 "<SHA256-like>" end resource "IPC::Run3" do url "https://cpan.metacpan.org/authors/id/R/RJ/RJBS/IPC-Run3-0.048.tar.gz" sha256 "<SHA256-like>" end resource "Menlo" do url "https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Menlo-1.9019.tar.gz" sha256 "<SHA256-like>" end resource "Menlo::Legacy" do url "https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Menlo-Legacy-1.9022.tar.gz" sha256 "<SHA256-like>" end resource "Module::CPANfile" do url "https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Module-CPANfile-1.1004.tar.gz" sha256 "<SHA256-like>" end resource "Parallel::Pipes" do url "https://cpan.metacpan.org/authors/id/S/SK/SKAJI/Parallel-Pipes-0.005.tar.gz" sha256 "<SHA256-like>" end resource "Parse::PMFile" do url "https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/Parse-PMFile-0.43.tar.gz" sha256 "<SHA256-like>" end resource "String::ShellQuote" do url "https://cpan.metacpan.org/authors/id/R/RO/ROSCH/String-ShellQuote-1.04.tar.gz" sha256 "<SHA256-like>" end resource "Tie::Handle::Offset" do url "https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Tie-Handle-Offset-0.004.tar.gz" sha256 "<SHA256-like>" end resource "URI" do url "https://cpan.metacpan.org/authors/id/O/OA/OALDERS/URI-5.07.tar.gz" sha256 "<SHA256-like>" end resource "Win32::ShellQuote" do url "https://cpan.metacpan.org/authors/id/H/HA/HAARG/Win32-ShellQuote-0.003001.tar.gz" sha256 "<SHA256-like>" end resource "YAML::PP" do url "https://cpan.metacpan.org/authors/id/T/TI/TINITA/YAML-PP-0.026.tar.gz" sha256 "<SHA256-like>" end resource "local::lib" do url "https://cpan.metacpan.org/authors/id/H/HA/HAARG/local-lib-2.000024.tar.gz" sha256 "<SHA256-like>" end def install ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5" build_pl = [ "Module::Build::Tiny", "Command::Runner", "Parallel::Pipes", ] resources.each do |r| r.stage do next if build_pl.include? r.name system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}" system "make", "install" end end build_pl.each do |name| resource(name).stage do system "perl", "Build.PL", "--install_base", libexec system "./Build" system "./Build", "install" end end system "perl", "Build.PL", "--install_base", libexec system "./Build" system "./Build", "install" (bin/"cpm").write_env_script("#{libexec}/bin/cpm", PERL5LIB: ENV["PERL5LIB"]) man1.install_symlink libexec/"man/man1/cpm.1" man3.install_symlink Dir[libexec/"man/man3/App::cpm*"].reject { |f| File.empty?(f) } end test do system bin/"cpm", "install", "Perl::Tutorial" expected = <<~EOS NAME Perl::Tutorial::HelloWorld - Hello World for Perl SYNOPSIS #!/usr/bin/perl # The traditional first program. # Strict and warnings are recommended. use strict; use warnings; # Print a message. print "Hello, World!\\n"; EOS assert_match expected, shell_output("PERL5LIB=local/lib/perl5 perldoc Perl::Tutorial::HelloWorld") end end
package tcp import ( "expvar" "fmt" "time" "github.com/elastic/beats/libbeat/common" "github.com/elastic/beats/libbeat/logp" "github.com/elastic/beats/packetbeat/flows" "github.com/elastic/beats/packetbeat/protos" "github.com/tsg/gopacket/layers" ) const <API key> = 10 * (1 << 20) const ( TcpDirectionReverse = 0 <API key> = 1 ) type Tcp struct { id uint32 streams *common.Cache portMap map[uint16]protos.Protocol protocols protos.Protocols } type Processor interface { Process(flow *flows.FlowID, hdr *layers.TCP, pkt *protos.Packet) } var ( <API key> = expvar.NewInt("tcp.<API key>") ) type seqCompare int const ( seqLT seqCompare = -1 seqEq seqCompare = 0 seqGT seqCompare = 1 ) var ( debugf = logp.MakeDebug("tcp") isDebug = false ) func (tcp *Tcp) getId() uint32 { tcp.id += 1 return tcp.id } func (tcp *Tcp) decideProtocol(tuple *common.IpPortTuple) protos.Protocol { protocol, exists := tcp.portMap[tuple.Src_port] if exists { return protocol } protocol, exists = tcp.portMap[tuple.Dst_port] if exists { return protocol } return protos.UnknownProtocol } func (tcp *Tcp) findStream(k common.HashableIpPortTuple) *TcpConnection { v := tcp.streams.Get(k) if v != nil { return v.(*TcpConnection) } return nil } type TcpConnection struct { id uint32 tuple *common.IpPortTuple protocol protos.Protocol tcptuple common.TcpTuple tcp *Tcp lastSeq [2]uint32 // protocols private data data protos.ProtocolData } type TcpStream struct { conn *TcpConnection dir uint8 } func (conn *TcpConnection) String() string { return fmt.Sprintf("TcpStream id[%d] tuple[%s] protocol[%s] lastSeq[%d %d]", conn.id, conn.tuple, conn.protocol, conn.lastSeq[0], conn.lastSeq[1]) } func (stream *TcpStream) addPacket(pkt *protos.Packet, tcphdr *layers.TCP) { conn := stream.conn mod := conn.tcp.protocols.GetTcp(conn.protocol) if mod == nil { if isDebug { protocol := conn.protocol debugf("Ignoring protocol for which we have no module loaded: %s", protocol) } return } if len(pkt.Payload) > 0 { conn.data = mod.Parse(pkt, &conn.tcptuple, stream.dir, conn.data) } if tcphdr.FIN { conn.data = mod.ReceivedFin(&conn.tcptuple, stream.dir, conn.data) } } func (stream *TcpStream) gapInStream(nbytes int) (drop bool) { conn := stream.conn mod := conn.tcp.protocols.GetTcp(conn.protocol) conn.data, drop = mod.GapInStream(&conn.tcptuple, stream.dir, nbytes, conn.data) return drop } func (tcp *Tcp) Process(id *flows.FlowID, tcphdr *layers.TCP, pkt *protos.Packet) { // This Recover should catch all exceptions in // protocol modules. defer logp.Recover("Process tcp exception") stream, created := tcp.getStream(pkt) if stream.conn == nil { return } conn := stream.conn if id != nil { id.AddConnectionID(uint64(conn.id)) } if isDebug { debugf("tcp flow id: %p", id) } if len(pkt.Payload) == 0 && !tcphdr.FIN { // return early if packet is not interesting. Still need to find/create // stream first in order to update the TCP stream timer return } tcpStartSeq := tcphdr.Seq tcpSeq := tcpStartSeq + uint32(len(pkt.Payload)) lastSeq := conn.lastSeq[stream.dir] if isDebug { debugf("pkt.start_seq=%v pkt.last_seq=%v stream.last_seq=%v (len=%d)", tcpStartSeq, tcpSeq, lastSeq, len(pkt.Payload)) } if len(pkt.Payload) > 0 && lastSeq != 0 { if tcpSeqBeforeEq(tcpSeq, lastSeq) { if isDebug { debugf("Ignoring retransmitted segment. pkt.seq=%v len=%v stream.seq=%v", tcphdr.Seq, len(pkt.Payload), lastSeq) } return } switch tcpSeqCompare(lastSeq, tcpStartSeq) { case seqLT: // lastSeq < tcpStartSeq => Gap in tcp stream detected if created { break } gap := int(tcpStartSeq - lastSeq) debugf("Gap in tcp stream. last_seq: %d, seq: %d, gap: %d", lastSeq, tcpStartSeq, gap) drop := stream.gapInStream(gap) if drop { if isDebug { debugf("Dropping connection state because of gap") } <API key>.Add(1) // drop application layer connection state and // update stream_id for app layer analysers using stream_id for lookups conn.id = tcp.getId() conn.data = nil } case seqGT: // lastSeq > tcpStartSeq => overlapping TCP segment detected. shrink packet delta := lastSeq - tcpStartSeq if isDebug { debugf("Overlapping tcp segment. last_seq %d, seq: %d, delta: %d", lastSeq, tcpStartSeq, delta) } pkt.Payload = pkt.Payload[delta:] tcphdr.Seq += delta } } conn.lastSeq[stream.dir] = tcpSeq stream.addPacket(pkt, tcphdr) } func (tcp *Tcp) getStream(pkt *protos.Packet) (stream TcpStream, created bool) { if conn := tcp.findStream(pkt.Tuple.Hashable()); conn != nil { return TcpStream{conn: conn, dir: <API key>}, false } if conn := tcp.findStream(pkt.Tuple.RevHashable()); conn != nil { return TcpStream{conn: conn, dir: TcpDirectionReverse}, false } protocol := tcp.decideProtocol(&pkt.Tuple) if protocol == protos.UnknownProtocol { // don't follow return TcpStream{}, false } var timeout time.Duration mod := tcp.protocols.GetTcp(protocol) if mod != nil { timeout = mod.ConnectionTimeout() } if isDebug { t := pkt.Tuple debugf("Connection src[%s:%d] dst[%s:%d] doesn't exist, creating new", t.Src_ip.String(), t.Src_port, t.Dst_ip.String(), t.Dst_port) } conn := &TcpConnection{ id: tcp.getId(), tuple: &pkt.Tuple, protocol: protocol, tcp: tcp} conn.tcptuple = common.TcpTupleFromIpPort(conn.tuple, conn.id) tcp.streams.PutWithTimeout(pkt.Tuple.Hashable(), conn, timeout) return TcpStream{conn: conn, dir: <API key>}, true } func tcpSeqCompare(seq1, seq2 uint32) seqCompare { i := int32(seq1 - seq2) switch { case i == 0: return seqEq case i < 0: return seqLT default: return seqGT } } func tcpSeqBefore(seq1 uint32, seq2 uint32) bool { return int32(seq1-seq2) < 0 } func tcpSeqBeforeEq(seq1 uint32, seq2 uint32) bool { return int32(seq1-seq2) <= 0 } func buildPortsMap(plugins map[protos.Protocol]protos.TcpPlugin) (map[uint16]protos.Protocol, error) { var res = map[uint16]protos.Protocol{} for proto, protoPlugin := range plugins { for _, port := range protoPlugin.GetPorts() { old_proto, exists := res[uint16(port)] if exists { if old_proto == proto { continue } return nil, fmt.Errorf("Duplicate port (%d) exists in %s and %s protocols", port, old_proto, proto) } res[uint16(port)] = proto } } return res, nil } // Creates and returns a new Tcp. func NewTcp(p protos.Protocols) (*Tcp, error) { isDebug = logp.IsDebug("tcp") portMap, err := buildPortsMap(p.GetAllTcp()) if err != nil { return nil, err } tcp := &Tcp{ protocols: p, portMap: portMap, streams: common.NewCache( protos.<API key>, protos.<API key>), } tcp.streams.StartJanitor(protos.<API key>) if isDebug { debugf("tcp", "Port map: %v", portMap) } return tcp, nil }
import batoid import numpy as np from test_helpers import timer, do_pickle, all_obj_diff, init_gpu, rays_allclose @timer def test_properties(): rng = np.random.default_rng(5) for i in range(100): R = rng.normal(0.0, 0.3) # negative allowed sphere = batoid.Sphere(R) assert sphere.R == R do_pickle(sphere) @timer def test_sag(): rng = np.random.default_rng(57) for i in range(100): R = 1./rng.normal(0.0, 0.3) sphere = batoid.Sphere(R) for j in range(10): x = rng.uniform(-0.7*abs(R), 0.7*abs(R)) y = rng.uniform(-0.7*abs(R), 0.7*abs(R)) result = sphere.sag(x, y) np.testing.assert_allclose( result, R*(1-np.sqrt(1.0-(x*x + y*y)/R/R)) ) # Check that it returned a scalar float and not an array assert isinstance(result, float) # Check 0,0 np.testing.assert_allclose(sphere.sag(0, 0), 0.0, rtol=0, atol=1e-17) # Check vectorization x = rng.uniform(-0.7*abs(R), 0.7*abs(R), size=(10, 10)) y = rng.uniform(-0.7*abs(R), 0.7*abs(R), size=(10, 10)) np.testing.assert_allclose( sphere.sag(x, y), R*(1-np.sqrt(1.0-(x*x + y*y)/R/R)) ) # Make sure non-unit stride arrays also work np.testing.assert_allclose( sphere.sag(x[::5,::2], y[::5,::2]), R*(1-np.sqrt(1.0-(x*x + y*y)/R/R))[::5,::2] ) do_pickle(sphere) @timer def test_normal(): rng = np.random.default_rng(577) for i in range(100): R = 1./rng.normal(0.0, 0.3) sphere = batoid.Sphere(R) for j in range(10): x = rng.uniform(-0.7*abs(R), 0.7*abs(R)) y = rng.uniform(-0.7*abs(R), 0.7*abs(R)) result = sphere.normal(x, y) r = np.hypot(x, y) rat = r/R dzdr = rat/np.sqrt(1-rat*rat) nz = 1/np.sqrt(1+dzdr*dzdr) normal = np.array([-x/r*dzdr*nz, -y/r*dzdr*nz, nz]) np.testing.assert_allclose(result, normal) # Check 0,0 np.testing.assert_equal(sphere.normal(0, 0), np.array([0, 0, 1])) # Check vectorization x = rng.uniform(-0.7*abs(R), 0.7*abs(R), size=(10, 10)) y = rng.uniform(-0.7*abs(R), 0.7*abs(R), size=(10, 10)) r = np.hypot(x, y) rat = r/R dzdr = rat/np.sqrt(1-rat*rat) nz = 1/np.sqrt(1+dzdr*dzdr) normal = np.dstack([-x/r*dzdr*nz, -y/r*dzdr*nz, nz]) np.testing.assert_allclose( sphere.normal(x, y), normal ) # Make sure non-unit stride arrays also work np.testing.assert_allclose( sphere.normal(x[::5,::2], y[::5,::2]), normal[::5, ::2] ) @timer def test_intersect(): rng = np.random.default_rng(5772) size = 10_000 for i in range(100): R = 1./rng.normal(0.0, 0.3) sphereCoordSys = batoid.CoordSys(origin=[0, 0, -1]) sphere = batoid.Sphere(R) x = rng.uniform(-0.3*abs(R), 0.3*abs(R), size=size) y = rng.uniform(-0.3*abs(R), 0.3*abs(R), size=size) z = np.full_like(x, -2*abs(R)) # If we shoot rays straight up, then it's easy to predict the intersection vx = np.zeros_like(x) vy = np.zeros_like(x) vz = np.ones_like(x) rv = batoid.RayVector(x, y, z, vx, vy, vz) np.testing.assert_allclose(rv.z, -2*abs(R)) rv2 = batoid.intersect(sphere, rv.copy(), sphereCoordSys) assert rv2.coordSys == sphereCoordSys rv2 = rv2.toCoordSys(batoid.CoordSys()) np.testing.assert_allclose(rv2.x, x) np.testing.assert_allclose(rv2.y, y) np.testing.assert_allclose(rv2.z, sphere.sag(x, y)-1, rtol=0, atol=1e-9) # Check default intersect coordTransform rv2 = rv.copy().toCoordSys(sphereCoordSys) batoid.intersect(sphere, rv2) assert rv2.coordSys == sphereCoordSys rv2 = rv2.toCoordSys(batoid.CoordSys()) np.testing.assert_allclose(rv2.x, x) np.testing.assert_allclose(rv2.y, y) np.testing.assert_allclose(rv2.z, sphere.sag(x, y)-1, rtol=0, atol=1e-9) @timer def test_reflect(): rng = np.random.default_rng(57721) size = 10_000 for i in range(100): R = 1./rng.normal(0.0, 0.3) sphere = batoid.Sphere(R) x = rng.uniform(-0.3*abs(R), 0.3*abs(R), size=size) y = rng.uniform(-0.3*abs(R), 0.3*abs(R), size=size) z = np.full_like(x, -2*abs(R)) vx = rng.uniform(-1e-5, 1e-5, size=size) vy = rng.uniform(-1e-5, 1e-5, size=size) vz = np.full_like(x, 1) rv = batoid.RayVector(x, y, z, vx, vy, vz) rvr = batoid.reflect(sphere, rv.copy()) rvr2 = sphere.reflect(rv.copy()) rays_allclose(rvr, rvr2) # print(f"{np.sum(rvr.failed)/len(rvr)*100:.2f}% failed") normal = sphere.normal(rvr.x, rvr.y) # Test law of reflection a0 = np.einsum("ad,ad->a", normal, rv.v)[~rvr.failed] a1 = np.einsum("ad,ad->a", normal, -rvr.v)[~rvr.failed] np.testing.assert_allclose( a0, a1, rtol=0, atol=1e-12 ) # Test that rv.v, rvr.v and normal are all in the same plane np.testing.assert_allclose( np.einsum( "ad,ad->a", np.cross(normal, rv.v), rv.v )[~rvr.failed], 0.0, rtol=0, atol=1e-12 ) @timer def test_refract(): rng = np.random.default_rng(577215) size = 10_000 for i in range(100): R = 1./rng.normal(0.0, 0.3) sphere = batoid.Sphere(R) m0 = batoid.ConstMedium(rng.normal(1.2, 0.01)) m1 = batoid.ConstMedium(rng.normal(1.3, 0.01)) x = rng.uniform(-0.3*abs(R), 0.3*abs(R), size=size) y = rng.uniform(-0.3*abs(R), 0.3*abs(R), size=size) z = np.full_like(x, -2*abs(R)) vx = rng.uniform(-1e-5, 1e-5, size=size) vy = rng.uniform(-1e-5, 1e-5, size=size) vz = np.sqrt(1-vx*vx-vy*vy)/m0.n rv = batoid.RayVector(x, y, z, vx, vy, vz) rvr = batoid.refract(sphere, rv.copy(), m0, m1) rvr2 = sphere.refract(rv.copy(), m0, m1) rays_allclose(rvr, rvr2) # print(f"{np.sum(rvr.failed)/len(rvr)*100:.2f}% failed") normal = sphere.normal(rvr.x, rvr.y) # Test Snell's law s0 = np.sum(np.cross(normal, rv.v*m0.n)[~rvr.failed], axis=-1) s1 = np.sum(np.cross(normal, rvr.v*m1.n)[~rvr.failed], axis=-1) np.testing.assert_allclose( m0.n*s0, m1.n*s1, rtol=0, atol=1e-9 ) # Test that rv.v, rvr.v and normal are all in the same plane np.testing.assert_allclose( np.einsum( "ad,ad->a", np.cross(normal, rv.v), rv.v )[~rvr.failed], 0.0, rtol=0, atol=1e-12 ) @timer def test_ne(): objs = [ batoid.Sphere(1.0), batoid.Sphere(2.0), batoid.Plane() ] all_obj_diff(objs) @timer def test_fail(): sphere = batoid.Sphere(1.0) rv = batoid.RayVector(0, 10, 0, 0, 0, -1) # Too far to side rv2 = batoid.intersect(sphere, rv.copy()) np.testing.assert_equal(rv2.failed, np.array([True])) # This one passes rv = batoid.RayVector(0, 0, 0, 0, 0, -1) rv2 = batoid.intersect(sphere, rv.copy()) np.testing.assert_equal(rv2.failed, np.array([False])) if __name__ == '__main__': test_properties() test_sag() test_normal() test_intersect() test_reflect() test_refract() test_ne() test_fail()
#include "platform.h" #include "di_defs.h" #include "pc.h" #include "dqueue.h" #include "adapter.h" #include "entity.h" #include "um_xdi.h" #include "um_idi.h" #include "debuglib.h" #include "divasync.h" #define <API key> 64 extern void diva_os_wakeup_read(void *os_context); extern void <API key>(void *os_context); static LIST_HEAD(adapter_q); static diva_os_spin_lock_t adapter_lock; static <API key> *<API key>(dword nr); static void cleanup_adapter(<API key> *a); static void cleanup_entity(<API key> *e); static int <API key>(<API key> *a, <API key> *features); static int process_idi_request(<API key> *e, const <API key> *req); static int process_idi_rc(<API key> *e, byte rc); static int process_idi_ind(<API key> *e, byte ind); static int write_return_code(<API key> *e, byte rc); int <API key>(void) { <API key>(&adapter_lock, "adapter"); return (0); } static int <API key>(<API key> *a, <API key> * features) { IDI_SYNC_REQ sync_req; if ((a) && (a->d.request)) { features->type = a->d.type; features->features = a->d.features; features->channels = a->d.channels; memset(features->name, 0, sizeof(features->name)); sync_req.GetName.Req = 0; sync_req.GetName.Rc = <API key>; (*(a->d.request)) ((ENTITY *)&sync_req); strlcpy(features->name, sync_req.GetName.name, sizeof(features->name)); sync_req.GetSerial.Req = 0; sync_req.GetSerial.Rc = <API key>; sync_req.GetSerial.serial = 0; (*(a->d.request))((ENTITY *)&sync_req); features->serial_number = sync_req.GetSerial.serial; } return ((a) ? 0 : -1); } void <API key>(int adapter_nr) { struct list_head *tmp; <API key> *a; list_for_each(tmp, &adapter_q) { a = list_entry(tmp, <API key>, link); if (a->adapter_nr == adapter_nr) { list_del(tmp); cleanup_adapter(a); DBG_LOG(("DIDD: del adapter(%d)", a->adapter_nr)); diva_os_free(0, a); break; } } } void <API key>(void) { struct list_head *tmp, *safe; <API key> *a; list_for_each_safe(tmp, safe, &adapter_q) { a = list_entry(tmp, <API key>, link); list_del(tmp); cleanup_adapter(a); DBG_LOG(("DIDD: del adapter(%d)", a->adapter_nr)); diva_os_free(0, a); } <API key>(&adapter_lock, "adapter"); } int <API key>(const DESCRIPTOR *d, int adapter_nr) { <API key> old_irql; <API key> *a = (<API key> *) diva_os_malloc(0, sizeof (<API key>)); if (!a) { return (-1); } memset(a, 0x00, sizeof(*a)); INIT_LIST_HEAD(&a->entity_q); a->d = *d; a->adapter_nr = adapter_nr; DBG_LOG(("DIDD_ADD A(%d), type:%02x, features:%04x, channels:%d", adapter_nr, a->d.type, a->d.features, a->d.channels)); <API key>(&adapter_lock, &old_irql, "create_adapter"); list_add_tail(&a->link, &adapter_q); <API key>(&adapter_lock, &old_irql, "create_adapter"); return (0); } static <API key> *<API key>(dword nr) { <API key> *a = NULL; struct list_head *tmp; list_for_each(tmp, &adapter_q) { a = list_entry(tmp, <API key>, link); DBG_TRC(("find_adapter: (%d)-(%d)", nr, a->adapter_nr)); if (a->adapter_nr == (int)nr) break; a = NULL; } return (a); } static void cleanup_adapter(<API key> *a) { struct list_head *tmp, *safe; <API key> *e; list_for_each_safe(tmp, safe, &a->entity_q) { e = list_entry(tmp, <API key>, link); list_del(tmp); cleanup_entity(e); if (e->os_context) { diva_os_wakeup_read(e->os_context); <API key>(e->os_context); } } memset(&a->d, 0x00, sizeof(DESCRIPTOR)); } static void cleanup_entity(<API key> *e) { e->os_ref = NULL; e->status = 0; e->adapter = NULL; e->e.Id = 0; e->rc_count = 0; e->status |= DIVA_UM_IDI_REMOVED; e->status |= <API key>; diva_data_q_finit(&e->data); diva_data_q_finit(&e->rc); } void *<API key>(dword adapter_nr, void *file) { <API key> *e; <API key> *a; <API key> old_irql; if ((e = (<API key> *) diva_os_malloc(0, sizeof(*e)))) { memset(e, 0x00, sizeof(*e)); if (! (e->os_context = diva_os_malloc(0, <API key>()))) { DBG_LOG(("E(%08x) no memory for os context", e)); diva_os_free(0, e); return NULL; } memset(e->os_context, 0x00, <API key>()); if ((diva_data_q_init(&e->data, 2048 + 512, 16))) { diva_os_free(0, e->os_context); diva_os_free(0, e); return NULL; } if ((diva_data_q_init(&e->rc, sizeof(<API key>), 2))) { diva_data_q_finit(&e->data); diva_os_free(0, e->os_context); diva_os_free(0, e); return NULL; } <API key>(&adapter_lock, &old_irql, "create_entity"); /* Look for Adapter requested */ if (!(a = <API key>(adapter_nr))) { /* No adapter was found, or this adapter was removed */ <API key>(&adapter_lock, &old_irql, "create_entity"); DBG_LOG(("A: no adapter(%ld)", adapter_nr)); cleanup_entity(e); diva_os_free(0, e->os_context); diva_os_free(0, e); return NULL; } e->os_ref = file; /* link to os handle */ e->adapter = a; /* link to adapter */ list_add_tail(&e->link, &a->entity_q); /* link from adapter */ <API key>(&adapter_lock, &old_irql, "create_entity"); DBG_LOG(("A(%ld), create E(%08x)", adapter_nr, e)); } return (e); } int <API key>(int adapter_nr, void *entity) { <API key> *e; <API key> *a; <API key> old_irql; if (!(e = (<API key> *) entity)) return (-1); <API key>(&adapter_lock, &old_irql, "delete_entity"); if ((a = e->adapter)) { list_del(&e->link); } <API key>(&adapter_lock, &old_irql, "delete_entity"); <API key>(entity); cleanup_entity(e); diva_os_free(0, e->os_context); memset(e, 0x00, sizeof(*e)); diva_os_free(0, e); DBG_LOG(("A(%d) remove E:%08x", adapter_nr, e)); return (0); } int diva_um_idi_read(void *entity, void *os_handle, void *dst, int max_length, <API key> cp_fn) { <API key> *e; <API key> *a; const void *data; int length, ret = 0; <API key> *q; <API key> old_irql; <API key>(&adapter_lock, &old_irql, "read"); e = (<API key> *) entity; if (!e || (!(a = e->adapter)) || (e->status & <API key>) || (e->status & DIVA_UM_IDI_REMOVED) || (a->status & <API key>)) { <API key>(&adapter_lock, &old_irql, "read"); DBG_ERR(("E(%08x) read failed - adapter removed", e)) return (-1); } DBG_TRC(("A(%d) E(%08x) read(%d)", a->adapter_nr, e, max_length)); /* Try to read return code first */ data = <API key>(&e->rc); q = &e->rc; /* No return codes available, read indications now */ if (!data) { if (!(e->status & <API key>)) { DBG_TRC(("A(%d) E(%08x) read data", a->adapter_nr, e)); data = <API key>(&e->data); q = &e->data; } } else { e->status &= ~<API key>; DBG_TRC(("A(%d) E(%08x) read rc", a->adapter_nr, e)); } if (data) { if ((length = <API key>(q)) > max_length) { /* Not enough space to read message */ DBG_ERR(("A: A(%d) E(%08x) read small buffer", a->adapter_nr, e, ret)); <API key>(&adapter_lock, &old_irql, "read"); return (-2); } /* Copy it to user, this function does access ONLY locked an verified memory, also we can access it witch spin lock held */ if ((ret = (*cp_fn) (os_handle, dst, data, length)) >= 0) { /* Acknowledge only if read was successful */ <API key>(q); } } DBG_TRC(("A(%d) E(%08x) read=%d", a->adapter_nr, e, ret)); <API key>(&adapter_lock, &old_irql, "read"); return (ret); } int diva_um_idi_write(void *entity, void *os_handle, const void *src, int length, <API key> cp_fn) { <API key> *e; <API key> *a; <API key> *req; void *data; int ret = 0; <API key> old_irql; <API key>(&adapter_lock, &old_irql, "write"); e = (<API key> *) entity; if (!e || (!(a = e->adapter)) || (e->status & <API key>) || (e->status & DIVA_UM_IDI_REMOVED) || (a->status & <API key>)) { <API key>(&adapter_lock, &old_irql, "write"); DBG_ERR(("E(%08x) write failed - adapter removed", e)) return (-1); } DBG_TRC(("A(%d) E(%08x) write(%d)", a->adapter_nr, e, length)); if ((length < sizeof(*req)) || (length > sizeof(e->buffer))) { <API key>(&adapter_lock, &old_irql, "write"); return (-2); } if (e->status & <API key>) { DBG_ERR(("A: A(%d) E(%08x) rc pending", a->adapter_nr, e)); <API key>(&adapter_lock, &old_irql, "write"); return (-1); /* should wait for RC code first */ } /* Copy function does access only locked verified memory, also it can be called with spin lock held */ if ((ret = (*cp_fn) (os_handle, e->buffer, src, length)) < 0) { DBG_TRC(("A: A(%d) E(%08x) write error=%d", a->adapter_nr, e, ret)); <API key>(&adapter_lock, &old_irql, "write"); return (ret); } req = (<API key> *)&e->buffer[0]; switch (req->type) { case <API key>:{ DBG_LOG(("A(%d) get_features", a->adapter_nr)); if (!(data = <API key>(&e->data))) { DBG_ERR(("A(%d) get_features, no free buffer", a->adapter_nr)); <API key>(&adapter_lock, &old_irql, "write"); return (0); } <API key>(a, &(((<API key> *) data)->hdr.features)); ((<API key> *) data)->type = <API key>; ((<API key> *) data)->data_length = 0; <API key>(&e->data, sizeof(<API key>)); <API key>(&adapter_lock, &old_irql, "write"); diva_os_wakeup_read(e->os_context); } break; case DIVA_UM_IDI_REQ: case DIVA_UM_IDI_REQ_MAN: case DIVA_UM_IDI_REQ_SIG: case DIVA_UM_IDI_REQ_NET: DBG_TRC(("A(%d) REQ(%02d)-(%02d)-(%08x)", a->adapter_nr, req->Req, req->ReqCh, req->type & <API key>)); switch (process_idi_request(e, req)) { case -1: <API key>(&adapter_lock, &old_irql, "write"); return (-1); case -2: <API key>(&adapter_lock, &old_irql, "write"); diva_os_wakeup_read(e->os_context); break; default: <API key>(&adapter_lock, &old_irql, "write"); break; } break; default: <API key>(&adapter_lock, &old_irql, "write"); return (-1); } DBG_TRC(("A(%d) E(%08x) write=%d", a->adapter_nr, e, ret)); return (ret); } static void <API key>(ENTITY *entity) { <API key> *e = <API key>(entity, <API key>, e); <API key> old_irql; int call_wakeup = 0; <API key>(&adapter_lock, &old_irql, "xdi_callback"); if (e->e.complete == 255) { if (!(e->status & <API key>)) { <API key>(e); } if ((call_wakeup = process_idi_rc(e, e->e.Rc))) { if (e->rc_count) { e->rc_count } } e->e.Rc = 0; <API key>(&adapter_lock, &old_irql, "xdi_callback"); if (call_wakeup) { diva_os_wakeup_read(e->os_context); <API key>(e->os_context); } } else { if (e->status & <API key>) { e->e.RNum = 0; e->e.RNR = 2; } else { call_wakeup = process_idi_ind(e, e->e.Ind); } e->e.Ind = 0; <API key>(&adapter_lock, &old_irql, "xdi_callback"); if (call_wakeup) { diva_os_wakeup_read(e->os_context); } } } static int process_idi_request(<API key> *e, const <API key> *req) { int assign = 0; byte Req = (byte) req->Req; dword type = req->type & <API key>; if (!e->e.Id || !e->e.callback) { /* not assigned */ if (Req != ASSIGN) { DBG_ERR(("A: A(%d) E(%08x) not assigned", e->adapter->adapter_nr, e)); return (-1); /* NOT ASSIGNED */ } else { switch (type) { case <API key>: e->e.Id = MAN_ID; DBG_TRC(("A(%d) E(%08x) assign MAN", e->adapter->adapter_nr, e)); break; case <API key>: e->e.Id = DSIG_ID; DBG_TRC(("A(%d) E(%08x) assign SIG", e->adapter->adapter_nr, e)); break; case <API key>: e->e.Id = NL_ID; DBG_TRC(("A(%d) E(%08x) assign NET", e->adapter->adapter_nr, e)); break; default: DBG_ERR(("A: A(%d) E(%08x) unknown type=%08x", e->adapter->adapter_nr, e, type)); return (-1); } } e->e.XNum = 1; e->e.RNum = 1; e->e.callback = <API key>; e->e.X = &e->XData; e->e.R = &e->RData; assign = 1; } e->status |= <API key>; e->e.Req = Req; e->e.ReqCh = (byte) req->ReqCh; e->e.X->PLength = (word) req->data_length; e->e.X->P = (byte *)&req[1]; /* Our buffer is safe */ DBG_TRC(("A(%d) E(%08x) request(%02x-%02x-%02x (%d))", e->adapter->adapter_nr, e, e->e.Id, e->e.Req, e->e.ReqCh, e->e.X->PLength)); e->rc_count++; if (e->adapter && e->adapter->d.request) { <API key>(e); (*(e->adapter->d.request)) (&e->e); } if (assign) { if (e->e.Rc == OUT_OF_RESOURCES) { /* XDI has no entities more, call was not forwarded to the card, no callback will be scheduled */ DBG_ERR(("A: A(%d) E(%08x) XDI out of entities", e->adapter->adapter_nr, e)); e->e.Id = 0; e->e.ReqCh = 0; e->e.RcCh = 0; e->e.Ind = 0; e->e.IndCh = 0; e->e.XNum = 0; e->e.RNum = 0; e->e.callback = NULL; e->e.X = NULL; e->e.R = NULL; write_return_code(e, ASSIGN_RC | OUT_OF_RESOURCES); return (-2); } else { e->status |= <API key>; } } return (0); } static int process_idi_rc(<API key> *e, byte rc) { DBG_TRC(("A(%d) E(%08x) rc(%02x-%02x-%02x)", e->adapter->adapter_nr, e, e->e.Id, rc, e->e.RcCh)); if (e->status & <API key>) { e->status &= ~<API key>; if (rc != ASSIGN_OK) { DBG_ERR(("A: A(%d) E(%08x) ASSIGN failed", e->adapter->adapter_nr, e)); e->e.callback = NULL; e->e.Id = 0; e->e.Req = 0; e->e.ReqCh = 0; e->e.Rc = 0; e->e.RcCh = 0; e->e.Ind = 0; e->e.IndCh = 0; e->e.X = NULL; e->e.R = NULL; e->e.XNum = 0; e->e.RNum = 0; } } if ((e->e.Req == REMOVE) && e->e.Id && (rc == 0xff)) { DBG_ERR(("A: A(%d) E(%08x) discard OK in REMOVE", e->adapter->adapter_nr, e)); return (0); /* let us do it in the driver */ } if ((e->e.Req == REMOVE) && (!e->e.Id)) { /* REMOVE COMPLETE */ e->e.callback = NULL; e->e.Id = 0; e->e.Req = 0; e->e.ReqCh = 0; e->e.Rc = 0; e->e.RcCh = 0; e->e.Ind = 0; e->e.IndCh = 0; e->e.X = NULL; e->e.R = NULL; e->e.XNum = 0; e->e.RNum = 0; e->rc_count = 0; } if ((e->e.Req == REMOVE) && (rc != 0xff)) { /* REMOVE FAILED */ DBG_ERR(("A: A(%d) E(%08x) REMOVE FAILED", e->adapter->adapter_nr, e)); } write_return_code(e, rc); return (1); } static int process_idi_ind(<API key> *e, byte ind) { int do_wakeup = 0; if (e->e.complete != 0x02) { <API key> *pind = (<API key> *) <API key>(&e->data); if (pind) { e->e.RNum = 1; e->e.R->P = (byte *)&pind[1]; e->e.R->PLength = (word) (<API key>(&e->data) - sizeof(*pind)); DBG_TRC(("A(%d) E(%08x) ind_1(%02x-%02x-%02x)-[%d-%d]", e->adapter->adapter_nr, e, e->e.Id, ind, e->e.IndCh, e->e.RLength, e->e.R->PLength)); } else { DBG_TRC(("A(%d) E(%08x) ind(%02x-%02x-%02x)-RNR", e->adapter->adapter_nr, e, e->e.Id, ind, e->e.IndCh)); e->e.RNum = 0; e->e.RNR = 1; do_wakeup = 1; } } else { <API key> *pind = (<API key> *) (e->e.R->P); DBG_TRC(("A(%d) E(%08x) ind(%02x-%02x-%02x)-[%d]", e->adapter->adapter_nr, e, e->e.Id, ind, e->e.IndCh, e->e.R->PLength)); pind pind->type = DIVA_UM_IDI_IND; pind->hdr.ind.Ind = ind; pind->hdr.ind.IndCh = e->e.IndCh; pind->data_length = e->e.R->PLength; <API key>(&e->data, (int) (sizeof(*pind) + e->e.R->PLength)); do_wakeup = 1; } if ((e->status & <API key>) && !e->rc.count) { do_wakeup = 0; } return (do_wakeup); } static int write_return_code(<API key> *e, byte rc) { <API key> *prc; if (!(prc = (<API key> *) <API key>(&e->rc))) { DBG_ERR(("A: A(%d) E(%08x) rc(%02x) lost", e->adapter->adapter_nr, e, rc)); e->status &= ~<API key>; return (-1); } prc->type = DIVA_UM_IDI_IND_RC; prc->hdr.rc.Rc = rc; prc->hdr.rc.RcCh = e->e.RcCh; prc->data_length = 0; <API key>(&e->rc, sizeof(*prc)); return (0); } int <API key>(void *entity, void *os_handle) { <API key> *e; <API key> *a; <API key> old_irql; int ret; if (!entity) return (-1); <API key>(&adapter_lock, &old_irql, "ind_ready"); e = (<API key> *) entity; a = e->adapter; if ((!a) || (a->status & <API key>)) { /* Adapter was unloaded */ <API key>(&adapter_lock, &old_irql, "ind_ready"); return (-1); /* adapter was removed */ } if (e->status & DIVA_UM_IDI_REMOVED) { /* entity was removed as result of adapter removal user should assign this entity again */ <API key>(&adapter_lock, &old_irql, "ind_ready"); return (-1); } ret = e->rc.count + e->data.count; if ((e->status & <API key>) && !e->rc.count) { ret = 0; } <API key>(&adapter_lock, &old_irql, "ind_ready"); return (ret); } void *<API key>(void *entity) { return (((<API key> *) entity)->os_context); } int <API key>(void *entity) { <API key> *e; <API key> *a; int ret; <API key> old_irql; <API key>(&adapter_lock, &old_irql, "assigned?"); e = (<API key> *) entity; if (!e || (!(a = e->adapter)) || (e->status & DIVA_UM_IDI_REMOVED) || (a->status & <API key>)) { <API key>(&adapter_lock, &old_irql, "assigned?"); return (0); } e->status |= <API key>; ret = (e->e.Id || e->rc_count || (e->status & <API key>)); DBG_TRC(("Id:%02x, rc_count:%d, status:%08x", e->e.Id, e->rc_count, e->status)) <API key>(&adapter_lock, &old_irql, "assigned?"); return (ret); } int <API key>(void *entity) { <API key> *e; <API key> *a; <API key> old_irql; <API key>(&adapter_lock, &old_irql, "start_remove"); e = (<API key> *) entity; if (!e || (!(a = e->adapter)) || (e->status & DIVA_UM_IDI_REMOVED) || (a->status & <API key>)) { <API key>(&adapter_lock, &old_irql, "start_remove"); return (0); } if (e->rc_count) { /* Entity BUSY */ <API key>(&adapter_lock, &old_irql, "start_remove"); return (1); } if (!e->e.Id) { /* Remove request was already pending, and arrived now */ <API key>(&adapter_lock, &old_irql, "start_remove"); return (0); /* REMOVE was pending */ } /* Now send remove request */ e->e.Req = REMOVE; e->e.ReqCh = 0; e->rc_count++; DBG_TRC(("A(%d) E(%08x) request(%02x-%02x-%02x (%d))", e->adapter->adapter_nr, e, e->e.Id, e->e.Req, e->e.ReqCh, e->e.X->PLength)); if (a->d.request) (*(a->d.request)) (&e->e); <API key>(&adapter_lock, &old_irql, "start_remove"); return (0); }
cask 'mpv' do version '0.23.0' sha256 '<SHA256-like>' # laboratory.stolendata.net/~djinn/mpv_osx was verified as official when first introduced to the cask url "https://laboratory.stolendata.net/~djinn/mpv_osx/mpv-#{version}.tar.gz" appcast 'https://laboratory.stolendata.net/~djinn/mpv_osx/', checkpoint: '<SHA256-like>' name 'mpv' homepage 'https://mpv.io' app 'mpv.app' end
title: News {% include header.html %} <div class="hmargin" style="float: right"><a class="groups_link" style="color: #fff" href="https://groups.google.com/group/capnproto-announce">Stay Updated</a></div> <h1>News</h1> {% for post in site.posts %} <h2><a href="{{ site.baseurl }}.{{ post.url }}">{{ post.title }}</a></h2> <p class="author"> <a href="https://github.com/{{ post.author }}">{{ post.author }}</a> {% if post.author == 'kentonv' %} <span class="gplus-followbutton"><span class="g-follow" data-annotation="none" data-height="15" data-href="//plus.google.com/<API key>" data-rel="author"></span></span> <a href="https: {% endif %} on <span class="date">{{ post.date | date_to_string }}</span> </p> {{ post.content }} {% endfor %} <script type="text/javascript">setupSidebar()</script> {% include footer.html %}
#ifndef <API key> #define <API key> #include <shogun/lib/config.h> #include <shogun/io/streaming/StreamingFile.h> #include <shogun/lib/v_array.h> namespace shogun { struct substring; template <class ST> struct SGSparseVectorEntry; /** @brief Class StreamingAsciiFile to read vector-by-vector from ASCII files. * * The object must be initialized like a CSVFile. */ class StreamingAsciiFile: public StreamingFile { public: /** * Default constructor * */ StreamingAsciiFile(); /** * Constructor taking file name argument * * @param fname file name * @param rw read/write mode */ StreamingAsciiFile(const char* fname, char rw='r'); /** * Destructor */ ~StreamingAsciiFile() override; /** set delimiting character * * @param delimiter the character used as delimiter */ void set_delimiter(char delimiter); #ifndef SWIG // SWIG should skip this /** * Utility function to convert a string to a boolean value * * @param str string to convert * * @return boolean value */ inline bool str_to_bool(char *str) { return (atoi(str)!=0); } #define GET_VECTOR_DECL(sg_type) \ void get_vector \ (sg_type*& vector, int32_t& len) override; \ \ void <API key> \ (sg_type*& vector, int32_t& len, float64_t& label) override; \ \ void get_string \ (sg_type*& vector, int32_t& len) override; \ \ void <API key> \ (sg_type*& vector, int32_t& len, float64_t& label) override; \ \ void get_sparse_vector \ (SGSparseVectorEntry<sg_type>*& vector, int32_t& len) override; \ \ void <API key> \ (SGSparseVectorEntry<sg_type>*& vector, int32_t& len, float64_t& label) override; GET_VECTOR_DECL(bool) GET_VECTOR_DECL(uint8_t) GET_VECTOR_DECL(char) GET_VECTOR_DECL(int32_t) GET_VECTOR_DECL(float32_t) GET_VECTOR_DECL(float64_t) GET_VECTOR_DECL(int16_t) GET_VECTOR_DECL(uint16_t) GET_VECTOR_DECL(int8_t) GET_VECTOR_DECL(uint32_t) GET_VECTOR_DECL(int64_t) GET_VECTOR_DECL(uint64_t) GET_VECTOR_DECL(floatmax_t) #undef GET_VECTOR_DECL #endif // #ifndef SWIG // SWIG should skip this /** @return object name */ const char* get_name() const override { return "StreamingAsciiFile"; } private: /** helper function to read vectors / matrices * * @param items dynamic array of values * @param ptr_data * @param ptr_item */ template <class T> void append_item(std::vector<T>& items, char* ptr_data, char* ptr_item); /** * Split a given substring into an array of substrings * based on a specified delimiter * * @param delim delimiter to use * @param s substring to tokenize * @param ret array of substrings, returned */ void tokenize(char delim, substring s, v_array<substring> &ret); private: Helper for parsing v_array<substring> words; /** delimiter */ char m_delimiter; }; } #endif //<API key>
#!/bin/bash exec newrelic-admin run-program python manage.py celeryd --maxtasksperchild=${<API key>:-100}
#!/usr/bin/env python3 import sys import re import mpmath as mp mp.dps=250 mp.mp.dps = 250 if len(sys.argv) != 2: print("Usage: format_CIAAW.py ciaawfile") quit(1) path = sys.argv[1] atomre = re.compile(r'^(\d+) +(\w\w*) +(\w+) +\[?(\d+)\]?\*? +(.*) *$') isore = re.compile(r'^(\d+)\*? +(\[?\d.*.*\]?) *$') brange = re.compile(r'^\[([\d\.]+),([\d\.]+)\].*$') buncertain = re.compile(r'^([\d\.]+)\((\d+)\)[a-z]*$') bnum = re.compile(r'^([\d\d]+)$') atommassline = re.compile(r'^(\d+) +(\w\w*) +(\w+) +(.*) *$') def NumberStr(n): # Replace spaces s = n.replace(' ', '') # remove "exactly" for the carbon mass s = s.replace('(exactly)', '') # if only a number, put it three times m = bnum.match(s) if m: s = "{:<25} {:<25} {:<25}".format(m.group(1), m.group(1), m.group(1)) # if parentheses uncertainty... m = buncertain.match(s) if m: # tricky. duplicate the first part as a string s2 = m.group(1) # but replace with all zero s2 = re.sub(r'\d', '0', s2) # now replace last characters l = len(m.group(2)) s2 = s2[:len(s2)-l] + m.group(2) # convert to a float serr = mp.mpf(s2) scenter = mp.mpf(m.group(1)) s = "{:<25} {:<25} {:<25}".format(mp.nstr(scenter, 18), mp.nstr(scenter-serr, 18), mp.nstr(scenter+serr, 18)) # Replace bracketed ranges with parentheses m = brange.match(s) if m: slow = mp.mpf(m.group(1)) shigh = mp.mpf(m.group(2)) smid = (shigh + slow)/mp.mpf("2.0") s = "{:<25} {:<25} {:<25}".format(mp.nstr(smid, 18), mp.nstr(slow, 18), mp.nstr(shigh, 18)) # just a dash? if s == "-": s = "{:<25} {:<25} {:<25}".format(0, 0, 0) return s # First 5 lines are comments filelines = [ x.strip() for x in open(path).readlines() ] curatom = None for line in filelines: matomre = atomre.match(line) misore = isore.match(line) matommass = atommassline.match(line) if matomre: curatom = "{:<5} {:<5}".format(matomre.group(1), matomre.group(2)) print("{} {:<6} {:<25}".format(curatom, matomre.group(4), NumberStr(matomre.group(5)))) elif misore: print("{} {:<6} {:<25}".format(curatom, misore.group(1), NumberStr(misore.group(2)))) elif matommass: curatom = "{:<5} {:<5}".format(matommass.group(1), matommass.group(2)) print("{} {:<25}".format(curatom, NumberStr(matommass.group(4)))) else: print(line) # comment lines, etc
#include "webrtc/modules/audio_processing/audio_buffer.h" #include "webrtc/common_audio/include/audio_util.h" #include "webrtc/common_audio/resampler/push_sinc_resampler.h" #include "webrtc/common_audio/signal_processing/include/<API key>.h" namespace webrtc { namespace { enum { <API key> = 80, <API key> = 160, <API key> = 320 }; bool HasKeyboardChannel(AudioProcessing::ChannelLayout layout) { switch (layout) { case AudioProcessing::kMono: case AudioProcessing::kStereo: return false; case AudioProcessing::kMonoAndKeyboard: case AudioProcessing::kStereoAndKeyboard: return true; } assert(false); return false; } int <API key>(AudioProcessing::ChannelLayout layout) { switch (layout) { case AudioProcessing::kMono: case AudioProcessing::kStereo: assert(false); return -1; case AudioProcessing::kMonoAndKeyboard: return 1; case AudioProcessing::kStereoAndKeyboard: return 2; } assert(false); return -1; } void StereoToMono(const float* left, const float* right, float* out, int samples_per_channel) { for (int i = 0; i < samples_per_channel; ++i) { out[i] = (left[i] + right[i]) / 2; } } void StereoToMono(const int16_t* left, const int16_t* right, int16_t* out, int samples_per_channel) { for (int i = 0; i < samples_per_channel; ++i) { out[i] = (left[i] + right[i]) >> 1; } } } // namespace // One int16_t and one float ChannelBuffer that are kept in sync. The sync is // broken when someone requests write access to either ChannelBuffer, and // reestablished when someone requests the outdated ChannelBuffer. It is // therefore safe to use the return value of ibuf_const() and fbuf_const() // until the next call to ibuf() or fbuf(), and the return value of ibuf() and // fbuf() until the next call to any of the other functions. class IFChannelBuffer { public: IFChannelBuffer(int samples_per_channel, int num_channels) : ivalid_(true), ibuf_(samples_per_channel, num_channels), fvalid_(true), fbuf_(samples_per_channel, num_channels) {} ChannelBuffer<int16_t>* ibuf() { return ibuf(false); } ChannelBuffer<float>* fbuf() { return fbuf(false); } const ChannelBuffer<int16_t>* ibuf_const() { return ibuf(true); } const ChannelBuffer<float>* fbuf_const() { return fbuf(true); } private: ChannelBuffer<int16_t>* ibuf(bool readonly) { RefreshI(); fvalid_ = readonly; return &ibuf_; } ChannelBuffer<float>* fbuf(bool readonly) { RefreshF(); ivalid_ = readonly; return &fbuf_; } void RefreshF() { if (!fvalid_) { assert(ivalid_); const int16_t* const int_data = ibuf_.data(); float* const float_data = fbuf_.data(); const int length = fbuf_.length(); for (int i = 0; i < length; ++i) float_data[i] = int_data[i]; fvalid_ = true; } } void RefreshI() { if (!ivalid_) { assert(fvalid_); const float* const float_data = fbuf_.data(); int16_t* const int_data = ibuf_.data(); const int length = ibuf_.length(); for (int i = 0; i < length; ++i) int_data[i] = WEBRTC_SPL_SAT(std::numeric_limits<int16_t>::max(), float_data[i], std::numeric_limits<int16_t>::min()); ivalid_ = true; } } bool ivalid_; ChannelBuffer<int16_t> ibuf_; bool fvalid_; ChannelBuffer<float> fbuf_; }; AudioBuffer::AudioBuffer(int <API key>, int num_input_channels, int <API key>, int <API key>, int <API key>) : <API key>(<API key>), num_input_channels_(num_input_channels), <API key>(<API key>), num_proc_channels_(<API key>), <API key>(<API key>), <API key>(<API key>), <API key>(false), reference_copied_(false), activity_(AudioFrame::kVadUnknown), keyboard_data_(NULL), channels_(new IFChannelBuffer(<API key>, num_proc_channels_)) { assert(<API key> > 0); assert(<API key> > 0); assert(<API key> > 0); assert(num_input_channels_ > 0 && num_input_channels_ <= 2); assert(num_proc_channels_ <= num_input_channels); if (num_input_channels_ == 2 && num_proc_channels_ == 1) { input_buffer_.reset(new ChannelBuffer<float>(<API key>, num_proc_channels_)); } if (<API key> != <API key> || <API key> != <API key>) { // Create an intermediate buffer for resampling. process_buffer_.reset(new ChannelBuffer<float>(<API key>, num_proc_channels_)); } if (<API key> != <API key>) { input_resamplers_.reserve(num_proc_channels_); for (int i = 0; i < num_proc_channels_; ++i) { input_resamplers_.push_back( new PushSincResampler(<API key>, <API key>)); } } if (<API key> != <API key>) { output_resamplers_.reserve(num_proc_channels_); for (int i = 0; i < num_proc_channels_; ++i) { output_resamplers_.push_back( new PushSincResampler(<API key>, <API key>)); } } if (<API key> == <API key>) { <API key> = <API key>; split_channels_low_.reset(new IFChannelBuffer(<API key>, num_proc_channels_)); <API key>.reset(new IFChannelBuffer(<API key>, num_proc_channels_)); filter_states_.reset(new SplitFilterStates[num_proc_channels_]); } } AudioBuffer::~AudioBuffer() {} void AudioBuffer::CopyFrom(const float* const* data, int samples_per_channel, AudioProcessing::ChannelLayout layout) { assert(samples_per_channel == <API key>); assert(ChannelsFromLayout(layout) == num_input_channels_); InitForNewData(); if (HasKeyboardChannel(layout)) { keyboard_data_ = data[<API key>(layout)]; } // Downmix. const float* const* data_ptr = data; if (num_input_channels_ == 2 && num_proc_channels_ == 1) { StereoToMono(data[0], data[1], input_buffer_->channel(0), <API key>); data_ptr = input_buffer_->channels(); } // Resample. if (<API key> != <API key>) { for (int i = 0; i < num_proc_channels_; ++i) { input_resamplers_[i]->Resample(data_ptr[i], <API key>, process_buffer_->channel(i), <API key>); } data_ptr = process_buffer_->channels(); } // Convert to int16. for (int i = 0; i < num_proc_channels_; ++i) { <API key>(data_ptr[i], <API key>, channels_->ibuf()->channel(i)); } } void AudioBuffer::CopyTo(int samples_per_channel, AudioProcessing::ChannelLayout layout, float* const* data) { assert(samples_per_channel == <API key>); assert(ChannelsFromLayout(layout) == num_proc_channels_); // Convert to float. float* const* data_ptr = data; if (<API key> != <API key>) { // Convert to an intermediate buffer for subsequent resampling. data_ptr = process_buffer_->channels(); } for (int i = 0; i < num_proc_channels_; ++i) { ScaleToFloat(channels_->ibuf()->channel(i), <API key>, data_ptr[i]); } // Resample. if (<API key> != <API key>) { for (int i = 0; i < num_proc_channels_; ++i) { output_resamplers_[i]->Resample(data_ptr[i], <API key>, data[i], <API key>); } } } void AudioBuffer::InitForNewData() { keyboard_data_ = NULL; <API key> = false; reference_copied_ = false; activity_ = AudioFrame::kVadUnknown; } const int16_t* AudioBuffer::data(int channel) const { return channels_->ibuf_const()->channel(channel); } int16_t* AudioBuffer::data(int channel) { <API key> = false; return channels_->ibuf()->channel(channel); } const float* AudioBuffer::data_f(int channel) const { return channels_->fbuf_const()->channel(channel); } float* AudioBuffer::data_f(int channel) { <API key> = false; return channels_->fbuf()->channel(channel); } const int16_t* AudioBuffer::low_pass_split_data(int channel) const { return split_channels_low_.get() ? split_channels_low_->ibuf_const()->channel(channel) : data(channel); } int16_t* AudioBuffer::low_pass_split_data(int channel) { <API key> = false; return split_channels_low_.get() ? split_channels_low_->ibuf()->channel(channel) : data(channel); } const float* AudioBuffer::<API key>(int channel) const { return split_channels_low_.get() ? split_channels_low_->fbuf_const()->channel(channel) : data_f(channel); } float* AudioBuffer::<API key>(int channel) { <API key> = false; return split_channels_low_.get() ? split_channels_low_->fbuf()->channel(channel) : data_f(channel); } const int16_t* AudioBuffer::<API key>(int channel) const { return <API key>.get() ? <API key>->ibuf_const()->channel(channel) : NULL; } int16_t* AudioBuffer::<API key>(int channel) { return <API key>.get() ? <API key>->ibuf()->channel(channel) : NULL; } const float* AudioBuffer::<API key>(int channel) const { return <API key>.get() ? <API key>->fbuf_const()->channel(channel) : NULL; } float* AudioBuffer::<API key>(int channel) { return <API key>.get() ? <API key>->fbuf()->channel(channel) : NULL; } const int16_t* AudioBuffer::mixed_low_pass_data() { // Currently only mixing stereo to mono is supported. assert(num_proc_channels_ == 1 || num_proc_channels_ == 2); if (num_proc_channels_ == 1) { return low_pass_split_data(0); } if (!<API key>) { if (!<API key>.get()) { <API key>.reset( new ChannelBuffer<int16_t>(<API key>, 1)); } StereoToMono(low_pass_split_data(0), low_pass_split_data(1), <API key>->data(), <API key>); <API key> = true; } return <API key>->data(); } const int16_t* AudioBuffer::low_pass_reference(int channel) const { if (!reference_copied_) { return NULL; } return <API key>->channel(channel); } const float* AudioBuffer::keyboard_data() const { return keyboard_data_; } SplitFilterStates* AudioBuffer::filter_states(int channel) { assert(channel >= 0 && channel < num_proc_channels_); return &filter_states_[channel]; } void AudioBuffer::set_activity(AudioFrame::VADActivity activity) { activity_ = activity; } AudioFrame::VADActivity AudioBuffer::activity() const { return activity_; } int AudioBuffer::num_channels() const { return num_proc_channels_; } int AudioBuffer::samples_per_channel() const { return <API key>; } int AudioBuffer::<API key>() const { return <API key>; } int AudioBuffer::<API key>() const { // We don't resample the keyboard channel. return <API key>; } // TODO(andrew): Do deinterleaving and mixing in one step? void AudioBuffer::DeinterleaveFrom(AudioFrame* frame) { assert(<API key> == <API key>); assert(num_proc_channels_ == num_input_channels_); assert(frame->num_channels_ == num_proc_channels_); assert(frame-><API key> == <API key>); InitForNewData(); activity_ = frame->vad_activity_; int16_t* interleaved = frame->data_; for (int i = 0; i < num_proc_channels_; i++) { int16_t* deinterleaved = channels_->ibuf()->channel(i); int interleaved_idx = i; for (int j = 0; j < <API key>; j++) { deinterleaved[j] = interleaved[interleaved_idx]; interleaved_idx += num_proc_channels_; } } } void AudioBuffer::InterleaveTo(AudioFrame* frame, bool data_changed) const { assert(<API key> == <API key>); assert(num_proc_channels_ == num_input_channels_); assert(frame->num_channels_ == num_proc_channels_); assert(frame-><API key> == <API key>); frame->vad_activity_ = activity_; if (!data_changed) { return; } int16_t* interleaved = frame->data_; for (int i = 0; i < num_proc_channels_; i++) { int16_t* deinterleaved = channels_->ibuf()->channel(i); int interleaved_idx = i; for (int j = 0; j < <API key>; j++) { interleaved[interleaved_idx] = deinterleaved[j]; interleaved_idx += num_proc_channels_; } } } void AudioBuffer::<API key>() { reference_copied_ = true; if (!<API key>.get()) { <API key>.reset( new ChannelBuffer<int16_t>(<API key>, num_proc_channels_)); } for (int i = 0; i < num_proc_channels_; i++) { <API key>->CopyFrom(low_pass_split_data(i), i); } } } // namespace webrtc
<?php namespace common\models; use common\modules\i18n\Module; /** * This is the model class for table "magazine_item". * * @property integer $id * @property integer $magazine_id * @property string $image * @property integer $sort * * @property Magazine $magazine */ class MagazineItem extends Bean { /** * Variable for file storing while data saving * @var mixed */ public $file; /** * @inheritdoc */ public static function tableName() { return 'magazine_item'; } /** * @inheritdoc */ public function rules() { return [ [['magazine_id', 'image'], 'required'], [['magazine_id', 'sort'], 'integer'], [['image'], 'string', 'max' => 255], [['magazine_id'], 'exist', 'skipOnError' => true, 'targetClass' => Magazine::className(), 'targetAttribute' => ['magazine_id' => 'id']], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => Module::t('Id'), 'magazine_id' => Module::t('Magazine'), 'image' => Module::t('Image'), ]; } /** * @return \yii\db\ActiveQuery */ public function getMagazine() { return $this->hasOne(Magazine::className(), ['id' => 'magazine_id']); } }
import warnings import unittest import sys from nose.tools import assert_raises from gplearn.skutils.testing import ( _assert_less, _assert_greater, assert_less_equal, <API key>, assert_warns, assert_no_warnings, assert_equal, set_random_state, <API key>) from sklearn.tree import <API key> from sklearn.lda import LDA try: from nose.tools import assert_less def test_assert_less(): # Check that the nose implementation of assert_less gives the # same thing as the scikit's assert_less(0, 1) _assert_less(0, 1) assert_raises(AssertionError, assert_less, 1, 0) assert_raises(AssertionError, _assert_less, 1, 0) except ImportError: pass try: from nose.tools import assert_greater def test_assert_greater(): # Check that the nose implementation of assert_less gives the # same thing as the scikit's assert_greater(1, 0) _assert_greater(1, 0) assert_raises(AssertionError, assert_greater, 0, 1) assert_raises(AssertionError, _assert_greater, 0, 1) except ImportError: pass def <API key>(): assert_less_equal(0, 1) assert_less_equal(1, 1) assert_raises(AssertionError, assert_less_equal, 1, 0) def <API key>(): <API key>(1, 0) <API key>(1, 1) assert_raises(AssertionError, <API key>, 0, 1) def <API key>(): lda = LDA() tree = <API key>() # LDA doesn't have random state: smoke test set_random_state(lda, 3) set_random_state(tree, 3) assert_equal(tree.random_state, 3) def <API key>(): def _raise_ValueError(message): raise ValueError(message) <API key>(ValueError, "test", _raise_ValueError, "test") assert_raises(AssertionError, <API key>, ValueError, "something else", _raise_ValueError, "test") assert_raises(ValueError, <API key>, TypeError, "something else", _raise_ValueError, "test") # This class is inspired from numpy 1.7 with an alteration to check # the reset warning filters after calls to assert_warns. # This assert_warns behavior is specific to scikit-learn because #`<API key>()` is called internally by assert_warns # and clears all previous filters. class TestWarns(unittest.TestCase): def test_warn(self): def f(): warnings.warn("yo") return 3 # Test that assert_warns is not impacted by externally set # filters and is reset internally. # This is because `<API key>()` is called internally by # assert_warns and clears all previous filters. warnings.simplefilter("ignore", UserWarning) assert_equal(assert_warns(UserWarning, f), 3) # Test that the warning registry is empty after assert_warns assert_equal(sys.modules['warnings'].filters, []) assert_raises(AssertionError, assert_no_warnings, f) assert_equal(assert_no_warnings(lambda x: x, 1), 1) def <API key>(self): def f(): warnings.warn("yo", DeprecationWarning) failed = False filters = sys.modules['warnings'].filters[:] try: try: # Should raise an AssertionError assert_warns(UserWarning, f) failed = True except AssertionError: pass finally: sys.modules['warnings'].filters = filters if failed: raise AssertionError("wrong warning caught by assert_warn")
#include "media/filters/<API key>.h" #include <math.h> #include "base/bind.h" #include "base/synchronization/waitable_event.h" namespace media { <API key>::<API key>(AudioManager* audio_manager) : AudioRendererBase(), audio_manager_(audio_manager), bytes_per_second_(0), has_buffered_data_(true), buffer_capacity_(0) { } <API key>::~<API key>() { // Close down the audio device. if (controller_) { base::WaitableEvent closed_event(true, false); controller_->Close(base::Bind(&base::WaitableEvent::Signal, base::Unretained(&closed_event))); closed_event.Wait(); } } void <API key>::SetPlaybackRate(float rate) { // TODO(fbarchard): limit rate to reasonable values AudioRendererBase::SetPlaybackRate(rate); if (controller_ && rate > 0.0f) controller_->Play(); } void <API key>::SetVolume(float volume) { if (controller_) controller_->SetVolume(volume); } void <API key>::OnCreated(<API key>* controller) { NOTIMPLEMENTED(); } void <API key>::OnPlaying(<API key>* controller) { NOTIMPLEMENTED(); } void <API key>::OnPaused(<API key>* controller) { NOTIMPLEMENTED(); } void <API key>::OnError(<API key>* controller, int error_code) { NOTIMPLEMENTED(); } void <API key>::OnMoreData(<API key>* controller, AudioBuffersState buffers_state) { // TODO(fbarchard): Waveout_output_win.h should handle zero length buffers // without clicking. uint32 pending_bytes = static_cast<uint32>(ceil(buffers_state.total_bytes() * GetPlaybackRate())); base::TimeDelta delay = base::TimeDelta::FromMicroseconds( base::Time::<API key> * pending_bytes / bytes_per_second_); has_buffered_data_ = buffers_state.pending_bytes != 0; uint32 read = FillBuffer(buffer_.get(), buffer_capacity_, delay); controller->EnqueueData(buffer_.get(), read); } void <API key>::OnRenderEndOfStream() { // We cannot signal end of stream as long as we have buffered data. // In such case eventually host would playback all the data, and OnMoreData() // would be called with buffers_state.pending_bytes == 0. At that moment // we'll call SignalEndOfStream(); if (!has_buffered_data_) SignalEndOfStream(); } bool <API key>::OnInitialize(int bits_per_channel, ChannelLayout channel_layout, int sample_rate) { int samples_per_packet = sample_rate / 10; int <API key> = samples_per_packet * <API key>(channel_layout) * bits_per_channel / 8; // Allocate audio buffer based on hardware buffer size. buffer_capacity_ = 3 * <API key>; buffer_.reset(new uint8[buffer_capacity_]); AudioParameters params(AudioParameters::AUDIO_PCM_LINEAR, channel_layout, sample_rate, bits_per_channel, samples_per_packet); bytes_per_second_ = params.GetBytesPerSecond(); controller_ = <API key>::Create(audio_manager_, this, params, buffer_capacity_); return controller_ != NULL; } void <API key>::OnStop() { if (controller_) controller_->Pause(); } } // namespace media
<?php namespace ValuSoTest\TestAsset; use ValuSo\Annotation; /** * @Annotation\Exclude */ abstract class <API key> { public function excluded() { return true; } }
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="tr"> <context> <name>BMMDialog</name> <message> <location filename="../BMMDialog.ui" line="14"/> <source>Manage Bookmarks</source> <translation>Yer İmlerini Yönet</translation> </message> <message> <location filename="../BMMDialog.ui" line="35"/> <source>Name</source> <translation>Ad</translation> </message> <message> <location filename="../BMMDialog.ui" line="40"/> <source>Path</source> <translation>Yol</translation> </message> <message> <location filename="../BMMDialog.ui" line="52"/> <source>Remove Bookmark</source> <translation>Yer İmini Kaldır</translation> </message> <message> <location filename="../BMMDialog.ui" line="65"/> <source>Rename BookMark</source> <translation>Yer İmini Yeniden Adlandır</translation> </message> <message> <location filename="../BMMDialog.ui" line="91"/> <source>Finished</source> <translation>Bitti</translation> </message> <message> <location filename="../BMMDialog.cpp" line="58"/> <source>Rename Bookmark</source> <translation>Yer İmini Yeniden Adlandır</translation> </message> <message> <location filename="../BMMDialog.cpp" line="58"/> <source>Name:</source> <translation>Ad:</translation> </message> <message> <location filename="../BMMDialog.cpp" line="64"/> <source>Invalid Name</source> <translation>Geçersiz Ad</translation> </message> <message> <location filename="../BMMDialog.cpp" line="64"/> <source>This bookmark name already exists. Please choose another.</source> <translation>Bu yer imi adı zaten mevcut. Lütfen başka bir ad seçin.</translation> </message> </context> <context> <name>BrowserWidget</name> <message> <location filename="../BrowserWidget.cpp" line="257"/> <source>Name</source> <translation type="unfinished">Ad</translation> </message> <message> <location filename="../BrowserWidget.cpp" line="258"/> <source>Size</source> <translation type="unfinished">Boyut</translation> </message> <message> <location filename="../BrowserWidget.cpp" line="259"/> <source>Type</source> <translation type="unfinished">Tür</translation> </message> <message> <location filename="../BrowserWidget.cpp" line="260"/> <source>Date Modified</source> <translation type="unfinished">Değiştirilme Tarihi</translation> </message> <message> <location filename="../BrowserWidget.cpp" line="261"/> <source>Date Created</source> <translation type="unfinished">Oluşturulma Tarihi</translation> </message> <message> <location filename="../BrowserWidget.cpp" line="438"/> <source>Capacity: %1</source> <translation type="unfinished">Kapasite: %1</translation> </message> <message> <location filename="../BrowserWidget.cpp" line="463"/> <source>Files: %1 (%2)</source> <translation type="unfinished">Dosyalar: %1 (%2)</translation> </message> <message> <location filename="../BrowserWidget.cpp" line="465"/> <source>Files: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../BrowserWidget.cpp" line="471"/> <source>Dirs: %1</source> <translation type="unfinished">Dizinler: %1</translation> </message> <message> <location filename="../BrowserWidget.cpp" line="427"/> <source>No Directory Contents</source> <translation type="unfinished"></translation> </message> </context> <context> <name>DirWidget</name> <message> <location filename="../widgets/DirWidget2.ui" line="20"/> <source>Form</source> <translation>Form</translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="41"/> <source> * - FILE MANAGER RUNNING AS ROOT- * </source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="182"/> <source>Increase Icon Sizes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="204"/> <source>Decrease Icon Sizes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="228"/> <source>Back</source> <translation>Geri</translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="231"/> <location filename="../widgets/DirWidget2.ui" line="234"/> <source>Go back to previous directory</source> <translation>Önceki dizine geri git</translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="242"/> <source>Up</source> <translation>Yukarı</translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="245"/> <location filename="../widgets/DirWidget2.ui" line="248"/> <source>Go to parent directory</source> <translation>Üst dizine git</translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="256"/> <source>Home</source> <translation>Ev</translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="259"/> <location filename="../widgets/DirWidget2.ui" line="262"/> <source>Go to home directory</source> <translation>Ev dizinine git</translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="267"/> <source>Menu</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="270"/> <source>Select Action</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="278"/> <source>Single Column</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="281"/> <source>Single column view</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="289"/> <source>Dual Column</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.ui" line="292"/> <source>Dual Column View</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="691"/> <source>(Limited Access) </source> <translation>(Sınırlı Erişim) </translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="713"/> <location filename="../widgets/DirWidget2.cpp" line="761"/> <source>New Document</source> <translation>Yeni Belge</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="713"/> <location filename="../widgets/DirWidget2.cpp" line="738"/> <location filename="../widgets/DirWidget2.cpp" line="761"/> <source>Name:</source> <translation>Ad:</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="730"/> <source>Error Creating Document</source> <translation>Belge Oluşturmada Hata</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="730"/> <source>The document could not be created. Please ensure that you have the proper permissions.</source> <translation>Belge oluşturulamadı. Lütfen uygun izinlere sahip olduğunuza emin olun.</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="738"/> <source>New Directory</source> <translation>Yeni Dizin</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="721"/> <location filename="../widgets/DirWidget2.cpp" line="748"/> <location filename="../widgets/DirWidget2.cpp" line="770"/> <source>Invalid Name</source> <translation>Geçersiz Ad</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="289"/> <source>Open Current Dir in a Terminal</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="570"/> <source>File Operations</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="607"/> <source>Directory Operations</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="655"/> <source>Other...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="663"/> <source>Loading...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="721"/> <location filename="../widgets/DirWidget2.cpp" line="748"/> <location filename="../widgets/DirWidget2.cpp" line="770"/> <source>A file or directory with that name already exists! Please pick a different name.</source> <translation>Aynı adda bir dosya ya da dizin zaten mevcut! Lütfen farklı bir ad seçin.</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="752"/> <source>Error Creating Directory</source> <translation>Dizin Oluşturmada Hata</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="752"/> <source>The directory could not be created. Please ensure that you have the proper permissions to modify the current directory.</source> <translation>Dizin oluşturulamadı. Lütfen geçerli dizinde değişiklik yapmak için uygun izinlere sahip olduğunuza emin olun.</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="384"/> <source>Current</source> <translation>Geçerli</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="279"/> <source>Create...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="281"/> <source>File</source> <translation type="unfinished">Dosya</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="282"/> <source>Directory</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="283"/> <source>Application Launcher</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="287"/> <source>Launch...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="290"/> <source>SlideShow</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="291"/> <source>Multimedia Player</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="293"/> <source>Open Current Dir as Root</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="297"/> <source>Archive Options</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="320"/> <source>Open with...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="326"/> <source>View Files...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="328"/> <source>Checksums</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="330"/> <source>Properties</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="520"/> <source>File Checksums:</source> <translation>Dosya Sağlama Toplamları:</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="532"/> <source>Missing Utility</source> <translation>Eksik Gereç</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="532"/> <source>The &quot;lumina-fileinfo&quot; utility could not be found on the system. Please install it first.</source> <translation>Sistemde &quot;lumina-fileinfo&quot; gereci bulunamadı. Lütfen önce gereci yükleyin.</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="558"/> <source>Open</source> <translation>Aç</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="567"/> <source>Set as Wallpaper</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="575"/> <source>Rename...</source> <translation>Yeniden adlandır...</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="576"/> <source>Cut Selection</source> <translation>Seçimi Kes</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="577"/> <source>Copy Selection</source> <translation>Seçimi Kopyala</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="580"/> <source>Paste</source> <translation>Yapıştır</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="584"/> <source>Delete Selection</source> <translation>Seçimi Sil</translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="597"/> <source>Extract Here</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="599"/> <source>Archive Selection</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="907"/> <source>Select Archive</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="921"/> <source>Set Wallpaper on Screen</source> <translation type="unfinished"></translation> </message> <message> <location filename="../widgets/DirWidget2.cpp" line="921"/> <source>Screen</source> <translation type="unfinished"></translation> </message> </context> <context> <name>FODialog</name> <message> <location filename="../FODialog.ui" line="14"/> <source>Performing File Operations</source> <translation>Dosya İşlemleri Gerçekleştiriliyor</translation> </message> <message> <location filename="../FODialog.ui" line="39"/> <source>%v/%m</source> <translation>%v/%m</translation> </message> <message> <location filename="../FODialog.ui" line="74"/> <source>Stop</source> <translation>Dur</translation> </message> <message> <location filename="../FODialog.cpp" line="19"/> <source>Calculating</source> <translation>Hesaplanıyor</translation> </message> <message> <location filename="../FODialog.cpp" line="131"/> <source>Overwrite Files?</source> <translation>Dosyaların üzerine yazılsın mı?</translation> </message> <message> <location filename="../FODialog.cpp" line="131"/> <source>Do you want to overwrite the existing files?</source> <translation>Mevcut dosyaların üzerine yazmak istiyor musunuz?</translation> </message> <message> <location filename="../FODialog.cpp" line="131"/> <source>Note: It will just add a number to the filename otherwise.</source> <translation>Not: Aksi durumda dosya adına bir sayı eklenecek.</translation> </message> <message> <location filename="../FODialog.cpp" line="133"/> <source>YesToAll</source> <translation type="unfinished"></translation> </message> <message> <location filename="../FODialog.cpp" line="134"/> <source>NoToAll</source> <translation type="unfinished"></translation> </message> <message> <location filename="../FODialog.cpp" line="135"/> <source>Cancel</source> <translation type="unfinished"></translation> </message> <message> <location filename="../FODialog.cpp" line="154"/> <source>Removing: %1</source> <translation>Kaldırılıyor: %1</translation> </message> <message> <location filename="../FODialog.cpp" line="155"/> <source>Copying: %1 to %2</source> <translation>Kopyalanıyor: %1 %2 hedefine</translation> </message> <message> <location filename="../FODialog.cpp" line="156"/> <source>Restoring: %1 as %2</source> <translation>Geri yükleniyor: %1 %2 olarak</translation> </message> <message> <location filename="../FODialog.cpp" line="157"/> <source>Moving: %1 to %2</source> <translation>Taşınıyor: %1 %2 hedefine</translation> </message> <message> <location filename="../FODialog.cpp" line="170"/> <source>Could not remove these files:</source> <translation>Bu dosyalar kaldırılamadı:</translation> </message> <message> <location filename="../FODialog.cpp" line="171"/> <source>Could not copy these files:</source> <translation>Bu dosyalar kopyalanamadı:</translation> </message> <message> <location filename="../FODialog.cpp" line="172"/> <source>Could not restore these files:</source> <translation>Bu dosyalar geri yüklenemedi:</translation> </message> <message> <location filename="../FODialog.cpp" line="173"/> <source>Could not move these files:</source> <translation>Bu dosyalar taşınamadı:</translation> </message> <message> <location filename="../FODialog.cpp" line="175"/> <source>File Errors</source> <translation>Dosya Hataları</translation> </message> </context> <context> <name>FOWorker</name> <message> <location filename="../FODialog.cpp" line="326"/> <source>Invalid Move</source> <translation>Geçersiz Taşıma</translation> </message> <message> <location filename="../FODialog.cpp" line="326"/> <source>It is not possible to move a directory into itself. Please make a copy of the directory instead. Old Location: %1 New Location: %2</source> <translation>Bir dizini kendi içine taşımak mümkün değil. Bunun yerine lütfen dizinin bir kopyasını alın. Eski Konum: %1 Yeni Konum: %2</translation> </message> </context> <context> <name>GitWizard</name> <message> <location filename="../gitWizard.ui" line="14"/> <source>Clone a Git Repository</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="24"/> <source>Welcome!</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="27"/> <source>This wizard will guide you through the process of downloading a GIT repository from the internet.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="46"/> <source>GitHub Repository Settings</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="55"/> <source>Organization/User</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="65"/> <source>Repository Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="75"/> <source>Is Private Repository</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="89"/> <source>Type of Access</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="95"/> <source>Use my SSH Key</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="105"/> <source>Login to server</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="114"/> <source>Username</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="124"/> <source>Password</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="133"/> <source>Anonymous (public repositories only)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="143"/> <source>Optional SSH Password</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="153"/> <source>Advanced Options</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="159"/> <source>Custom Depth</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="166"/> <source>Single Branch</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="175"/> <source>branch name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.ui" line="232"/> <source>Click &quot;Next&quot; to start downloading the repository</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.h" line="58"/> <source>Stop Download?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../gitWizard.h" line="58"/> <source>Kill the current download?</source> <translation type="unfinished"></translation> </message> </context> <context> <name>MainUI</name> <message> <location filename="../MainUI.ui" line="14"/> <source>Insight</source> <translation>Görü</translation> </message> <message> <location filename="../MainUI.cpp" line="98"/> <source>Shift+Left</source> <translation>Shift+Sol</translation> </message> <message> <location filename="../MainUI.cpp" line="99"/> <source>Shift+Right</source> <translation>Shift+Sağ</translation> </message> <message> <location filename="../MainUI.ui" line="142"/> <source>View Mode</source> <translation>Görünüm Modu</translation> </message> <message> <location filename="../MainUI.ui" line="184"/> <source>New Tab</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.ui" line="187"/> <source>New Browser</source> <translation>Yeni Gözatıcı</translation> </message> <message> <location filename="../MainUI.ui" line="258"/> <source>Show Image Previews</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.ui" line="263"/> <source>Search Directory...</source> <translation>Dizinde Ara...</translation> </message> <message> <location filename="../MainUI.ui" line="296"/> <source>Increase Icon Size</source> <translation>Simge Boyutunu Arttır</translation> </message> <message> <location filename="../MainUI.ui" line="301"/> <source>Decrease Icon Size</source> <translation>Simge Boyutunu Azalt</translation> </message> <message> <location filename="../MainUI.ui" line="306"/> <source>Larger Icons</source> <translation>Daha Büyük Simgeler</translation> </message> <message> <location filename="../MainUI.ui" line="309"/> <source>Ctrl++</source> <translation>Ctrl++</translation> </message> <message> <location filename="../MainUI.ui" line="317"/> <source>Smaller Icons</source> <translation>Daha Küçük Simgeler</translation> </message> <message> <location filename="../MainUI.ui" line="320"/> <source>Ctrl+-</source> <translation>Ctrl+-</translation> </message> <message> <location filename="../MainUI.ui" line="328"/> <source>New Window</source> <translation>Yeni Pencere</translation> </message> <message> <location filename="../MainUI.ui" line="331"/> <source>Ctrl+N</source> <translation>Ctrl+N</translation> </message> <message> <location filename="../MainUI.ui" line="339"/> <source>Add Bookmark</source> <translation>Yer İmi Ekle</translation> </message> <message> <location filename="../MainUI.ui" line="342"/> <source>Ctrl+D</source> <translation>Ctrl+D</translation> </message> <message> <location filename="../MainUI.ui" line="394"/> <source>Delete Selection</source> <translation>Seçimi Sil</translation> </message> <message> <location filename="../MainUI.ui" line="397"/> <source>Del</source> <translation>Sil</translation> </message> <message> <location filename="../MainUI.ui" line="405"/> <source>Refresh</source> <translation>Yenile</translation> </message> <message> <location filename="../MainUI.ui" line="416"/> <source>Close Tab</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.ui" line="427"/> <source>Repo Status</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.ui" line="432"/> <source>Clone Repository</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.ui" line="440"/> <source>Show Directory Tree Window</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.ui" line="443"/> <source>Show Directory Tree Pane</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.ui" line="446"/> <source>Ctrl+P</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.ui" line="451"/> <source>Open as Root</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.ui" line="190"/> <source>Ctrl+T</source> <translation>Ctrl+T</translation> </message> <message> <location filename="../MainUI.ui" line="124"/> <source>&amp;File</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.ui" line="138"/> <source>&amp;View</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.ui" line="155"/> <source>&amp;Bookmarks</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.ui" line="163"/> <source>&amp;External Devices</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.ui" line="170"/> <source>&amp;Git</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.ui" line="198"/> <source>Exit</source> <translation>Çık</translation> </message> <message> <location filename="../MainUI.ui" line="201"/> <source>Ctrl+Q</source> <translation>Ctrl+Q</translation> </message> <message> <location filename="../MainUI.ui" line="209"/> <source>&amp;Preferences</source> <translation>&amp;Tercihler</translation> </message> <message> <location filename="../MainUI.ui" line="220"/> <source>Show Hidden Files</source> <translation>Gizli Dosyaları Göster</translation> </message> <message> <location filename="../MainUI.ui" line="225"/> <source>Scan for Devices</source> <translation>Aygıtlar için Tara</translation> </message> <message> <location filename="../MainUI.ui" line="233"/> <source>Manage Bookmarks</source> <translation>Yer İmlerini Yönet</translation> </message> <message> <location filename="../MainUI.ui" line="247"/> <source>Show Action Buttons</source> <translation>Eylem Düğmelerini Göster</translation> </message> <message> <location filename="../MainUI.ui" line="266"/> <source>Ctrl+F</source> <translation>Ctrl+F</translation> </message> <message> <location filename="../MainUI.cpp" line="69"/> <source>Detailed List</source> <translation>Ayrıntılı Liste</translation> </message> <message> <location filename="../MainUI.cpp" line="70"/> <source>Basic List</source> <translation>Temel Liste</translation> </message> <message> <location filename="../MainUI.ui" line="419"/> <source>Ctrl+W</source> <translation>Ctrl+W</translation> </message> <message> <location filename="../MainUI.ui" line="408"/> <source>F5</source> <translation>F5</translation> </message> <message> <location filename="../MainUI.ui" line="375"/> <source>Ctrl+C</source> <translation>Ctrl+C</translation> </message> <message> <location filename="../MainUI.ui" line="350"/> <source>Rename...</source> <translation>Yeniden adlandır...</translation> </message> <message> <location filename="../MainUI.ui" line="353"/> <source>F2</source> <translation>F2</translation> </message> <message> <location filename="../MainUI.ui" line="361"/> <source>Cut Selection</source> <translation>Seçimi Kes</translation> </message> <message> <location filename="../MainUI.ui" line="372"/> <source>Copy Selection</source> <translation>Seçimi Kopyala</translation> </message> <message> <location filename="../MainUI.ui" line="383"/> <source>Paste</source> <translation>Yapıştır</translation> </message> <message> <location filename="../MainUI.ui" line="386"/> <source>Ctrl+V</source> <translation>Ctrl+V</translation> </message> <message> <location filename="../MainUI.ui" line="364"/> <source>Ctrl+X</source> <translation>Ctrl+X</translation> </message> <message> <location filename="../MainUI.cpp" line="204"/> <source>Invalid Directories</source> <translation>Geçersiz Dizinler</translation> </message> <message> <location filename="../MainUI.cpp" line="204"/> <source>The following directories are invalid and could not be opened:</source> <translation>İzleyen dizinler geçersiz ve açılamadı:</translation> </message> <message> <location filename="../MainUI.cpp" line="238"/> <source>CTRL+B</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.cpp" line="247"/> <source>CTRL+E</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.cpp" line="365"/> <source>Root</source> <translation>Kök</translation> </message> <message> <location filename="../MainUI.cpp" line="372"/> <source>%1 (Type: %2)</source> <translation>%1 (Tür: %2)</translation> </message> <message> <location filename="../MainUI.cpp" line="376"/> <source>Filesystem: %1</source> <translation>Dosya sistemi: %1</translation> </message> <message> <location filename="../MainUI.cpp" line="612"/> <source>New Bookmark</source> <translation>Yeni Yer İmi</translation> </message> <message> <location filename="../MainUI.cpp" line="612"/> <source>Name:</source> <translation>Ad:</translation> </message> <message> <location filename="../MainUI.cpp" line="617"/> <source>Invalid Name</source> <translation>Geçersiz Ad</translation> </message> <message> <location filename="../MainUI.cpp" line="617"/> <source>This bookmark name already exists. Please choose another.</source> <translation>Bu yer imi adı zaten mevcut. Lütfen başka bir ad seçin.</translation> </message> <message> <location filename="../MainUI.cpp" line="638"/> <source>Git Repository Status</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.cpp" line="728"/> <source>Multimedia</source> <translation>Multimedya</translation> </message> <message> <location filename="../MainUI.cpp" line="746"/> <source>Slideshow</source> <translation>Slayt gösterisi</translation> </message> <message> <location filename="../MainUI.cpp" line="926"/> <source>Items to be removed:</source> <translation>Kaldırılacak öğeler:</translation> </message> <message> <location filename="../MainUI.cpp" line="452"/> <source>Verify Quit</source> <translation>Çıkışı Doğrula</translation> </message> <message> <location filename="../MainUI.cpp" line="100"/> <source>Ctrl+H</source> <translation>Ctrl+H</translation> </message> <message> <location filename="../MainUI.cpp" line="101"/> <source>Ctrl+L</source> <translation type="unfinished"></translation> </message> <message> <location filename="../MainUI.cpp" line="452"/> <source>You have multiple tabs open. Are you sure you want to quit?</source> <translation>Açık birden çok sekmeniz mevcut. Çıkmak istediğinize emin misiniz?</translation> </message> <message> <location filename="../MainUI.cpp" line="925"/> <source>Verify Removal</source> <translation>Kaldırmayı Doğrula</translation> </message> <message> <location filename="../MainUI.cpp" line="925"/> <source>WARNING: This will permanently delete the file(s) from the system!</source> <translation>UYARI: Bu işlemle dosya(lar) sistemden kalıcı olarak silinecek!</translation> </message> <message> <location filename="../MainUI.cpp" line="925"/> <source>Are you sure you want to continue?</source> <translation>Devam etmek istediğinize emin misiniz?</translation> </message> <message> <location filename="../MainUI.cpp" line="885"/> <source>Rename File</source> <translation>Dosyayı Yeniden Adlandır</translation> </message> <message> <location filename="../MainUI.cpp" line="885"/> <source>New Name:</source> <translation>Yeni Ad:</translation> </message> <message> <location filename="../MainUI.cpp" line="899"/> <source>Overwrite File?</source> <translation>Dosyanın Üzerine Yazılsın Mı?</translation> </message> <message> <location filename="../MainUI.cpp" line="899"/> <source>An existing file with the same name will be replaced. Are you sure you want to proceed?</source> <translation>Aynı ada sahip mevcut bir dosya yenisiyle değiştirilecek. İlerlemek istediğinize emin misiniz?</translation> </message> </context> <context> <name>MultimediaWidget</name> <message> <location filename="../widgets/MultimediaWidget.ui" line="14"/> <source>Form</source> <translation>Form</translation> </message> <message> <location filename="../widgets/MultimediaWidget.ui" line="28"/> <source>Go To Next</source> <translation>Sonrakine Git</translation> </message> <message> <location filename="../widgets/MultimediaWidget.ui" line="107"/> <source>(No Running Video)</source> <translation>(Oynatılan Video Yok)</translation> </message> <message> <location filename="../widgets/MultimediaWidget.cpp" line="124"/> <source>Playing:</source> <translation>Oynatılıyor:</translation> </message> <message> <location filename="../widgets/MultimediaWidget.cpp" line="130"/> <source>Stopped</source> <translation>Durdu</translation> </message> <message> <location filename="../widgets/MultimediaWidget.cpp" line="157"/> <source>Error Playing File: %1</source> <translation>Dosya Oynatmada Hata: %1</translation> </message> <message> <location filename="../widgets/MultimediaWidget.cpp" line="168"/> <source>Finished</source> <translation>Tamamlandı</translation> </message> </context> <context> <name>OPWidget</name> <message> <location filename="../OPWidget.ui" line="14"/> <source>Form</source> <translation type="unfinished">Form</translation> </message> <message> <location filename="../OPWidget.ui" line="44"/> <location filename="../OPWidget.ui" line="51"/> <source>...</source> <translation type="unfinished">...</translation> </message> <message> <location filename="../OPWidget.ui" line="60"/> <source>Evaluating...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../OPWidget.cpp" line="52"/> <source>Move</source> <translation type="unfinished"></translation> </message> <message> <location filename="../OPWidget.cpp" line="53"/> <source>Copy</source> <translation type="unfinished"></translation> </message> <message> <location filename="../OPWidget.cpp" line="54"/> <source>Remove</source> <translation type="unfinished"></translation> </message> <message> <location filename="../OPWidget.cpp" line="96"/> <source>File Operation Errors</source> <translation type="unfinished"></translation> </message> <message> <location filename="../OPWidget.cpp" line="108"/> <source>%1 Finished</source> <translation type="unfinished"></translation> </message> <message> <location filename="../OPWidget.cpp" line="108"/> <source>Errors Occured</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SlideshowWidget</name> <message> <location filename="../widgets/SlideshowWidget.ui" line="14"/> <source>Form</source> <translation>Form</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="36"/> <source>Delete this image file</source> <translation>Bu görüntü dosyasını sil</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="56"/> <source>Rotate this image file counter-clockwise</source> <translation>Bu görüntü dosyasını saat yönünün tersinde döndür</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="69"/> <source>Rotate this image file clockwise</source> <translation>Bu görüntü dosyasını saat yönünde döndür</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="89"/> <location filename="../widgets/SlideshowWidget.ui" line="92"/> <source>Zoom in</source> <translation>Yakınlaştır</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="105"/> <location filename="../widgets/SlideshowWidget.ui" line="108"/> <source>Zoom out</source> <translation>Uzaklaştır</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="212"/> <source>Go to Beginning</source> <translation>Başa Git</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="215"/> <location filename="../widgets/SlideshowWidget.ui" line="231"/> <location filename="../widgets/SlideshowWidget.ui" line="304"/> <location filename="../widgets/SlideshowWidget.ui" line="320"/> <source>...</source> <translation>...</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="218"/> <source>Shift+Left</source> <translation>Shift+Sol</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="228"/> <source>Go to Previous</source> <translation>Öncekine Git</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="234"/> <source>Left</source> <translation>Sol</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="267"/> <source>File Name</source> <translation>Dosya Adı</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="301"/> <source>Go to Next</source> <translation>Sonrakine Git</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="307"/> <source>Right</source> <translation>Sağ</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="317"/> <source>Go to End</source> <translation>Sona Git</translation> </message> <message> <location filename="../widgets/SlideshowWidget.ui" line="323"/> <source>Shift+Right</source> <translation>Shift+Sağ</translation> </message> <message> <location filename="../widgets/SlideshowWidget.cpp" line="125"/> <source>Verify Removal</source> <translation>Kaldırmayı Doğrula</translation> </message> <message> <location filename="../widgets/SlideshowWidget.cpp" line="125"/> <source>WARNING: This will permanently delete the file from the system!</source> <translation>UYARI: Bu, dosyayı sistemden kalıcı olarak silecek!</translation> </message> <message> <location filename="../widgets/SlideshowWidget.cpp" line="125"/> <source>Are you sure you want to continue?</source> <translation>Devam etmek istediğinize emin misiniz?</translation> </message> </context> <context> <name>TrayUI</name> <message> <location filename="../TrayUI.cpp" line="76"/> <source>Finished</source> <translation type="unfinished"></translation> </message> <message> <location filename="../TrayUI.cpp" line="76"/> <source>Errors during operation. Click to view details</source> <translation type="unfinished"></translation> </message> <message> <location filename="../TrayUI.cpp" line="91"/> <source>New Tasks Running</source> <translation type="unfinished"></translation> </message> </context> <context> <name>XDGDesktopList</name> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="608"/> <source>Multimedia</source> <translation type="unfinished">Multimedya</translation> </message> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="609"/> <source>Development</source> <translation type="unfinished"></translation> </message> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="610"/> <source>Education</source> <translation type="unfinished"></translation> </message> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="611"/> <source>Games</source> <translation type="unfinished"></translation> </message> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="612"/> <source>Graphics</source> <translation type="unfinished"></translation> </message> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="613"/> <source>Network</source> <translation type="unfinished"></translation> </message> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="614"/> <source>Office</source> <translation type="unfinished"></translation> </message> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="615"/> <source>Science</source> <translation type="unfinished"></translation> </message> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="616"/> <source>Settings</source> <translation type="unfinished"></translation> </message> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="617"/> <source>System</source> <translation type="unfinished"></translation> </message> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="618"/> <source>Utility</source> <translation type="unfinished"></translation> </message> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="619"/> <source>Wine</source> <translation type="unfinished"></translation> </message> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="620"/> <source>Unsorted</source> <translation type="unfinished"></translation> </message> </context> </TS>
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.cpp Label Definition File: <API key>.stack.label.xml Template File: sources-sink-73a.tmpl.cpp */ /* * @description * CWE: 124 Buffer Underwrite * BadSource: Set data pointer to before the allocated memory buffer * GoodSource: Set data pointer to the allocated memory buffer * Sinks: loop * BadSink : Copy string to data using a loop * Flow Variant: 73 Data flow: data passed in a list from one function to another in different source files * * */ #include "std_testcase.h" #include <list> #include <wchar.h> using namespace std; namespace <API key> { #ifndef OMITBAD /* bad function declaration */ void badSink(list<wchar_t *> dataList); void bad() { wchar_t * data; list<wchar_t *> dataList; wchar_t * dataBuffer = (wchar_t *)ALLOCA(100*sizeof(wchar_t)); wmemset(dataBuffer, L'A', 100-1); dataBuffer[100-1] = L'\0'; /* FLAW: Set data pointer to before the allocated memory buffer */ data = dataBuffer - 8; /* Put data in a list */ dataList.push_back(data); dataList.push_back(data); dataList.push_back(data); badSink(dataList); } #endif /* OMITBAD */ #ifndef OMITGOOD /* good function declarations */ /* goodG2B uses the GoodSource with the BadSink */ void goodG2BSink(list<wchar_t *> dataList); static void goodG2B() { wchar_t * data; list<wchar_t *> dataList; wchar_t * dataBuffer = (wchar_t *)ALLOCA(100*sizeof(wchar_t)); wmemset(dataBuffer, L'A', 100-1); dataBuffer[100-1] = L'\0'; /* FIX: Set data pointer to the allocated memory buffer */ data = dataBuffer; /* Put data in a list */ dataList.push_back(data); dataList.push_back(data); dataList.push_back(data); goodG2BSink(dataList); } void good() { goodG2B(); } #endif /* OMITGOOD */ } /* close namespace */ /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN using namespace <API key>; /* so that we can use good and bad easily */ int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
import React from 'react'; import { shallow } from 'enzyme'; import sinon from 'sinon'; import AddComment from './AddComment'; const USER = { user: { user: 'RSwanson', username: 'Ron_Swanson', imageURL: '', users: [ { name: 'April Ludwig', url: 'aprilL@parksdept.com', display: 'April', }, ], }, }; describe('<AddComment>', () => { it('calls submitComment function', () => { const submitCommentFn = sinon.spy(); const wrapper = shallow( <AddComment {...USER} submitComment={submitCommentFn} />, ); const event = { preventDefault: sinon.spy(), }; wrapper.find('button').simulate('onClick', event); expect(submitCommentFn.calledOnce).toBeTruthy; }); });
#include "f2c.h" /* Table of constant values */ static doublecomplex c_b1 = {1.,0.}; static blasint c__1 = 1; /** ZSYTRF_REC2 computes a partial factorization of a complex symmetric matrix using the Bunch-Kaufman diagon al pivoting method. * * This routine is a minor modification of LAPACK's zlasyf. * It serves as an unblocked kernel in the recursive algorithms. * The blocked BLAS Level 3 updates were removed and moved to the * recursive algorithm. * */ /* Subroutine */ void <API key>(char *uplo, blasint *n, blasint * nb, blasint *kb, doublecomplex *a, blasint *lda, blasint *ipiv, doublecomplex *w, blasint *ldw, blasint *info, ftnlen uplo_len) { /* System generated locals */ blasint a_dim1, a_offset, w_dim1, w_offset, i__1, i__2, i__3, i__4; double d__1, d__2, d__3, d__4; doublecomplex z__1, z__2, z__3; /* Builtin functions */ double sqrt(double), d_imag(doublecomplex *); void z_div(doublecomplex *, doublecomplex *, doublecomplex *); /* Local variables */ static blasint j, k; static doublecomplex t, r1, d11, d21, d22; static blasint jj, kk, jp, kp, kw, kkw, imax, jmax; static double alpha; extern logical lsame_(char *, char *, ftnlen, ftnlen); extern /* Subroutine */ blasint zscal_(int *, doublecomplex *, doublecomplex *, blasint *); static blasint kstep; extern /* Subroutine */ blasint zgemv_(char *, blasint *, blasint *, doublecomplex *, doublecomplex *, blasint *, doublecomplex *, blasint *, doublecomplex *, doublecomplex *, blasint *, ftnlen), zcopy_(int *, doublecomplex *, blasint *, doublecomplex *, blasint *), zswap_(int *, doublecomplex *, blasint *, doublecomplex *, blasint *); static double absakk, colmax; extern blasint izamax_(int *, doublecomplex *, blasint *); static double rowmax; /* Parameter adjustments */ a_dim1 = *lda; a_offset = 1 + a_dim1; a -= a_offset; --ipiv; w_dim1 = *ldw; w_offset = 1 + w_dim1; w -= w_offset; /* Function Body */ *info = 0; alpha = (sqrt(17.) + 1.) / 8.; if (lsame_(uplo, "U", (ftnlen)1, (ftnlen)1)) { k = *n; L10: kw = *nb + k - *n; if ((k <= *n - *nb + 1 && *nb < *n) || k < 1) { goto L30; } zcopy_(&k, &a[k * a_dim1 + 1], &c__1, &w[kw * w_dim1 + 1], &c__1); if (k < *n) { i__1 = *n - k; z__1.r = -1., z__1.i = -0.; zgemv_("No transpose", &k, &i__1, &z__1, &a[(k + 1) * a_dim1 + 1], lda, &w[k + (kw + 1) * w_dim1], ldw, &c_b1, &w[kw * w_dim1 + 1], &c__1, (ftnlen)12); } kstep = 1; i__1 = k + kw * w_dim1; absakk = (d__1 = w[i__1].r, abs(d__1)) + (d__2 = d_imag(&w[k + kw * w_dim1]), abs(d__2)); if (k > 1) { i__1 = k - 1; imax = izamax_(&i__1, &w[kw * w_dim1 + 1], &c__1); i__1 = imax + kw * w_dim1; colmax = (d__1 = w[i__1].r, abs(d__1)) + (d__2 = d_imag(&w[imax + kw * w_dim1]), abs(d__2)); } else { colmax = 0.; } if (max(absakk,colmax) == 0.) { if (*info == 0) { *info = k; } kp = k; } else { if (absakk >= alpha * colmax) { kp = k; } else { zcopy_(&imax, &a[imax * a_dim1 + 1], &c__1, &w[(kw - 1) * w_dim1 + 1], &c__1); i__1 = k - imax; zcopy_(&i__1, &a[imax + (imax + 1) * a_dim1], lda, &w[imax + 1 + (kw - 1) * w_dim1], &c__1); if (k < *n) { i__1 = *n - k; z__1.r = -1., z__1.i = -0.; zgemv_("No transpose", &k, &i__1, &z__1, &a[(k + 1) * a_dim1 + 1], lda, &w[imax + (kw + 1) * w_dim1], ldw, &c_b1, &w[(kw - 1) * w_dim1 + 1], &c__1, ( ftnlen)12); } i__1 = k - imax; jmax = imax + izamax_(&i__1, &w[imax + 1 + (kw - 1) * w_dim1], &c__1); i__1 = jmax + (kw - 1) * w_dim1; rowmax = (d__1 = w[i__1].r, abs(d__1)) + (d__2 = d_imag(&w[ jmax + (kw - 1) * w_dim1]), abs(d__2)); if (imax > 1) { i__1 = imax - 1; jmax = izamax_(&i__1, &w[(kw - 1) * w_dim1 + 1], &c__1); /* Computing MAX */ i__1 = jmax + (kw - 1) * w_dim1; d__3 = rowmax, d__4 = (d__1 = w[i__1].r, abs(d__1)) + ( d__2 = d_imag(&w[jmax + (kw - 1) * w_dim1]), abs( d__2)); rowmax = max(d__3,d__4); } if (absakk >= alpha * colmax * (colmax / rowmax)) { kp = k; } else /* if(complicated condition) */ { i__1 = imax + (kw - 1) * w_dim1; if ((d__1 = w[i__1].r, abs(d__1)) + (d__2 = d_imag(&w[ imax + (kw - 1) * w_dim1]), abs(d__2)) >= alpha * rowmax) { kp = imax; zcopy_(&k, &w[(kw - 1) * w_dim1 + 1], &c__1, &w[kw * w_dim1 + 1], &c__1); } else { kp = imax; kstep = 2; } } } kk = k - kstep + 1; kkw = *nb + kk - *n; if (kp != kk) { i__1 = kp + kp * a_dim1; i__2 = kk + kk * a_dim1; a[i__1].r = a[i__2].r, a[i__1].i = a[i__2].i; i__1 = kk - 1 - kp; zcopy_(&i__1, &a[kp + 1 + kk * a_dim1], &c__1, &a[kp + (kp + 1) * a_dim1], lda); if (kp > 1) { i__1 = kp - 1; zcopy_(&i__1, &a[kk * a_dim1 + 1], &c__1, &a[kp * a_dim1 + 1], &c__1); } if (k < *n) { i__1 = *n - k; zswap_(&i__1, &a[kk + (k + 1) * a_dim1], lda, &a[kp + (k + 1) * a_dim1], lda); } i__1 = *n - kk + 1; zswap_(&i__1, &w[kk + kkw * w_dim1], ldw, &w[kp + kkw * w_dim1], ldw); } if (kstep == 1) { zcopy_(&k, &w[kw * w_dim1 + 1], &c__1, &a[k * a_dim1 + 1], & c__1); z_div(&z__1, &c_b1, &a[k + k * a_dim1]); r1.r = z__1.r, r1.i = z__1.i; i__1 = k - 1; zscal_(&i__1, &r1, &a[k * a_dim1 + 1], &c__1); } else { if (k > 2) { i__1 = k - 1 + kw * w_dim1; d21.r = w[i__1].r, d21.i = w[i__1].i; z_div(&z__1, &w[k + kw * w_dim1], &d21); d11.r = z__1.r, d11.i = z__1.i; z_div(&z__1, &w[k - 1 + (kw - 1) * w_dim1], &d21); d22.r = z__1.r, d22.i = z__1.i; z__3.r = d11.r * d22.r - d11.i * d22.i, z__3.i = d11.r * d22.i + d11.i * d22.r; z__2.r = z__3.r - 1., z__2.i = z__3.i - 0.; z_div(&z__1, &c_b1, &z__2); t.r = z__1.r, t.i = z__1.i; z_div(&z__1, &t, &d21); d21.r = z__1.r, d21.i = z__1.i; i__1 = k - 2; for (j = 1; j <= i__1; ++j) { i__2 = j + (k - 1) * a_dim1; i__3 = j + (kw - 1) * w_dim1; z__3.r = d11.r * w[i__3].r - d11.i * w[i__3].i, z__3.i = d11.r * w[i__3].i + d11.i * w[i__3] .r; i__4 = j + kw * w_dim1; z__2.r = z__3.r - w[i__4].r, z__2.i = z__3.i - w[i__4] .i; z__1.r = d21.r * z__2.r - d21.i * z__2.i, z__1.i = d21.r * z__2.i + d21.i * z__2.r; a[i__2].r = z__1.r, a[i__2].i = z__1.i; i__2 = j + k * a_dim1; i__3 = j + kw * w_dim1; z__3.r = d22.r * w[i__3].r - d22.i * w[i__3].i, z__3.i = d22.r * w[i__3].i + d22.i * w[i__3] .r; i__4 = j + (kw - 1) * w_dim1; z__2.r = z__3.r - w[i__4].r, z__2.i = z__3.i - w[i__4] .i; z__1.r = d21.r * z__2.r - d21.i * z__2.i, z__1.i = d21.r * z__2.i + d21.i * z__2.r; a[i__2].r = z__1.r, a[i__2].i = z__1.i; /* L20: */ } } i__1 = k - 1 + (k - 1) * a_dim1; i__2 = k - 1 + (kw - 1) * w_dim1; a[i__1].r = w[i__2].r, a[i__1].i = w[i__2].i; i__1 = k - 1 + k * a_dim1; i__2 = k - 1 + kw * w_dim1; a[i__1].r = w[i__2].r, a[i__1].i = w[i__2].i; i__1 = k + k * a_dim1; i__2 = k + kw * w_dim1; a[i__1].r = w[i__2].r, a[i__1].i = w[i__2].i; } } if (kstep == 1) { ipiv[k] = kp; } else { ipiv[k] = -kp; ipiv[k - 1] = -kp; } k -= kstep; goto L10; L30: j = k + 1; L60: jj = j; jp = ipiv[j]; if (jp < 0) { jp = -jp; ++j; } ++j; if (jp != jj && j <= *n) { i__1 = *n - j + 1; zswap_(&i__1, &a[jp + j * a_dim1], lda, &a[jj + j * a_dim1], lda); } if (j < *n) { goto L60; } *kb = *n - k; } else { k = 1; L70: if ((k >= *nb && *nb < *n) || k > *n) { goto L90; } i__1 = *n - k + 1; zcopy_(&i__1, &a[k + k * a_dim1], &c__1, &w[k + k * w_dim1], &c__1); i__1 = *n - k + 1; i__2 = k - 1; z__1.r = -1., z__1.i = -0.; zgemv_("No transpose", &i__1, &i__2, &z__1, &a[k + a_dim1], lda, &w[k + w_dim1], ldw, &c_b1, &w[k + k * w_dim1], &c__1, (ftnlen)12); kstep = 1; i__1 = k + k * w_dim1; absakk = (d__1 = w[i__1].r, abs(d__1)) + (d__2 = d_imag(&w[k + k * w_dim1]), abs(d__2)); if (k < *n) { i__1 = *n - k; imax = k + izamax_(&i__1, &w[k + 1 + k * w_dim1], &c__1); i__1 = imax + k * w_dim1; colmax = (d__1 = w[i__1].r, abs(d__1)) + (d__2 = d_imag(&w[imax + k * w_dim1]), abs(d__2)); } else { colmax = 0.; } if (max(absakk,colmax) == 0.) { if (*info == 0) { *info = k; } kp = k; } else { if (absakk >= alpha * colmax) { kp = k; } else { i__1 = imax - k; zcopy_(&i__1, &a[imax + k * a_dim1], lda, &w[k + (k + 1) * w_dim1], &c__1); i__1 = *n - imax + 1; zcopy_(&i__1, &a[imax + imax * a_dim1], &c__1, &w[imax + (k + 1) * w_dim1], &c__1); i__1 = *n - k + 1; i__2 = k - 1; z__1.r = -1., z__1.i = -0.; zgemv_("No transpose", &i__1, &i__2, &z__1, &a[k + a_dim1], lda, &w[imax + w_dim1], ldw, &c_b1, &w[k + (k + 1) * w_dim1], &c__1, (ftnlen)12); i__1 = imax - k; jmax = k - 1 + izamax_(&i__1, &w[k + (k + 1) * w_dim1], &c__1) ; i__1 = jmax + (k + 1) * w_dim1; rowmax = (d__1 = w[i__1].r, abs(d__1)) + (d__2 = d_imag(&w[ jmax + (k + 1) * w_dim1]), abs(d__2)); if (imax < *n) { i__1 = *n - imax; jmax = imax + izamax_(&i__1, &w[imax + 1 + (k + 1) * w_dim1], &c__1); /* Computing MAX */ i__1 = jmax + (k + 1) * w_dim1; d__3 = rowmax, d__4 = (d__1 = w[i__1].r, abs(d__1)) + ( d__2 = d_imag(&w[jmax + (k + 1) * w_dim1]), abs( d__2)); rowmax = max(d__3,d__4); } if (absakk >= alpha * colmax * (colmax / rowmax)) { kp = k; } else /* if(complicated condition) */ { i__1 = imax + (k + 1) * w_dim1; if ((d__1 = w[i__1].r, abs(d__1)) + (d__2 = d_imag(&w[ imax + (k + 1) * w_dim1]), abs(d__2)) >= alpha * rowmax) { kp = imax; i__1 = *n - k + 1; zcopy_(&i__1, &w[k + (k + 1) * w_dim1], &c__1, &w[k + k * w_dim1], &c__1); } else { kp = imax; kstep = 2; } } } kk = k + kstep - 1; if (kp != kk) { i__1 = kp + kp * a_dim1; i__2 = kk + kk * a_dim1; a[i__1].r = a[i__2].r, a[i__1].i = a[i__2].i; i__1 = kp - kk - 1; zcopy_(&i__1, &a[kk + 1 + kk * a_dim1], &c__1, &a[kp + (kk + 1) * a_dim1], lda); if (kp < *n) { i__1 = *n - kp; zcopy_(&i__1, &a[kp + 1 + kk * a_dim1], &c__1, &a[kp + 1 + kp * a_dim1], &c__1); } if (k > 1) { i__1 = k - 1; zswap_(&i__1, &a[kk + a_dim1], lda, &a[kp + a_dim1], lda); } zswap_(&kk, &w[kk + w_dim1], ldw, &w[kp + w_dim1], ldw); } if (kstep == 1) { i__1 = *n - k + 1; zcopy_(&i__1, &w[k + k * w_dim1], &c__1, &a[k + k * a_dim1], & c__1); if (k < *n) { z_div(&z__1, &c_b1, &a[k + k * a_dim1]); r1.r = z__1.r, r1.i = z__1.i; i__1 = *n - k; zscal_(&i__1, &r1, &a[k + 1 + k * a_dim1], &c__1); } } else { if (k < *n - 1) { i__1 = k + 1 + k * w_dim1; d21.r = w[i__1].r, d21.i = w[i__1].i; z_div(&z__1, &w[k + 1 + (k + 1) * w_dim1], &d21); d11.r = z__1.r, d11.i = z__1.i; z_div(&z__1, &w[k + k * w_dim1], &d21); d22.r = z__1.r, d22.i = z__1.i; z__3.r = d11.r * d22.r - d11.i * d22.i, z__3.i = d11.r * d22.i + d11.i * d22.r; z__2.r = z__3.r - 1., z__2.i = z__3.i - 0.; z_div(&z__1, &c_b1, &z__2); t.r = z__1.r, t.i = z__1.i; z_div(&z__1, &t, &d21); d21.r = z__1.r, d21.i = z__1.i; i__1 = *n; for (j = k + 2; j <= i__1; ++j) { i__2 = j + k * a_dim1; i__3 = j + k * w_dim1; z__3.r = d11.r * w[i__3].r - d11.i * w[i__3].i, z__3.i = d11.r * w[i__3].i + d11.i * w[i__3] .r; i__4 = j + (k + 1) * w_dim1; z__2.r = z__3.r - w[i__4].r, z__2.i = z__3.i - w[i__4] .i; z__1.r = d21.r * z__2.r - d21.i * z__2.i, z__1.i = d21.r * z__2.i + d21.i * z__2.r; a[i__2].r = z__1.r, a[i__2].i = z__1.i; i__2 = j + (k + 1) * a_dim1; i__3 = j + (k + 1) * w_dim1; z__3.r = d22.r * w[i__3].r - d22.i * w[i__3].i, z__3.i = d22.r * w[i__3].i + d22.i * w[i__3] .r; i__4 = j + k * w_dim1; z__2.r = z__3.r - w[i__4].r, z__2.i = z__3.i - w[i__4] .i; z__1.r = d21.r * z__2.r - d21.i * z__2.i, z__1.i = d21.r * z__2.i + d21.i * z__2.r; a[i__2].r = z__1.r, a[i__2].i = z__1.i; /* L80: */ } } i__1 = k + k * a_dim1; i__2 = k + k * w_dim1; a[i__1].r = w[i__2].r, a[i__1].i = w[i__2].i; i__1 = k + 1 + k * a_dim1; i__2 = k + 1 + k * w_dim1; a[i__1].r = w[i__2].r, a[i__1].i = w[i__2].i; i__1 = k + 1 + (k + 1) * a_dim1; i__2 = k + 1 + (k + 1) * w_dim1; a[i__1].r = w[i__2].r, a[i__1].i = w[i__2].i; } } if (kstep == 1) { ipiv[k] = kp; } else { ipiv[k] = -kp; ipiv[k + 1] = -kp; } k += kstep; goto L70; L90: j = k - 1; L120: jj = j; jp = ipiv[j]; if (jp < 0) { jp = -jp; --j; } --j; if (jp != jj && j >= 1) { zswap_(&j, &a[jp + a_dim1], lda, &a[jj + a_dim1], lda); } if (j > 1) { goto L120; } *kb = k - 1; } return; }
--pass out-of-range data of string type to the parameter --1. [error] out-of-range argument: timestamptz type select last_day(timestamptz'23:00:00 13/01'); select last_day(timestamptz'04:14:07 1/19/2038'); select last_day(timestamptz'03:15:07 1/19/2038'); select last_day(timestamptz'03:14:08 1/19/2038'); select last_day(timestamptz'03:14:07 2/19/2038'); select last_day(timestamptz'03:14:07 1/20/2038'); select last_day(timestamptz'03:14:07 1/19/2039'); select last_day(timestamptz'03:14:07 PM 1/19/2038'); select last_day(timestamptz'0:0:0 PM 1969-01-01'); select last_day(timestamptz'11:03:22 PM 1864-01-23'); select last_day(timestamptz'2300-12-12 22:02:33'); select last_day(timestamptz'2020-23-11 03:14:66 pm'); select last_day(timestamptz'1970-10-101 0:0'); select last_day(timestamptz'1999/12/11 3:14:7 am'); select last_day(timestamptz'2010-4-31 3:14:7 am'); --2. [error] out-of-range argument: datetimetz type select last_day(datetimetz'2010-10 10:10:100.00 am'); select last_day(datetimetz'24:59:59.999 12/31/9999'); select last_day(datetimetz'23:60:59.999 12/31/9999'); select last_day(datetimetz'23:59:60.999 12/31/9999'); select last_day(datetimetz'23:59:59.1000 12/31/9999'); select last_day(datetimetz'23:59:59.999 13/31/9999'); select last_day(datetimetz'23:59:59.999 12/32/9999'); select last_day(datetimetz'23:59:59.999 12/31/10000'); select last_day(datetimetz'20:33:61.111 1990-10-19 '); select last_day(datetimetz'2/31/2022 10:20:30.400'); select last_day(datetimetz'12/31/9999 23:59:59.999'); select last_day(datetimetz'0-12-12 23:59:59.999');
using NetCoreCMS.Framework.Core.Data; using NetCoreCMS.Framework.Core.Models; using NetCoreCMS.Framework.Core.Mvc.Repository; namespace NetCoreCMS.Framework.Core.Repository { public class <API key> : BaseRepository<NccWebSite, long> { public <API key>(NccDbContext context) : base(context) { } } }
# -*- coding: utf-8 -*- import numberlink from datastore import * from hashlib import sha1, sha256 from flask import make_response, render_template import random import datetime from tz import gae_datetime_JST from define import DEFAULT_YEAR def adc_response(msg, isjson, code=200, json_encoded=False): if json_encoded: body = msg else: template = 'response.json' if isjson else 'response.html' body = render_template(template, msg=msg) resp = make_response(body) if code == 200: resp.status = 'OK' elif code == 400: resp.status = 'Bad Request' elif code == 401: resp.status = 'Unauthorized' resp.status_code = code resp.headers['Content-Type'] = 'application/json' if isjson else 'text/html; charset=utf-8' return resp def adc_response_html(html, code=200): template = 'raw.html' body = render_template(template, raw=html) resp = make_response(body) resp.status_code = code resp.headers['Content-Type'] = 'text/html; charset=utf-8' return resp def adc_response_text(body, code=200): resp = make_response(body) resp.status_code = code resp.headers['Content-Type'] = 'text/plain; charset=utf-8' return resp def adc_response_json(body, code=200): resp = make_response(body) resp.status_code = code resp.headers['Content-Type'] = 'application/json' return resp def adc_response_Q_data(result): "" if result is None: code = 404 text = "Not Found\r\n" else: code = 200 text = result.text return adc_response_text(text, code) def log(username, what): root = log_key() i = Log(parent = root, username = username, what = what) i.put() def log_get_or_delete(username=None, fetch_num=100, when=None, delete=False): query = Log.query(ancestor = log_key()).order(-Log.date) if username is not None: query = query.filter(Log.username == username) if when is not None: before = datetime.datetime.now() - when #print "before=", before query = query.filter(Log.date > before) q = query.fetch(fetch_num) results = [] for i in q: if delete: tmp = { 'date': gae_datetime_JST(i.date) } i.key.delete() else: tmp = { 'date': gae_datetime_JST(i.date), 'username': i.username, 'what': i.what } results.append( tmp ) return results def adc_login(salt, username, password, users): "" hashed256 = hashed_password(username, password, salt) u = adc_get_user_info(username, users) if u is not None and u[1]==hashed256: return u else: return None def adc_change_password(salt, username, users, attr, priv_admin=False): "" if ('password_old' in attr and 'password_new1' in attr and 'password_new2' in attr): if not priv_admin: u = adc_login(salt, username, attr['password_old'], users) if u is None: return False, "password mismatched" if attr['password_new1'] != attr['password_new2']: return False, "new password is not same" if change_password(username, attr['password_new1'].encode('utf-8'), salt): return True, "password changed" else: return False, "password change failed" else: return False, "error" def adc_get_user_info(username, users): for u in users: if username == (u[0]): return u r = get_userinfo(username) if r is not None: return [r.username, r.password, r.displayname, r.uid, r.gid] else: return None def adc_get_user_list(users): res = [] for u in users: res.append(u[0]) res2 = get_username_list() res.extend(res2) return res def insert_Q_data(q_num, text, author="DASymposium", year=DEFAULT_YEAR, uniq=True): """ uniq==Trueq_numauthor """ if uniq: q = get_user_Q_data(q_num, author, year) if q is not None: return (False, "Error: Q%d data already exists" % q_num) (size, line_num, line_mat, msg, ok) = numberlink.read_input_data(text) if not ok: return (False, "Error: syntax error in Q data\n"+msg) # text2text text2 = numberlink.generate_Q_data(size, line_num, line_mat) # root userinfo = get_userinfo(author) if userinfo is None: return (False, "Error: user not found: %s" % author) else: root = userinfo.key q = Question( parent = root, id = str(q_num), qnum = q_num, text = text2, rows = size[1], cols = size[0], linenum = line_num, author = author ) q.put() return (True, size, line_num) def update_Q_data(q_num, text, author="DASymposium", year=DEFAULT_YEAR): "" (size, line_num, line_mat, msg, ok) = numberlink.read_input_data(text) if not ok: return (False, "Error: syntax error in Q data\n"+msg, None, None) text2 = numberlink.generate_Q_data(size, line_num, line_mat) res = get_user_Q_data(q_num, author, year) if res is None: num = 0 else: num = 1 res.text = text2 res.rows = size[1] res.cols = size[0] res.linenum = line_num res.put() return (True, num, size, line_num) def get_Q_data(q_num, year=DEFAULT_YEAR, fetch_num=5): "Question" qla = ndb.Key(QuestionListAll, 'master', parent=qdata_key()).get() if qla is None: return None # q_num11 qn = q_num-1 if qn < 0 or len(qla.qs) <= qn: return None return qla.qs[q_num-1].get() def get_Q_author_all(): "author" qla = ndb.Key(QuestionListAll, 'master', parent=qdata_key()).get() if qla is None: return None authors = ['']*(len(qla.qs)+1) # q_num1+1 qn = 1 for q_key in qla.qs: q = q_key.get() authors[qn] = q.author qn += 1 # q.qnum return authors def get_Q_data_text(q_num, year=DEFAULT_YEAR, fetch_num=5): "" result = get_Q_data(q_num, year, fetch_num) if result is not None: text = result.text ret = True else: # result is None text = "Error: data not found: Q%d" % q_num ret = False return ret, text def get_user_Q_data(q_num, author, year=DEFAULT_YEAR, fetch_num=99): "qnumauthor" userinfo = get_userinfo(author) if userinfo is None: root = qdata_key(year) else: root = userinfo.key key = ndb.Key(Question, str(q_num), parent=root) return key.get() def get_admin_Q_all(): "" #query = Question.query().order(Question.author, Question.qnum) query = Question.query(ancestor=userlist_key()).order(Question.author, Question.qnum) q = query.fetch() num = len(q) out = str(num) + "\n" for i in q: dt = gae_datetime_JST(i.date) out += "Q%02d SIZE %dX%d LINE_NUM %d (%s) %s\n" % (i.qnum, i.cols, i.rows, i.linenum, i.author, dt) return out def admin_Q_list_get(): "" qla = ndb.Key(QuestionListAll, 'master', parent=qdata_key()).get() if qla is None: return '' else: return qla.text_admin def admin_Q_list_create(): "" #query = Question.query(ancestor=userlist_key()).order(Question.author, Question.qnum) query = Question.query(ancestor=userlist_key()) qlist = [] q = query.fetch() num = len(q) for i in q: qlist.append([i.qnum, i.author, i.key]) random.shuffle(qlist) out = str(num) + "\n" root = qdata_key() #out += admin_Q_list_delete() + "\n" num = 1 out_admin = "" out_user = "" qs = [] for i in qlist: qs.append(i[2]) out_admin += "Q%d %s %d\n" % (num, i[1], i[0]) out_user += "Q%d\n" % num num += 1 out += out_admin qla = QuestionListAll.get_or_insert('master', parent=root, qs=qs, text_admin=out_admin, text_user=out_user) if qla.text_admin != out_admin: out += "Already inserted\n" return out def admin_Q_list_delete(): "" root = qdata_key() ndb.Key(QuestionListAll, 'master', parent=root).delete() return "DELETE Q-list" def get_Q_all(html=False): "" qla = ndb.Key(QuestionListAll, 'master', parent=qdata_key()).get() if qla is None: return '' if html: out = "" num=1 for i in qla.text_user.splitlines(): out += '<a href="/Q/%d">%s</a><br />\n' % (num, i) num += 1 return out else: return qla.text_user def menu_post_A(username): "" qla = ndb.Key(QuestionListAll, 'master', parent=qdata_key()).get() if qla is None: return '' out = "" num=1 for i in qla.text_user.splitlines(): out += '<a href="/A/%s/Q/%d">post answer %s</a><br />\n' % (username, num, i) num += 1 return out def post_A(username, atext, form): anum = (int)(form['anum']) cpu_sec = 0 mem_byte = 0 try: cpu_sec = (float)(form['cpu_sec']) mem_byte = (int)(form['mem_byte']) except ValueError: # (float)'' pass misc_text = form['misc_text'] print "A%d\n%f\n%d\n%s" % (anum, cpu_sec, mem_byte, misc_text.encode('utf-8')) return put_A_data(anum, username, atext, cpu_sec, mem_byte, misc_text) def get_user_Q_all(author, html=None): "author" userinfo = get_userinfo(author) if userinfo is None: root = qdata_key() else: root = userinfo.key query = Question.query( ancestor = root ).order(Question.qnum) #query = query.filter(Question.author == author ) q = query.fetch() num = len(q) out = "" for i in q: if html is None: out += "Q%d SIZE %dX%d LINE_NUM %d (%s)\n" % (i.qnum, i.cols, i.rows, i.linenum, i.author) else: url = '/user/%s/Q/%d' % (author, i.qnum) out += '<a href="%s">Q%d SIZE %dX%d LINE_NUM %d (%s)</a><br />\n' % (url, i.qnum, i.cols, i.rows, i.linenum, i.author) return out def delete_user_Q_data(q_num, author, year=DEFAULT_YEAR): "qnumauthor" res = get_user_Q_data(q_num, author, year) msg = "" if res is None: msg = "Q%d data not found" % q_num else: msg += "DELETE /user/%s/Q/%d\n" % (author, q_num) res.key.delete() return msg def get_admin_A_all(): "" #query = Answer.query(ancestor=userlist_key()).order(Answer.owner, Answer.anum) query = Answer.query(ancestor=userlist_key()) q = query.fetch() num = len(q) out = str(num) + "\n" for i in q: dt = gae_datetime_JST(i.date) out += "A%02d (%s) %s\n" % (i.anum, i.owner, dt) return out def get_A_data(a_num=None, username=None): """ a_numNone a_num1None """ if username is None: root = userlist_key() else: userinfo = get_userinfo(username) if userinfo is None: msg = "ERROR: user not found: %s" % username return False, msg, None root = userinfo.key if a_num is not None: a = ndb.Key(Answer, str(a_num), parent=root).get() return True, a, root #query = Answer.query(ancestor=root).order(Answer.anum) query = Answer.query(ancestor=root) #if a_num is not None: # query = query.filter(Answer.anum == a_num) q = query.fetch() return True, q, root def put_A_data(a_num, username, text, cpu_sec=None, mem_byte=None, misc_text=None): "" msg = "" ret, q_text = get_Q_data_text(a_num) if not ret: msg = "Error in Q%d data: " % a_num + q_text return False, msg ret, q, root = get_A_data(a_num, username) if ret==True and q is not None: msg += "ERROR: duplicated answer\n"; return False, msg judges, msg = numberlink.check_A_data(text, q_text) q = 0.0 if judges[0] != True: msg += "Error in answer A%d\n" % a_num check_A = False else: check_A = True q = judges[1] msg += "Quality factor = %1.19f\n" % q a = Answer( parent = root, id = str(a_num), anum = a_num, text = text, owner = username, cpu_sec = cpu_sec, mem_byte = mem_byte, misc_text = misc_text, result = msg[-1499:], judge = int(check_A), q_factor = q ) a_key = a.put() return True, msg def put_A_info(a_num, username, info): "" msg = "" # rootUserInfokeyaAnswer ret, a, root = get_A_data(a_num, username) if ret==False or a is None: if ret==False: msg += a + "\n" msg += "ERROR: A%d data not found" % a_num return False, msg a.cpu_sec = info['cpu_sec'] a.mem_byte = info['mem_byte'] a.misc_text = info['misc_text'] a.put() msg += "UPDATE A%d info\n" % a_num return True, msg def <API key>(a_num=None, username=None, delete=False): "or" ret, q, root = get_A_data(a_num=a_num, username=username) if not ret: return False, q # q==msg if q is None: return ret, [] result = [] if a_num is None: # a_num==None q2 = q else: q2 = [q] if delete: <API key>(a_num=a_num, username=username, delete=True) for i in q2: result.append("DELETE A%d" % i.anum) i.key.delete() else: # GET for i in q2: result.append("GET A%d" % i.anum) result.append(i.text) return True, result def get_user_A_all(username, html=None): "" ret, q, root = get_A_data(username=username) if not ret: return False, q text = "" for i in q: if html: text += '<a href="/A/%s/Q/%d">A%d</a> <a href="/A/%s/Q/%d/info">info</a><br />\n' % (username, i.anum, i.anum, username, i.anum) else: text += 'A%d\n' % i.anum return True, text def <API key>(a_num=None, username=None, delete=False): "or" msg = "" r, a, root = get_A_data(a_num, username) if not r: return False, a, None if a_num is None: q = a else: if a is None: msg += "A%d not found" % a_num return True, msg, [] q = [a] results = [] num = 0 for i in q: num += 1 if delete: results.append({'anum': i.anum}) i.cpu_sec = None i.mem_byte = None i.misc_text = None i.put() else: tmp = i.to_dict() del tmp['text'] results.append( tmp ) method = 'DELETE' if delete else 'GET' a_num2 = 0 if a_num is None else a_num msg += "%s A%d info %d" % (method, a_num2, num) return True, msg, results def hashed_password(username, password, salt): "" tmp = salt + username.encode('utf-8') + password.encode('utf-8') return sha256(tmp).hexdigest() def create_user(username, password, displayname, uid, gid, salt): "" hashed = hashed_password(username, password, salt) userlist = userlist_key() u = UserInfo( parent = userlist, id = username, username = username, password = hashed, displayname = displayname, uid = uid, gid = gid ) u.put() def change_password(username, password, salt): "" info = get_userinfo(username) if info is None: return False hashed = hashed_password(username, password, salt) info.password = hashed info.put() return True def get_username_list(): "" #query = UserInfo.query( ancestor = userlist_key() ).order(UserInfo.uid) query = UserInfo.query( ancestor = userlist_key() ) q = query.fetch() res = [] for u in q: res.append(u.username) return res def get_userinfo(username): "" key = ndb.Key(UserInfo, username, parent=userlist_key()) info = key.get() return info def delete_user(username): "" userinfo = get_userinfo(username) if userinfo is None: return 0 else: userinfo.key.delete() return 1 return n def Q_check(qtext): "" hr = '-'*40 + "\n" (size, line_num, line_mat, msg, ok) = numberlink.read_input_data(qtext) if ok: q = numberlink.generate_Q_data(size, line_num, line_mat) out = "OK\n" + hr + q + hr else: out = "NG\n" + hr + qtext + hr + msg return out, ok def calc_score_all(): "" authors = get_Q_author_all() #print "authors=", authors q_factors = {} q_point = {} ok_point = {} bonus_point = {} result = {} misc = {} query = Answer.query(ancestor=userlist_key()) q = query.fetch() all_numbers = {} all_users = {} for i in q: #anum = 'A%d' % i.anum anum = 'A%02d' % i.anum username = i.owner all_numbers[anum] = 1 all_users[username] = 1 if not(anum in ok_point): ok_point[anum] = {} ok_point[anum][username] = i.judge if not(anum in q_factors): q_factors[anum] = {} q_factors[anum][username] = i.q_factor if i.judge in (0,1) and authors[i.anum] == username: #print "check_bonus:", i.anum, i.judge, authors[i.anum], username if not(anum in bonus_point): bonus_point[anum] = {} bonus_point[anum][username] = i.judge # result() if not(anum in result): result[anum] = {} result[anum][username] = i.result # () date, cpu_sec, mem_byte, misc_text if not(anum in misc): misc[anum] = {} misc[anum][username] = [i.date, i.cpu_sec, i.mem_byte, i.misc_text] #print "ok_point=", ok_point #print "bonus_point=", bonus_point #print "q_factors=", q_factors #print "result=\n", result q_pt = 10.0 for anum, values in q_factors.iteritems(): #print "anum=", anum qf_total = 0.0 # Q_factor for user, qf in values.iteritems(): #print "qf=", qf qf_total += qf #print "qf_total=", qf_total for user, qf in values.iteritems(): if qf_total == 0.0: tmp = 0.0 else: tmp = q_pt * qf / qf_total if not anum in q_point: q_point[anum] = {} q_point[anum][user] = tmp #print "q_point=", q_point tmp = ['']*(len(all_numbers) + 1) i = 0 for anum in sorted(all_numbers.keys()): tmp[i] = anum i += 1 tmp[i] = 'TOTAL' score_board = {'/header/': tmp} for user in sorted(all_users.keys()): #print user if not(user in score_board): score_board[user] = [0]*(len(all_numbers) + 1) i = 0 ptotal = 0.0 for anum in sorted(all_numbers.keys()): #print anum p = 0.0 if user in ok_point[anum]: p += ok_point[anum][user] if user in q_point[anum]: p += q_point[anum][user] if anum in bonus_point and user in bonus_point[anum]: p += bonus_point[anum][user] #print "p=", p score_board[user][i] = p ptotal += p i += 1 score_board[user][i] = ptotal #print "score_board=", score_board return score_board, ok_point, q_point, bonus_point, q_factors, result, misc def html_score_board(score_board): hd_key = '/header/' out = '<table border=1>\n' line = '<tr><th>-</th>' for hd in score_board[hd_key]: line += '<th>%s</th>' % hd line += '</tr>\n' out += line for user in sorted(score_board.keys()): if user == hd_key: continue line = '<tr><th>%s</th>' % user for val in score_board[user]: line += '<td>%1.1f</td>' % val line += '</tr>\n' out += line out += '</table>\n' #print "out=\n", out return out
{% extends "hub/base.html" %} {% load staticfiles %} {% block pagetitle %}Users{% endblock %} {% block content %} <div class="dashhead"> <div class="dashhead-titles"> <h6 class="dashhead-subtitle">UoP Botswana MoH / TB Training</h6> <h2 class="dashhead-title">Users</h2> </div> </div> <hr class="m-t"> <div class="flextable"> <form class="form-inline" method="post" action="."> {% csrf_token %} <div class="form-group"> <label for="code">Facility Code</label> {{ form.code }} <!-- <select class="custom-select form-control" name="address_type" id="address_type"> <option value="msisdn">Cell Phone</option> </select> </div> <button type="submit" class="btn btn-default">Search</button> <b>Results:</b> {{ identities.count }} </form> </div> <div class="table-full"> <div class="table-responsive"> <table class="table" data-sort="table"> <thead> <tr> <th>Identity</th> <th>Created At</th> <th>Action</th> </tr> </thead> <tbody> {% for identity in identities.results %} <tr> {% url 'user-detail' identity.id as url %} <td>{{ identity.id }}</td> <td>{{ identity.created_at|get_date|date:"D d M Y H:i" }}</td> <td><a href="{{ url }}">view</a></td> </tr> {% endfor %} </tbody> </table> </div> </div> <!-- <div class="text-center"> <ul class="pagination"> <li> <a href="#" aria-label="Previous"> <span aria-hidden="true">&laquo;</span> </a> </li> <li class="active"><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li> <a href="#" aria-label="Next"> <span aria-hidden="true">&raquo;</span> </a> </li> </ul> </div> {% endblock %}
#include "mex.h" #include <iostream> #include "drakeMexUtil.h" #include "<API key>.h" #include "math.h" using namespace Eigen; using namespace std; /* * mex interface for bullet collision detection * closest-distance for each body to all other bodies (~(NB^2-NB)/2 points) * * MATLAB signature: * * [xA,xB,normal,distance,idxA,idxB] = ... * collisionDetectmex( mex_model_ptr,<API key>, * <API key>); */ void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) { //check number of arguments if (nrhs < 3) { mexErrMsgIdAndTxt("Drake:collisionDetectmex:NotEnoughInputs", "Usage: [xA,xB,normal,distance,idxA,idxB] = collisionDetectmex(mex_model_ptr, <API key>, <API key>)"); } //check argument types if (!mxIsClass(prhs[0], "DrakeMexPointer")) { mexErrMsgIdAndTxt("Drake:collisionDetectmex:InvalidInputType", "Expected a DrakeMexPointer for mex_model_ptr but got something else."); } if (!mxIsLogical(prhs[1])) { mexErrMsgIdAndTxt("Drake:collisionDetectmex:InvalidInputType", "Expected a boolean logic type for <API key> but got something else."); } if (!mxIsStruct(prhs[2])) { mexErrMsgIdAndTxt("Drake:collisionDetectmex:InvalidInputType", "Expected a struct type for <API key> but got something else."); } // first get the model_ptr back from matlab <API key> *model= (<API key>*) getDrakeMexPointer(prhs[0]); // Parse `<API key>` vector<int> active_bodies_idx; set<string> active_group_names; const mxArray* <API key> = prhs[2]; const mxArray* <API key> = prhs[1]; const mxArray* body_idx = mxGetField(<API key>, 0, "body_idx"); if (body_idx != NULL) { size_t n_active_bodies = static_cast<size_t>(<API key>(body_idx)); active_bodies_idx.resize(n_active_bodies); memcpy(active_bodies_idx.data(),(int*) mxGetData(body_idx), sizeof(int)*n_active_bodies); transform(active_bodies_idx.begin(), active_bodies_idx.end(), active_bodies_idx.begin(), [](int i){return --i;}); } const mxArray* collision_groups = mxGetField(<API key>, 0, "collision_groups"); if (collision_groups != NULL) { size_t <API key> = static_cast<size_t>(<API key>(collision_groups)); for (size_t i = 0; i < <API key>; i++) { const mxArray *ptr = mxGetCell(collision_groups, i); size_t buflen = static_cast<size_t>(mxGetN(ptr) * sizeof(mxChar)) + 1; char* str = (char*)mxMalloc(buflen); mxGetString(ptr, str, buflen); active_group_names.insert(str); mxFree(str); } } vector<int> bodyA_idx, bodyB_idx; MatrixXd ptsA, ptsB, normals, JA, JB, Jd; VectorXd dist; if (active_bodies_idx.size() > 0) { if (active_group_names.size() > 0) { model->collisionDetect(dist, normals, ptsA, ptsB, bodyA_idx, bodyB_idx, active_bodies_idx,active_group_names); } else { model->collisionDetect(dist, normals, ptsA, ptsB, bodyA_idx, bodyB_idx, active_bodies_idx); } } else { const bool multiple_contacts = <API key>(<API key>); if(multiple_contacts) { model->potentialCollisions(dist, normals, ptsA, ptsB, bodyA_idx, bodyB_idx); } else if (active_group_names.size() > 0) { model->collisionDetect(dist, normals, ptsA, ptsB, bodyA_idx, bodyB_idx, active_group_names); } else { model->collisionDetect(dist, normals, ptsA, ptsB, bodyA_idx, bodyB_idx); } } vector<int32_T> idxA(bodyA_idx.size()); transform(bodyA_idx.begin(), bodyA_idx.end(), idxA.begin(), [](int i){return ++i;}); vector<int32_T> idxB(bodyB_idx.size()); transform(bodyB_idx.begin(), bodyB_idx.end(), idxB.begin(), [](int i){return ++i;}); if (nlhs>0) { plhs[0] = <API key>(3,static_cast<int>(ptsA.cols()),mxREAL); memcpy(mxGetPrSafe(plhs[0]),ptsA.data(),sizeof(double)*3*ptsA.cols()); } if (nlhs>1) { plhs[1] = <API key>(3,static_cast<int>(ptsB.cols()),mxREAL); memcpy(mxGetPrSafe(plhs[1]),ptsB.data(),sizeof(double)*3*ptsB.cols()); } if (nlhs>2) { plhs[2] = <API key>(3,static_cast<int>(normals.cols()),mxREAL); memcpy(mxGetPrSafe(plhs[2]),normals.data(),sizeof(double)*3*normals.cols()); } if (nlhs>3) { plhs[3] = <API key>(1,static_cast<int>(dist.size()),mxREAL); memcpy(mxGetPrSafe(plhs[3]),dist.data(),sizeof(double)*dist.size()); } if (nlhs>4) { plhs[4] = <API key>(1,static_cast<int>(idxA.size()),mxINT32_CLASS,mxREAL); memcpy(mxGetData(plhs[4]),idxA.data(),sizeof(int32_T)*idxA.size()); } if (nlhs>5) { plhs[5] = <API key>(1,static_cast<int>(idxB.size()),mxINT32_CLASS,mxREAL); memcpy(mxGetData(plhs[5]),idxB.data(),sizeof(int32_T)*idxB.size()); } }
#include "<API key>.h" #include <jsi/jsi.h> #include "MutableValue.h" #include "SharedParent.h" using namespace facebook; namespace reanimated { void <API key>::set( jsi::Runtime &rt, const jsi::PropNameID &name, const jsi::Value &newValue) { auto propName = name.utf8(rt); if (propName == "_value") { mutableValue->setValue(rt, newValue); } else if (propName == "_animation") { // TODO: assert to allow animation to be set from UI only if (mutableValue->animation.expired()) { mutableValue->animation = mutableValue->getWeakRef(rt); } *mutableValue->animation.lock() = jsi::Value(rt, newValue); } else if (propName == "value") { // you call `this.value` inside of value setter, we should throw } } jsi::Value <API key>::get( jsi::Runtime &rt, const jsi::PropNameID &name) { auto propName = name.utf8(rt); if (propName == "value") { return mutableValue->getValue(rt); } else if (propName == "_value") { return mutableValue->getValue(rt); } else if (propName == "_animation") { if (mutableValue->animation.expired()) { mutableValue->animation = mutableValue->getWeakRef(rt); } return jsi::Value(rt, *mutableValue->animation.lock()); } return jsi::Value::undefined(); } } // namespace reanimated
#ifndef <API key> #define <API key> #include <gmock/gmock.h> #include <string> #include "transport_manager/transport_manager.h" #include "transport_manager/transport_adapter/<API key>.h" namespace test { namespace components { namespace <API key> { using ::transport_manager::DeviceHandle; using ::transport_manager::ConnectionUID; using ::transport_manager::transport_adapter::TransportAdapter; using ::transport_manager::<API key>; using ::transport_manager::<API key>; /* * MOCK implementation of ::transport_manager::TransportManager interface */ class <API key>: public ::transport_manager::TransportManager { public: MOCK_METHOD0(Init, int()); MOCK_METHOD0(Reinit, int()); MOCK_METHOD0(SearchDevices, int()); MOCK_METHOD1(ConnectDevice, int(const DeviceHandle &)); MOCK_METHOD1(DisconnectDevice, int(const DeviceHandle &)); MOCK_METHOD1(Disconnect, int(const ConnectionUID &)); MOCK_METHOD1(DisconnectForce, int(const ConnectionUID &)); MOCK_METHOD1(SendMessageToDevice, int(const ::protocol_handler::RawMessagePtr)); MOCK_METHOD1(<API key>, int(const <API key>&)); MOCK_METHOD1(AddTransportAdapter, int(TransportAdapter *)); MOCK_METHOD1(AddEventListener, int(<API key> *)); MOCK_METHOD0(Stop, int()); MOCK_METHOD1(RemoveDevice, int(const DeviceHandle &)); MOCK_CONST_METHOD1(Visibility, int(const bool &)); }; } // namespace <API key> } // namespace components } // namespace test #endif // <API key>
<!DOCTYPE html> <html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>colour.models.cie_xyy Module &mdash; Colour 0.3.4 documentation</title> <link rel="stylesheet" href="_static/basic.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="_static/bootswatch-3.1.0/colour/bootstrap.min.css" type="text/css" /> <link rel="stylesheet" href="_static/bootstrap-sphinx.css" type="text/css" /> <link rel="stylesheet" href="_static/styles.css" type="text/css" /> <script type="text/javascript"> var <API key> = { URL_ROOT: './', VERSION: '0.3.4', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=<API key>"></script> <script type="text/javascript" src="_static/js/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="_static/js/jquery-fix.js"></script> <script type="text/javascript" src="_static/bootstrap-3.1.0/js/bootstrap.min.js"></script> <script type="text/javascript" src="_static/bootstrap-sphinx.js"></script> <link rel="top" title="Colour 0.3.4 documentation" href="index.html" /> <link rel="up" title="colour.models Package" href="colour.models.html" /> <link rel="next" title="colour.models.common Module" href="colour.models.common.html" /> <link rel="prev" title="colour.models.cie_uvw Module" href="colour.models.cie_uvw.html" /> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'> <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'> <meta name="<API key>" content="yes"> </head> <body> <div id="navbar" class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <!-- .btn-navbar is used as the toggle for collapsed navbar content --> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="_static/<API key>.png"> Colour&nbsp;0.3</a> <!--<span class="navbar-text navbar-version pull-left"><b>0.3</b></span>--> </div> <div class="collapse navbar-collapse nav-collapse"> <ul class="nav navbar-nav"> <li class="divider-vertical"></li> <li><a href="https: <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-life-ring">&nbsp;Documentation</i><b class="caret"></b></a> <ul class="dropdown-menu"> <li> <a href="api.html" class="fa fa-life-ring">&nbsp;API Reference</a> </li> <li> <a href="http://nbviewer.ipython.org/github/colour-science/colour-ipython/blob/master/notebooks/colour.ipynb', True)" class="fa fa-book">&nbsp;IPython Notebooks</a> </li> <li> <a href="https: </li> <li> <a href="https: </li> </ul> </li> <li> <a href="colour.models.cie_uvw.html" title="Previous Chapter: colour.models.cie_uvw Module"><span class="glyphicon <API key> visible-sm"></span><span class="hidden-sm">&laquo; colour.models.ci...</span> </a> </li> <li> <a href="colour.models.common.html" title="Next Chapter: colour.models.common Module"><span class="glyphicon <API key> visible-sm"></span><span class="hidden-sm">colour.models.co... &raquo;</span> </a> </li> </ul> <form class="navbar-form navbar-right" action="search.html" method="get"> <div class="form-group"> <input type="text" name="q" class="form-control" placeholder="Search" /> </div> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="section" id="module-colour.models.cie_xyy"> <span id="<API key>"></span><h1>colour.models.cie_xyy Module<a class="headerlink" href=" <div class="section" id="cie-xyy-colourspace"> <h2>CIE xyY Colourspace<a class="headerlink" href=" <p>Defines the <em>CIE xyY</em> colourspace transformations:</p> <ul class="simple"> <li><a class="reference internal" href="#colour.models.cie_xyy.XYZ_to_xyY" title="colour.models.cie_xyy.XYZ_to_xyY"><tt class="xref py py-func docutils literal"><span class="pre">XYZ_to_xyY()</span></tt></a></li> <li><a class="reference internal" href="#colour.models.cie_xyy.xyY_to_XYZ" title="colour.models.cie_xyy.xyY_to_XYZ"><tt class="xref py py-func docutils literal"><span class="pre">xyY_to_XYZ()</span></tt></a></li> <li><a class="reference internal" href="#colour.models.cie_xyy.xy_to_XYZ" title="colour.models.cie_xyy.xy_to_XYZ"><tt class="xref py py-func docutils literal"><span class="pre">xy_to_XYZ()</span></tt></a></li> <li><a class="reference internal" href="#colour.models.cie_xyy.XYZ_to_xy" title="colour.models.cie_xyy.XYZ_to_xy"><tt class="xref py py-func docutils literal"><span class="pre">XYZ_to_xy()</span></tt></a></li> </ul> <div class="admonition seealso"> <p class="first admonition-title">See also</p> <p class="last"><a class="reference external" href="http://nbviewer.ipython.org/github/colour-science/colour-ipython/blob/master/notebooks/models/cie_xyy.ipynb">CIE xyY Colourspace IPython Notebook</a></p> </div> <p class="rubric">References</p> <table class="docutils footnote" frame="void" id="id1" rules="none"> <colgroup><col class="label" /><col /></colgroup> <tbody valign="top"> <tr><td class="label">[1]</td><td>Wikipedia. (n.d.). CIE 1931 color space. Retrieved February 24, 2014, from <a class="reference external" href="http: </tbody> </table> <dl class="function"> <dt id="colour.models.cie_xyy.XYZ_to_xyY"> <tt class="descclassname">colour.models.cie_xyy.</tt><tt class="descname">XYZ_to_xyY</tt><big>(</big><em>XYZ</em>, <em>illuminant=(0.34567</em>, <em>0.3585)</em><big>)</big><a class="reference internal" href="_modules/colour/models/cie_xyy.html <dd><p>Converts from <em>CIE XYZ</em> colourspace to <em>CIE xyY</em> colourspace and reference <em>illuminant</em>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>XYZ</strong> (<em>array_like, (3,)</em>) &#8211; <em>CIE XYZ</em> colourspace matrix.</li> <li><strong>illuminant</strong> (<em>array_like, optional</em>) &#8211; Reference <em>illuminant</em> chromaticity coordinates.</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><em>CIE xyY</em> colourspace matrix.</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">ndarray, (3,)</p> </td> </tr> </tbody> </table> <p class="rubric">Notes</p> <ul class="simple"> <li>Input <em>CIE XYZ</em> colourspace matrix is in domain [0, 1].</li> <li>Output <em>CIE xyY</em> colourspace matrix is in domain [0, 1].</li> </ul> <p class="rubric">References</p> <table class="docutils footnote" frame="void" id="id2" rules="none"> <colgroup><col class="label" /><col /></colgroup> <tbody valign="top"> <tr><td class="label">[2]</td><td>Lindbloom, B. (2003). XYZ to xyY. Retrieved February 24, 2014, from <a class="reference external" href="http: </tbody> </table> <p class="rubric">Examples</p> <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">XYZ</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([</span><span class="mf">0.07049534</span><span class="p">,</span> <span class="mf">0.1008</span><span class="p">,</span> <span class="mf">0.09558313</span><span class="p">])</span> <span class="gp">&gt;&gt;&gt; </span><span class="n">XYZ_to_xyY</span><span class="p">(</span><span class="n">XYZ</span><span class="p">)</span> <span class="go">array([ 0.2641477..., 0.3777000..., 0.1008 ])</span> </pre></div> </div> </dd></dl> <dl class="function"> <dt id="colour.models.cie_xyy.xyY_to_XYZ"> <tt class="descclassname">colour.models.cie_xyy.</tt><tt class="descname">xyY_to_XYZ</tt><big>(</big><em>xyY</em><big>)</big><a class="reference internal" href="_modules/colour/models/cie_xyy.html <dd><p>Converts from <em>CIE xyY</em> colourspace to <em>CIE XYZ</em> colourspace.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>xyY</strong> (<em>array_like, (3,)</em>) &#8211; <em>CIE xyY</em> colourspace matrix.</td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><em>CIE XYZ</em> colourspace matrix.</td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">ndarray, (3,)</td> </tr> </tbody> </table> <p class="rubric">Notes</p> <ul class="simple"> <li>Input <em>CIE xyY</em> colourspace matrix is in domain [0, 1].</li> <li>Output <em>CIE XYZ</em> colourspace matrix is in domain [0, 1].</li> </ul> <p class="rubric">References</p> <table class="docutils footnote" frame="void" id="id3" rules="none"> <colgroup><col class="label" /><col /></colgroup> <tbody valign="top"> <tr><td class="label">[3]</td><td>Lindbloom, B. (2009). xyY to XYZ. Retrieved February 24, 2014, from <a class="reference external" href="http: </tbody> </table> <p class="rubric">Examples</p> <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">xyY</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([</span><span class="mf">0.26414772</span><span class="p">,</span> <span class="mf">0.37770001</span><span class="p">,</span> <span class="mf">0.1008</span><span class="p">])</span> <span class="gp">&gt;&gt;&gt; </span><span class="n">xyY_to_XYZ</span><span class="p">(</span><span class="n">xyY</span><span class="p">)</span> <span class="go">array([ 0.0704953..., 0.1008 , 0.0955831...])</span> </pre></div> </div> </dd></dl> <dl class="function"> <dt id="colour.models.cie_xyy.xy_to_XYZ"> <tt class="descclassname">colour.models.cie_xyy.</tt><tt class="descname">xy_to_XYZ</tt><big>(</big><em>xy</em><big>)</big><a class="reference internal" href="_modules/colour/models/cie_xyy.html <dd><p>Returns the <em>CIE XYZ</em> colourspace matrix from given <em>xy</em> chromaticity coordinates.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>xy</strong> (<em>array_like</em>) &#8211; <em>xy</em> chromaticity coordinates.</td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><em>CIE XYZ</em> colourspace matrix.</td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">ndarray, (3,)</td> </tr> </tbody> </table> <p class="rubric">Notes</p> <ul class="simple"> <li>Input <em>xy</em> chromaticity coordinates are in domain [0, 1].</li> <li>Output <em>CIE XYZ</em> colourspace matrix is in domain [0, 1].</li> </ul> <p class="rubric">Examples</p> <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">xy</span> <span class="o">=</span> <span class="p">(</span><span class="mf">0.26414772236966133</span><span class="p">,</span> <span class="mf">0.37770000704815188</span><span class="p">)</span> <span class="gp">&gt;&gt;&gt; </span><span class="n">xy_to_XYZ</span><span class="p">(</span><span class="n">xy</span><span class="p">)</span> <span class="go">array([ 0.6993585..., 1. , 0.9482453...])</span> </pre></div> </div> </dd></dl> <dl class="function"> <dt id="colour.models.cie_xyy.XYZ_to_xy"> <tt class="descclassname">colour.models.cie_xyy.</tt><tt class="descname">XYZ_to_xy</tt><big>(</big><em>XYZ</em>, <em>illuminant=(0.34567</em>, <em>0.3585)</em><big>)</big><a class="reference internal" href="_modules/colour/models/cie_xyy.html <dd><p>Returns the <em>xy</em> chromaticity coordinates from given <em>CIE XYZ</em> colourspace matrix.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>XYZ</strong> (<em>array_like, (3,)</em>) &#8211; <em>CIE XYZ</em> colourspace matrix.</li> <li><strong>illuminant</strong> (<em>array_like, optional</em>) &#8211; Reference <em>illuminant</em> chromaticity coordinates.</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><em>xy</em> chromaticity coordinates.</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">tuple</p> </td> </tr> </tbody> </table> <p class="rubric">Notes</p> <ul class="simple"> <li>Input <em>CIE XYZ</em> colourspace matrix is in domain [0, 1].</li> <li>Output <em>xy</em> chromaticity coordinates are in domain [0, 1].</li> </ul> <p class="rubric">Examples</p> <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">XYZ</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([</span><span class="mf">0.07049534</span><span class="p">,</span> <span class="mf">0.1008</span><span class="p">,</span> <span class="mf">0.09558313</span><span class="p">])</span> <span class="gp">&gt;&gt;&gt; </span><span class="n">XYZ_to_xy</span><span class="p">(</span><span class="n">XYZ</span><span class="p">)</span> <span class="go">(0.2641477..., 0.3777000...)</span> </pre></div> </div> </dd></dl> </div> </div> </div> </div> </div> <footer class="footer"> <div class="container"> <p class="pull-right"> <a href="#">Back to top</a> </p> <p> &copy; Copyright 2013 - 2015, Colour Developers.<br/> Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.2.2.<br/> </p> </div> </footer> </body> </html>
Because the ```<API key>``` directory is based on parts of Chromium's ```gpu/config`` directory, we want to keep a patch of the changes added to make it compile with ANGLE. This will allow us to merge Chromium changes easily in our ```<API key>```. In order to make a change to this directory, do the following: * copy the directory somewhere like in ```<API key>``` * in ```<API key>``` run ```patch -p 1 -R < angle-mods.patch``` * do your changes in ```<API key>``` * delete angle-mods.path in both directories * run ```diff -rupN <API key> <API key> > angle-mods.patch``` * copy ```angle-mods.patch``` in ```<API key>``` How to update from Chromium: * ```git apply -R angle-mods.patch```, ```git add . -u```, ```git commit``` * Copy over Chromium files, ```git add . -u```, ```git commit``` * ```git revert HEAD~2``` * ```rm angle-mods.patch``` * ```git diff HEAD~1 (`)ls(`) > angle-mods.patch```,```git add angle-mods.patch```, ```git commit --amend``` * ```git rebase -i``` to squash the three patches into one.
from constance.admin import ConstanceForm from django.forms import fields from django.test import TestCase class TestForm(TestCase): def <API key>(self): f = ConstanceForm({}) self.assertIsInstance(f.fields['INT_VALUE'], fields.IntegerField) self.assertIsInstance(f.fields['BOOL_VALUE'], fields.BooleanField) self.assertIsInstance(f.fields['STRING_VALUE'], fields.CharField) self.assertIsInstance(f.fields['DECIMAL_VALUE'], fields.DecimalField) self.assertIsInstance(f.fields['DATETIME_VALUE'], fields.SplitDateTimeField) self.assertIsInstance(f.fields['TIMEDELTA_VALUE'], fields.DurationField) self.assertIsInstance(f.fields['FLOAT_VALUE'], fields.FloatField) self.assertIsInstance(f.fields['DATE_VALUE'], fields.DateField) self.assertIsInstance(f.fields['TIME_VALUE'], fields.TimeField) # from <API key> self.assertIsInstance(f.fields['CHOICE_VALUE'], fields.ChoiceField) self.assertIsInstance(f.fields['EMAIL_VALUE'], fields.EmailField)
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.cpp Label Definition File: <API key>.label.xml Template File: sources-sinks-54b.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines * BadSource: Allocate data using new * GoodSource: Allocate data using malloc() * Sinks: * GoodSink: Deallocate data using delete * BadSink : Deallocate data using free() * Flow Variant: 54 Data flow: data passed as an argument from one function through three others to a fifth; all five functions are in different source files * * */ #include "std_testcase.h" namespace <API key> { #ifndef OMITBAD /* bad function declaration */ void badSink_c(twoIntsStruct * data); void badSink_b(twoIntsStruct * data) { badSink_c(data); } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B uses the GoodSource with the BadSink */ void goodG2BSink_c(twoIntsStruct * data); void goodG2BSink_b(twoIntsStruct * data) { goodG2BSink_c(data); } /* goodB2G uses the BadSource with the GoodSink */ void goodB2GSink_c(twoIntsStruct * data); void goodB2GSink_b(twoIntsStruct * data) { goodB2GSink_c(data); } #endif /* OMITGOOD */ } /* close namespace */
<script> var xx = []; var x = ["aa", "bb"]; var j=Math.random(); for(var i=0; i <2; i++){ for(var k=0; k<2; k++) { if(i==k) xx[i] = x[k]; } } // xx = ["aa", "bb"] </script>
// permitted provided that the following conditions are met: // materials provided with the distribution. // used to endorse or promote products derived from this software without specific // 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 // 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 "gtest/gtest.h" #include "cryptonote_core/cryptonote_core.h" #include "p2p/net_node.h" #include "cryptonote_protocol/<API key>.h" namespace cryptonote { class blockchain_storage; } class test_core { public: void on_synchronized(){} uint64_t <API key>() const {return 1;} void <API key>(uint64_t) {} bool init(const boost::program_options::variables_map& vm) {return true ;} bool deinit(){return true;} bool <API key>(std::list<crypto::hash>& ids) const { return true; } bool get_stat_info(cryptonote::core_stat_info& st_inf) const {return true;} bool have_block(const crypto::hash& id) const {return true;} bool get_blockchain_top(uint64_t& height, crypto::hash& top_id)const{height=0;top_id=cryptonote::null_hash;return true;} bool handle_incoming_tx(const cryptonote::blobdata& tx_blob, cryptonote::<API key>& tvc, bool keeped_by_block, bool relaued) { return true; } bool <API key>(const cryptonote::blobdata& block_blob, cryptonote::<API key>& bvc, bool <API key> = true) { return true; } void pause_mine(){} void resume_mine(){} bool on_idle(){return true;} bool <API key>(const std::list<crypto::hash>& qblock_ids, cryptonote::<API key>::request& resp){return true;} bool handle_get_objects(cryptonote::<API key>::request& arg, cryptonote::<API key>::request& rsp, cryptonote::<API key>& context){return true;} cryptonote::blockchain_storage &<API key>() { throw std::runtime_error("Called invalid member function: please never call <API key> on the TESTING class test_core."); } bool <API key>() const {return true;} bool <API key>() const {return true;} bool <API key>(const std::list<cryptonote::<API key>> &blocks) { return true; } bool <API key>(bool force_sync = false) { return true; } uint64_t <API key>() const { return 1; } }; typedef nodetool::node_server<cryptonote::<API key><test_core>> Server; static bool is_blocked(Server &server, uint32_t ip, time_t *t = NULL) { std::map<uint32_t, time_t> ips = server.get_blocked_ips(); for (auto rec: ips) { if (rec.first == ip) { if (t) *t = rec.second; return true; } } return false; } TEST(ban, add) { test_core pr_core; cryptonote::<API key><test_core> cprotocol(pr_core, NULL); Server server(cprotocol); cprotocol.set_p2p_endpoint(&server); // starts empty ASSERT_TRUE(server.get_blocked_ips().empty()); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,4))); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,5))); // add an IP ASSERT_TRUE(server.block_ip(MAKE_IP(1,2,3,4))); ASSERT_TRUE(server.get_blocked_ips().size() == 1); ASSERT_TRUE(is_blocked(server,MAKE_IP(1,2,3,4))); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,5))); // add the same, should not change ASSERT_TRUE(server.block_ip(MAKE_IP(1,2,3,4))); ASSERT_TRUE(server.get_blocked_ips().size() == 1); ASSERT_TRUE(is_blocked(server,MAKE_IP(1,2,3,4))); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,5))); // remove an unblocked IP, should not change ASSERT_FALSE(server.unblock_ip(MAKE_IP(1,2,3,5))); ASSERT_TRUE(server.get_blocked_ips().size() == 1); ASSERT_TRUE(is_blocked(server,MAKE_IP(1,2,3,4))); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,5))); // remove the IP, ends up empty ASSERT_TRUE(server.unblock_ip(MAKE_IP(1,2,3,4))); ASSERT_TRUE(server.get_blocked_ips().size() == 0); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,4))); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,5))); // remove the IP from an empty list, still empty ASSERT_FALSE(server.unblock_ip(MAKE_IP(1,2,3,4))); ASSERT_TRUE(server.get_blocked_ips().size() == 0); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,4))); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,5))); // add two for known amounts of time, they're both blocked ASSERT_TRUE(server.block_ip(MAKE_IP(1,2,3,4), 1)); ASSERT_TRUE(server.block_ip(MAKE_IP(1,2,3,5), 3)); ASSERT_TRUE(server.get_blocked_ips().size() == 2); ASSERT_TRUE(is_blocked(server,MAKE_IP(1,2,3,4))); ASSERT_TRUE(is_blocked(server,MAKE_IP(1,2,3,5))); ASSERT_TRUE(server.unblock_ip(MAKE_IP(1,2,3,4))); ASSERT_TRUE(server.unblock_ip(MAKE_IP(1,2,3,5))); // these tests would need to call <API key>, which is private #if 0 // after two seconds, the first IP is unblocked, but not the second yet sleep(2); ASSERT_TRUE(server.get_blocked_ips().size() == 1); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,4))); ASSERT_TRUE(is_blocked(server,MAKE_IP(1,2,3,5))); // after two more seconds, the second IP is also unblocked sleep(2); ASSERT_TRUE(server.get_blocked_ips().size() == 0); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,4))); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,5))); #endif // add an IP again, then re-ban for longer, then shorter time_t t; ASSERT_TRUE(server.block_ip(MAKE_IP(1,2,3,4), 2)); ASSERT_TRUE(server.get_blocked_ips().size() == 1); ASSERT_TRUE(is_blocked(server,MAKE_IP(1,2,3,4), &t)); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,5))); ASSERT_TRUE(t >= 1); ASSERT_TRUE(server.block_ip(MAKE_IP(1,2,3,4), 9)); ASSERT_TRUE(server.get_blocked_ips().size() == 1); ASSERT_TRUE(is_blocked(server,MAKE_IP(1,2,3,4), &t)); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,5))); ASSERT_TRUE(t >= 8); ASSERT_TRUE(server.block_ip(MAKE_IP(1,2,3,4), 5)); ASSERT_TRUE(server.get_blocked_ips().size() == 1); ASSERT_TRUE(is_blocked(server,MAKE_IP(1,2,3,4), &t)); ASSERT_FALSE(is_blocked(server,MAKE_IP(1,2,3,5))); ASSERT_TRUE(t >= 4); }
<?php namespace app\models; use Yii; use app\models\general\GeneralLabel; use app\models\general\GeneralMessage; /** * This is the model class for table "<API key>". * * @property integer $id * @property string $desc * @property integer $aktif * @property integer $created_by * @property integer $updated_by * @property string $created * @property string $updated */ class RefJawatanInduk extends \yii\db\ActiveRecord { const PRESIDEN = 1; const TIMBALAN_PRESIDEN = 2; const NAIB_PRESIDEN_1 = 3; const NAIB_PRESIDEN_2 = 4; const NAIB_PRESIDEN_3 = 5; const NAIB_PRESIDEN_4 = 6; const NAIB_PRESIDEN_5 = 7; const NAIB_PRESIDEN_6 = 8; const NAIB_PRESIDEN_7 = 9; const NAIB_PRESIDEN_8 = 10; const NAIB_PRESIDEN_9 = 11; const NAIB_PRESIDEN_10 = 12; const BENDAHARI = 13; const PENOLONG_BENDAHARI = 14; const SETIAUSAHA = 15; const PENOLONG_SETIAUSAHA = 16; const AHLI_JAWATANKUASA = 17; const JURUAUDIT_1 = 18; const JURUAUDIT_2 = 19; const PENAUNG = 20; const PENASIHAT = 21; /** * @inheritdoc */ public static function tableName() { return '<API key>'; } public function behaviors() { return [ 'bedezign\yii2\audit\AuditTrailBehavior', [ 'class' => \yii\behaviors\BlameableBehavior::className(), 'createdByAttribute' => 'created_by', 'updatedByAttribute' => 'updated_by', ], [ 'class' => \yii\behaviors\TimestampBehavior::className(), 'createdAtAttribute' => 'created', 'updatedAtAttribute' => 'updated', 'value' => new \yii\db\Expression('NOW()'), ], ]; } /** * @inheritdoc */ public function rules() { return [ [['desc'], 'required', 'message' => GeneralMessage::<API key>], [['aktif', 'created_by', 'updated_by'], 'integer', 'message' => GeneralMessage::<API key>], [['created', 'updated'], 'safe'], [['desc'], 'string', 'max' => 80, 'tooLong' => GeneralMessage::<API key>], [['desc'], function ($attribute, $params) { if (!\common\models\general\GeneralFunction::validateXSS($this->$attribute)) { $this->addError($attribute, GeneralMessage::yii_validation_xss); } }], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => GeneralLabel::id, 'desc' => GeneralLabel::desc, 'aktif' => GeneralLabel::aktif, 'created_by' => GeneralLabel::created_by, 'updated_by' => GeneralLabel::updated_by, 'created' => GeneralLabel::created, 'updated' => GeneralLabel::updated, ]; } }
package sbt package compiler import scala.util import java.io.File import CompilerArguments.{abs, absString, BootClasspathOption} /** Forms the list of options that is passed to the compiler from the required inputs and other options. * The directory containing scala-library.jar and scala-compiler.jar (scalaLibDirectory) is required in * order to add these jars to the boot classpath. The 'scala.home' property must be unset because Scala * puts jars in that directory on the bootclasspath. Because we use multiple Scala versions, * this would lead to compiling against the wrong library jar.*/ final class CompilerArguments(scalaInstance: ScalaInstance, cp: ClasspathOptions) { def apply(sources: Seq[File], classpath: Seq[File], outputDirectory: File, options: Seq[String]): Seq[String] = { checkScalaHomeUnset() val cpWithCompiler = finishClasspath(classpath) // Scala compiler's treatment of empty classpath is troublesome (as of 2.9.1). // We append a random dummy element as workaround. val dummy = "dummy_" + Integer.toHexString(util.Random.nextInt) val classpathOption = Seq("-classpath", if(cpWithCompiler.isEmpty) dummy else absString(cpWithCompiler)) val outputOption = Seq("-d", outputDirectory.getAbsolutePath) options ++ outputOption ++ bootClasspathOption ++ classpathOption ++ abs(sources) } def finishClasspath(classpath: Seq[File]): Seq[File] = filterLibrary(classpath) ++ include(cp.compiler, scalaInstance.compilerJar) ++ include(cp.extra, scalaInstance.extraJars : _*) private def include(flag: Boolean, jars: File*) = if(flag) jars else Nil protected def abs(files: Seq[File]) = files.map(_.getAbsolutePath).sortWith(_ < _) protected def checkScalaHomeUnset() { val scalaHome = System.getProperty("scala.home") assert((scalaHome eq null) || scalaHome.isEmpty, "'scala.home' should not be set (was " + scalaHome + ")") } /** Add the correct Scala library jar to the boot classpath.*/ def createBootClasspath = { val originalBoot = System.getProperty("sun.boot.class.path", "") if(cp.bootLibrary) { val newBootPrefix = if(originalBoot.isEmpty) "" else originalBoot + File.pathSeparator newBootPrefix + scalaInstance.libraryJar.getAbsolutePath } else originalBoot } def filterLibrary(classpath: Seq[File]) = if(cp.filterLibrary) classpath.filterNot(_.getName contains ScalaArtifacts.LibraryID) else classpath def bootClasspathOption = if(cp.autoBoot) Seq(BootClasspathOption, createBootClasspath) else Nil def bootClasspath = if(cp.autoBoot) IO.parseClasspath(createBootClasspath) else Nil } object CompilerArguments { val BootClasspathOption = "-bootclasspath" def abs(files: Seq[File]): Seq[String] = files.map(_.getAbsolutePath) def abs(files: Set[File]): Seq[String] = abs(files.toSeq) def absString(files: Seq[File]): String = abs(files).mkString(File.pathSeparator) def absString(files: Set[File]): String = absString(files.toSeq) }
#include "chrome/browser/chromeos/login/<API key>.h" #include <vector> #include "base/bind.h" #include "base/bind_helpers.h" #include "base/chromeos/chromeos_version.h" #include "base/string_util.h" #include "base/stringprintf.h" #include "base/<API key>.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/chromeos/settings/cros_settings.h" #include "chrome/browser/chromeos/settings/cros_settings_names.h" #include "chrome/browser/policy/<API key>.h" #include "chrome/browser/policy/<API key>.h" #include "chrome/common/<API key>.h" #include "chrome/common/chrome_version_info.h" #include "grit/chromium_strings.h" #include "grit/generated_resources.h" #include "grit/theme_resources.h" #include "ui/base/l10n/l10n_util.h" #include "ui/base/resource/resource_bundle.h" namespace chromeos { namespace { const char* kReportingFlags[] = { chromeos::<API key>, chromeos::<API key>, chromeos::<API key>, chromeos::<API key>, }; } // VersionInfoUpdater public: VersionInfoUpdater::VersionInfoUpdater(Delegate* delegate) : cros_settings_(chromeos::CrosSettings::Get()), delegate_(delegate), <API key>(<API key>(this)) { } VersionInfoUpdater::~VersionInfoUpdater() { policy::<API key>* policy_manager = g_browser_process-><API key>()-> <API key>(); if (policy_manager) policy_manager->core()->store()->RemoveObserver(this); for (unsigned int i = 0; i < arraysize(kReportingFlags); ++i) cros_settings_-><API key>(kReportingFlags[i], this); } void VersionInfoUpdater::StartUpdate(bool is_official_build) { if (base::chromeos::IsRunningOnChromeOS()) { version_loader_.GetVersion( is_official_build ? VersionLoader::<API key> : VersionLoader::VERSION_FULL, base::Bind(&VersionInfoUpdater::OnVersion, <API key>.GetWeakPtr()), &tracker_); boot_times_loader_.GetBootTimes( base::Bind(is_official_build ? &VersionInfoUpdater::OnBootTimesNoop : &VersionInfoUpdater::OnBootTimes, <API key>.GetWeakPtr()), &tracker_); } else { UpdateVersionLabel(); } policy::<API key>* cloud_policy = g_browser_process-><API key>()-> <API key>(); if (cloud_policy) { // Two-step reset because we want to construct new ObserverRegistrar after // destruction of old ObserverRegistrar to avoid DCHECK violation because // of adding existing observer. <API key>.reset(); <API key>.reset( new policy::<API key>::ObserverRegistrar( cloud_policy, this)); // Ensure that we have up-to-date enterprise info in case enterprise policy // is already fetched and has finished initialization. <API key>(); } policy::<API key>* policy_manager = g_browser_process-><API key>()-> <API key>(); if (policy_manager) { policy_manager->core()->store()->AddObserver(this); // Ensure that we have up-to-date enterprise info in case enterprise policy // is already fetched and has finished initialization. <API key>(); } // Watch for changes to the reporting flags. for (unsigned int i = 0; i < arraysize(kReportingFlags); ++i) cros_settings_->AddSettingsObserver(kReportingFlags[i], this); } void VersionInfoUpdater::UpdateVersionLabel() { if (version_text_.empty()) return; chrome::VersionInfo version_info; std::string label_text = l10n_util::GetStringFUTF8( <API key>, l10n_util::GetStringUTF16(IDS_PRODUCT_NAME), UTF8ToUTF16(version_info.Version()), UTF8ToUTF16(version_text_)); // Workaround over incorrect width calculation in old fonts. // TODO(glotov): remove the following line when new fonts are used. label_text += ' '; if (delegate_) delegate_-><API key>(label_text); } void VersionInfoUpdater::<API key>() { SetEnterpriseInfo( g_browser_process-><API key>()->GetEnterpriseDomain()); } void VersionInfoUpdater::SetEnterpriseInfo(const std::string& domain_name) { if (domain_name != <API key>) { <API key> = domain_name; UpdateVersionLabel(); // Update the notification about device status reporting. if (delegate_) { std::string enterprise_info; if (!domain_name.empty()) { enterprise_info = l10n_util::GetStringFUTF8( <API key>, UTF8ToUTF16(domain_name)); delegate_-><API key>(enterprise_info); } } } } void VersionInfoUpdater::OnVersion(const std::string& version) { version_text_ = version; UpdateVersionLabel(); } void VersionInfoUpdater::OnBootTimesNoop( const BootTimesLoader::BootTimes& boot_times) {} void VersionInfoUpdater::OnBootTimes( const BootTimesLoader::BootTimes& boot_times) { const char* <API key> = "Non-firmware boot took %.2f seconds (kernel %.2fs, system %.2fs)"; const char* <API key> = "Non-firmware boot took %.2f seconds " "(kernel %.2fs, system %.2fs, chrome %.2fs)"; std::string boot_times_text; if (boot_times.chrome > 0) { boot_times_text = base::StringPrintf( <API key>, boot_times.total, boot_times.pre_startup, boot_times.system, boot_times.chrome); } else { boot_times_text = base::StringPrintf( <API key>, boot_times.total, boot_times.pre_startup, boot_times.system); } // Use UTF8ToWide once this string is localized. if (delegate_) delegate_-><API key>(boot_times_text); } void VersionInfoUpdater::<API key>( policy::<API key>::<API key> state, policy::<API key>::ErrorDetails error_details) { <API key>(); } void VersionInfoUpdater::OnStoreLoaded(policy::CloudPolicyStore* store) { <API key>(); } void VersionInfoUpdater::OnStoreError(policy::CloudPolicyStore* store) { <API key>(); } void VersionInfoUpdater::Observe( int type, const content::NotificationSource& source, const content::NotificationDetails& details) { if (type == chrome::<API key>) <API key>(); else NOTREACHED(); } } // namespace chromeos
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! #include "config.h" #include "<API key>.h" #include "bindings/core/v8/ExceptionState.h" #include "bindings/core/v8/UnionTypesCore.h" #include "bindings/core/v8/V8DOMConfiguration.h" #include "bindings/core/v8/V8HiddenValue.h" #include "bindings/core/v8/V8Node.h" #include "bindings/core/v8/V8NodeList.h" #include "bindings/core/v8/V8ObjectConstructor.h" #include "core/dom/ContextFeatures.h" #include "core/dom/Document.h" #include "core/dom/NameNodeList.h" #include "core/dom/NodeList.h" #include "core/dom/StaticNodeList.h" #include "core/html/LabelsNodeList.h" #include "platform/<API key>.h" #include "platform/TraceEvent.h" #include "wtf/GetPtr.h" #include "wtf/RefPtr.h" namespace blink { const WrapperTypeInfo <API key>::wrapperTypeInfo = { gin::kEmbedderBlink, <API key>::domTemplate, <API key>::refObject, <API key>::derefObject, <API key>::trace, 0, 0, 0, <API key>::<API key>, <API key>::<API key>, 0, WrapperTypeInfo::<API key>, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; // This static member must be declared by <API key> in <API key>.h. // For details, see the comment of <API key> in // bindings/core/v8/ScriptWrappable.h. const WrapperTypeInfo& <API key>::s_wrapperTypeInfo = <API key>::wrapperTypeInfo; namespace <API key> { static void namedItemMethod(const v8::<API key><v8::Value>& info) { if (UNLIKELY(info.Length() < 1)) { V8ThrowException::throwException(<API key>(info.GetIsolate(), "namedItem", "<API key>", 1, info.Length()), info.GetIsolate()); return; } <API key>* impl = <API key>::toImpl(info.Holder()); V8StringResource<> name; { <API key>(name, info[0]); } NodeOrNodeList result; impl->getItem(name, result); v8SetReturnValue(info, result); } static void <API key>(const v8::<API key><v8::Value>& info) { <API key>("blink", "DOMMethod"); <API key>::namedItemMethod(info); <API key>("v8", "V8Execution"); } static void namedPropertyGetter(v8::Local<v8::String> name, const v8::<API key><v8::Value>& info) { <API key>* impl = <API key>::toImpl(info.Holder()); AtomicString propertyName = toCoreAtomicString(name); NodeOrNodeList result; impl->getItem(propertyName, result); if (result.isNull()) return; v8SetReturnValue(info, result); } static void <API key>(v8::Local<v8::String> name, const v8::<API key><v8::Value>& info) { <API key>("blink", "DOMNamedProperty"); <API key>::namedPropertyGetter(name, info); <API key>("v8", "V8Execution"); } static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value> v8Value, const v8::<API key><v8::Value>& info) { <API key>* impl = <API key>::toImpl(info.Holder()); TOSTRING_VOID(V8StringResource<>, propertyName, name); Node* propertyValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); bool result = impl-><API key>(propertyName, propertyValue); if (!result) return; v8SetReturnValue(info, v8Value); } static void <API key>(v8::Local<v8::String> name, v8::Local<v8::Value> v8Value, const v8::<API key><v8::Value>& info) { <API key>("blink", "DOMNamedProperty"); <API key>::namedPropertySetter(name, v8Value, info); <API key>("v8", "V8Execution"); } static void namedPropertyQuery(v8::Local<v8::String> name, const v8::<API key><v8::Integer>& info) { <API key>* impl = <API key>::toImpl(info.Holder()); AtomicString propertyName = toCoreAtomicString(name); v8::String::Utf8Value namedProperty(name); ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty, "<API key>", info.Holder(), info.GetIsolate()); bool result = impl->namedPropertyQuery(propertyName, exceptionState); if (exceptionState.throwIfNeeded()) return; if (!result) return; v8SetReturnValueInt(info, v8::None); } static void <API key>(v8::Local<v8::String> name, const v8::<API key><v8::Integer>& info) { <API key>("blink", "DOMNamedProperty"); <API key>::namedPropertyQuery(name, info); <API key>("v8", "V8Execution"); } static void <API key>(const v8::<API key><v8::Array>& info) { <API key>* impl = <API key>::toImpl(info.Holder()); Vector<String> names; ExceptionState exceptionState(ExceptionState::EnumerationContext, "<API key>", info.Holder(), info.GetIsolate()); impl-><API key>(names, exceptionState); if (exceptionState.throwIfNeeded()) return; v8::Handle<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size()); for (size_t i = 0; i < names.size(); ++i) v8names->Set(v8::Integer::New(info.GetIsolate(), i), v8String(info.GetIsolate(), names[i])); v8SetReturnValue(info, v8names); } static void <API key>(const v8::<API key><v8::Array>& info) { <API key>("blink", "DOMNamedProperty"); <API key>::<API key>(info); <API key>("v8", "V8Execution"); } } // namespace <API key> static const V8DOMConfiguration::MethodConfiguration <API key>[] = { {"namedItem", <API key>::<API key>, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, }; static void <API key>(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate) { functionTemplate->ReadOnlyPrototype(); v8::Local<v8::Signature> defaultSignature; defaultSignature = V8DOMConfiguration::<API key>(functionTemplate, "<API key>", v8::Local<v8::FunctionTemplate>(), <API key>::internalFieldCount, 0, 0, 0, 0, <API key>, WTF_ARRAY_LENGTH(<API key>), isolate); v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceTemplate(); ALLOW_UNUSED_LOCAL(instanceTemplate); v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->PrototypeTemplate(); ALLOW_UNUSED_LOCAL(prototypeTemplate); functionTemplate->InstanceTemplate()-><API key>(<API key>::<API key>, <API key>::<API key>, <API key>::<API key>, 0, <API key>::<API key>); // Custom toString template functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData::from(isolate)->toStringTemplate()); } v8::Handle<v8::FunctionTemplate> <API key>::domTemplate(v8::Isolate* isolate) { return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), <API key>); } bool <API key>::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) { return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value); } v8::Handle<v8::Object> <API key>::<API key>(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) { return V8PerIsolateData::from(isolate)-><API key>(&wrapperTypeInfo, v8Value); } <API key>* <API key>::toImplWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) { return hasInstance(value, isolate) ? blink::<API key>(v8::Handle<v8::Object>::Cast(value))->toImpl<<API key>>() : 0; } void <API key>::refObject(ScriptWrappableBase* scriptWrappableBase) { scriptWrappableBase->toImpl<<API key>>()->ref(); } void <API key>::derefObject(ScriptWrappableBase* scriptWrappableBase) { scriptWrappableBase->toImpl<<API key>>()->deref(); } template<> v8::Handle<v8::Value> toV8NoInline(<API key>* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) { return toV8(impl, creationContext, isolate); } } // namespace blink
#include <Python.h> #include "ZTypes.h" #include "ZGlobals.h" extern void <API key>(PyObject *m); extern void initialize_zsp_auth(PyObject *m); extern void <API key>(PyObject *m); extern void <API key>(PyObject *m); extern void <API key>(PyObject *m); extern void initialize_zsp_flag(PyObject *m); extern void <API key>(PyObject *m); extern void initialize_zsp_file(PyObject *m); extern void <API key>(PyObject *m); extern void initialize_zsp_done(PyObject *m); extern void <API key>(PyObject *m); extern void <API key>(PyObject *m); #ifndef PyMODINIT_FUNC #define PyMODINIT_FUNC void #endif static PyMethodDef module_methods[] = { {NULL} /* Sentinel */ }; PyMODINIT_FUNC initzsp_packets(void) { PyObject *m; m = Py_InitModule3("zsp_packets", module_methods, "Authorization packet."); if (m == NULL) return; <API key>(m, "ZSP_NONE", ZSP_NONE); <API key>(m, "ZSP_QUIT", ZSP_QUIT); <API key>(m, "ZSP_AUTH", ZSP_AUTH); <API key>(m, "ZSP_VERSION", ZSP_VERSION); <API key>(m, "ZSP_FLAG", ZSP_FLAG); <API key>(m, "ZSP_FILE", ZSP_FILE); <API key>(m, "ZSP_DONE", ZSP_DONE); <API key>(m, "ZSP_QUIT_RESP", ZSP_QUIT_RESP); <API key>(m, "ZSP_AUTH_RESP", ZSP_AUTH_RESP); <API key>(m, "ZSP_VERSION_RESP", ZSP_VERSION_RESP); <API key>(m, "ZSP_FLAG_RESP", ZSP_FLAG_RESP); <API key>(m, "ZSP_FILE_RESP", ZSP_FILE_RESP); <API key>(m, "ZSP_DONE_RESP", ZSP_DONE_RESP); <API key>(m, "ZSP_ERROR", ZSP_ERROR); <API key>(m, "ZSP_JPEG", ZSP_JPEG); <API key>(m, "ZSP_PNG", ZSP_PNG); <API key>(m, "ZSP_GIF", ZSP_GIF); <API key>(m, "ZSP_BMP", ZSP_BMP); <API key>(m, "ZSP_TIFF", ZSP_TIFF); <API key>(m, "ZSP_TARGA", ZSP_TARGA); // Return codes <API key>(m, "ZSP_AUTH_OK", ZSP_AUTH_OK); <API key>(m, "ZSP_AUTH_BAD", ZSP_AUTH_BAD); <API key>(m, "ZSP_VERS_GOOD", ZSP_VERS_GOOD); <API key>(m, "ZSP_VERS_OLD", ZSP_VERS_OLD); <API key>(m, "ZSP_VERS_BAD", ZSP_VERS_BAD); <API key>(m, "ZSP_FILE_OK", ZSP_FILE_OK); <API key>(m, "ZSP_FILE_NO_FLAG", ZSP_FILE_NO_FLAG); <API key>(m, "ZSP_FILE_BAD", ZSP_FILE_BAD); <API key>(m, "ZSP_DONE_OK", ZSP_DONE_OK); <API key>(m, "ZSP_DONE_BAD_SUM", ZSP_DONE_BAD_SUM); <API key>(m, "ZSP_DONE_BAD_SYNC", ZSP_DONE_BAD_SYNC); <API key>(m, "ZSP_DONE_BAD_SYNC2", ZSP_DONE_BAD_SYNC2); <API key>(m, "ZSP_DONE_CORRUPT", ZSP_DONE_CORRUPT); <API key>(m, "ZSP_DONE_BAD_WRITE", ZSP_DONE_BAD_WRITE); <API key>(m); initialize_zsp_auth(m); <API key>(m); <API key>(m); <API key>(m); initialize_zsp_flag(m); <API key>(m); initialize_zsp_file(m); <API key>(m); initialize_zsp_done(m); <API key>(m); <API key>(m); }
package org.lockss.mail; import java.io.*; import java.util.*; import java.net.*; import org.apache.oro.text.regex.*; import javax.mail.*; import javax.mail.internet.*; // import javax.activation.*; import org.lockss.test.*; import org.lockss.mail.*; import org.lockss.util.*; import org.lockss.daemon.*; import org.lockss.plugin.*; public class TestMimeMessage extends LockssTestCase { // The generated message is checked against these patterns, in a way that // is too brittle (order dependent, etc.). If the format of the message // changes innocuously the patterns and/or tests may have to be changed static final String PAT_MESSAGE_ID = "^Message-ID: "; static final String PAT_MIME_VERSION = "^MIME-Version: 1.0"; static final String PAT_CONTENT_TYPE = "^Content-Type: "; static final String PAT_FROM = "^From: "; static final String PAT_TO = "^To: "; static final String PAT_BOUNDARY = "^ static final String <API key> = "^<API key>: "; static final String <API key> = "^Content-Disposition: "; String toString(MailMessage msg) { try { <API key> baos = new <API key>(); <API key> out = new <API key>(baos); msg.writeData(out); out.flush(); return baos.toString(); } catch (IOException e) { throw new RuntimeException("Error converting MimeMessage to string", e); } } /** Return the header part (lines preceding first blank line) */ String getHeader(String body) { List lst = StringUtil.breakAt(body, "\r\n\r\n"); if (lst.size() < 1) return null; return (String)lst.get(0); } /** Return the header part (lines preceding first blank line) */ String getHeader(MimeMessage msg) { return getHeader(toString(msg)); } /** Return the body part (lines following first blank line) */ String getBody(String body) { int pos = body.indexOf("\r\n\r\n"); if (pos < 0) return null; return body.substring(pos+4); } /** Return the body part (lines following first blank line) */ String getBody(MimeMessage msg) { return getBody(toString(msg)); } /** Break a string at <crlf>s into an array of lines */ String[] getLines(String body) { List lst = StringUtil.breakAt(body, "\r\n"); return (String[])lst.toArray(new String[0]); } String[] getHeaderLines(MimeMessage msg) { return getLines(getHeader(msg)); } String[] getBodyLines(MimeMessage msg) { return getLines(getBody(msg)); } /** assert that the pattern exists in the string, interpreting the string * as having multiple lines */ void assertHeaderLine(String expPat, String hdr) { Pattern pat = RegexpUtil.uncheckedCompile(expPat, Perl5Compiler.MULTILINE_MASK); assertMatchesRE(pat, hdr); } /** assert that the message starts with the expected header */ void assertHeader(MimeMessage msg) { assertHeader(null, null, msg); } /** assert that the message starts with the expected header */ void assertHeader(String expFrom, String expTo, MimeMessage msg) { String hdr = getHeader(msg); assertHeaderLine(PAT_MESSAGE_ID, hdr); assertHeaderLine(PAT_MIME_VERSION, hdr); assertHeaderLine(PAT_CONTENT_TYPE, hdr); if (expFrom != null) { assertHeaderLine(PAT_FROM + expFrom, hdr); } if (expTo != null) { assertHeaderLine(PAT_TO + expTo, hdr); } } /** assert that the array of lines is a MIME text-part with the expected * text */ void assertTextPart(String expText, String[]lines, int idx) { assertMatchesRE(PAT_BOUNDARY, lines[idx + 0]); assertMatchesRE(PAT_CONTENT_TYPE + "text/plain; charset=us-ascii", lines[idx + 1]); assertMatchesRE(<API key> + "7bit", lines[idx + 2]); assertEquals("", lines[idx + 3]); assertEquals(expText, lines[idx + 4]); assertMatchesRE(PAT_BOUNDARY, lines[idx + 5]); } public void testNull() throws IOException { MimeMessage msg = new MimeMessage(); assertHeader(msg); assertEquals(2, getBodyLines(msg).length); assertMatchesRE(PAT_BOUNDARY, getBody(msg)); assertEquals("", getBodyLines(msg)[1]); } public void testGetHeader() throws IOException { MimeMessage msg = new MimeMessage(); msg.addHeader("From", "me"); msg.addHeader("To", "you"); msg.addHeader("To", "and you"); assertEquals("me", msg.getHeader("From")); assertEquals("you, and you", msg.getHeader("To")); assertEquals(null, msg.getHeader("xxxx")); } public void testText() throws IOException { MimeMessage msg = new MimeMessage(); msg.addHeader("From", "me"); msg.addHeader("To", "you"); msg.addHeader("Subject", "topic"); msg.addTextPart("Message\ntext"); assertHeader("me", "you", msg); String[] blines = getBodyLines(msg); log.debug2("msg: " + StringUtil.separatedString(blines, ", ")); assertTextPart("Message\ntext", blines, 0); } public void testDot() throws IOException { MimeMessage msg = new MimeMessage(); msg.addHeader("From", "me"); msg.addHeader("To", "you"); msg.addTextPart("one\n.\ntwo\n"); assertHeader("me", "you", msg); String[] blines = getBodyLines(msg); log.debug2("msg: " + StringUtil.separatedString(blines, ", ")); assertTextPart("one\n.\ntwo\n", blines, 0); } public void testTextAndFile() throws IOException { File file = FileTestUtil.writeTempFile("XXX", "\000\001\254\255this is a test"); MimeMessage msg = new MimeMessage(); msg.addHeader("From", "us"); msg.addHeader("To", "them"); msg.addHeader("Subject", "object"); msg.addTextPart("Explanatory text"); msg.addFile(file, "file.foo"); assertHeader("us", "them", msg); String[] blines = getBodyLines(msg); log.debug2("msg: " + StringUtil.separatedString(blines, ", ")); assertTextPart("Explanatory text", blines, 0); assertMatchesRE(PAT_CONTENT_TYPE + "application/octet-stream; name=file.foo", blines[6]); assertMatchesRE(<API key> + "base64", blines[7]); assertMatchesRE(<API key>, blines[8]); assertEquals("", blines[9]); assertEquals("<API key>", blines[10]); assertMatchesRE(PAT_BOUNDARY, blines[11]); assertTrue(file.exists()); msg.delete(true); assertTrue(file.exists()); } public void testGetParts() throws Exception { File file = FileTestUtil.writeTempFile("XXX", "\000\001\254\255this is a test"); MimeMessage msg = new MimeMessage(); msg.addTextPart("foo text"); msg.addFile(file, "file.foo"); MimeBodyPart[] parts = msg.getParts(); assertEquals(2, parts.length); assertEquals("foo text", parts[0].getContent()); assertEquals("file.foo", parts[1].getFileName()); } public void testTmpFile() throws IOException { File file = FileTestUtil.writeTempFile("XXX", "\000\001\254\255this is a test"); MimeMessage msg = new MimeMessage(); msg.addTmpFile(file, "file.foo"); assertTrue(file.exists()); msg.delete(true); assertFalse(file.exists()); } }
# - Find LevelDB # <API key> - List of LevelDB includes. # LEVELDB_LIBRARIES - List of libraries when using LevelDB. # LEVELDB_FOUND - True if LevelDB found # Look for the header of file. find_path(LEVELDB_INCLUDE NAMES leveldb/db.h PATHS $ENV{LEVELDB_ROOT}/include /opt/local/include /usr/local/include /usr/include DOC "Path in which the file leveldb/db.h is located.") # Look for the library. find_library(LEVELDB_LIBRARY NAMES leveldb PATHS $ENV{LEVELDB_ROOT}/lib /usr/local/lib /usr/lib DOC "Path to leveldb library.") include(<API key>) <API key>(LevelDB DEFAULT_MSG LEVELDB_INCLUDE LEVELDB_LIBRARY) if(LEVELDB_FOUND) set(<API key> ${LEVELDB_INCLUDE}) set(LEVELDB_LIBRARIES ${LEVELDB_LIBRARY}) mark_as_advanced(LEVELDB_INCLUDE LEVELDB_LIBRARY) message(STATUS "Found LevelDB (include: ${<API key>}, library: ${LEVELDB_LIBRARIES})") endif()
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.c Label Definition File: <API key>.label.xml Template File: sources-sink-31.tmpl.c */ /* * @description * CWE: 90 LDAP Injection * BadSource: connect_socket Read data using a connect socket (client side) * GoodSource: Use a fixed string * Sinks: * BadSink : data concatenated into LDAP search, which could result in LDAP Injection * Flow Variant: 31 Data flow using a copy of data within the same function * * */ #include "std_testcase.h" #ifdef _WIN32 #include <winsock2.h> #include <windows.h> #include <direct.h> #pragma comment(lib, "ws2_32") /* include ws2_32.lib when linking */ #define CLOSE_SOCKET closesocket #else /* NOT _WIN32 */ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #define INVALID_SOCKET -1 #define SOCKET_ERROR -1 #define CLOSE_SOCKET close #define SOCKET int #endif #define TCP_PORT 27015 #define IP_ADDRESS "127.0.0.1" #include <Winldap.h> #pragma comment(lib, "wldap32") #ifndef OMITBAD void <API key>() { wchar_t * data; wchar_t dataBuffer[256] = L""; data = dataBuffer; { #ifdef _WIN32 WSADATA wsaData; int wsaDataInit = 0; #endif int recvResult; struct sockaddr_in service; wchar_t *replace; SOCKET connectSocket = INVALID_SOCKET; size_t dataLen = wcslen(data); do { #ifdef _WIN32 if (WSAStartup(MAKEWORD(2,2), &wsaData) != NO_ERROR) { break; } wsaDataInit = 1; #endif /* POTENTIAL FLAW: Read data using a connect socket */ connectSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (connectSocket == INVALID_SOCKET) { break; } memset(&service, 0, sizeof(service)); service.sin_family = AF_INET; service.sin_addr.s_addr = inet_addr(IP_ADDRESS); service.sin_port = htons(TCP_PORT); if (connect(connectSocket, (struct sockaddr*)&service, sizeof(service)) == SOCKET_ERROR) { break; } /* Abort on error or the connection was closed, make sure to recv one * less char than is in the recv_buf in order to append a terminator */ /* Abort on error or the connection was closed */ recvResult = recv(connectSocket, (char *)(data + dataLen), sizeof(wchar_t) * (256 - dataLen - 1), 0); if (recvResult == SOCKET_ERROR || recvResult == 0) { break; } /* Append null terminator */ data[dataLen + recvResult / sizeof(wchar_t)] = L'\0'; /* Eliminate CRLF */ replace = wcschr(data, L'\r'); if (replace) { *replace = L'\0'; } replace = wcschr(data, L'\n'); if (replace) { *replace = L'\0'; } } while (0); if (connectSocket != INVALID_SOCKET) { CLOSE_SOCKET(connectSocket); } #ifdef _WIN32 if (wsaDataInit) { WSACleanup(); } #endif } { wchar_t * dataCopy = data; wchar_t * data = dataCopy; { LDAP* pLdapConnection = NULL; ULONG connectSuccess = 0L; ULONG searchSuccess = 0L; LDAPMessage *pMessage = NULL; wchar_t filter[256]; /* POTENTIAL FLAW: data concatenated into LDAP search, which could result in LDAP Injection*/ _snwprintf(filter, 256-1, L"(cn=%s)", data); pLdapConnection = ldap_initW(L"localhost", LDAP_PORT); if (pLdapConnection == NULL) { printLine("Initialization failed"); exit(1); } connectSuccess = ldap_connect(pLdapConnection, NULL); if (connectSuccess != LDAP_SUCCESS) { printLine("Connection failed"); exit(1); } searchSuccess = ldap_search_ext_sW( pLdapConnection, L"base", LDAP_SCOPE_SUBTREE, filter, NULL, 0, NULL, NULL, LDAP_NO_LIMIT, LDAP_NO_LIMIT, &pMessage); if (searchSuccess != LDAP_SUCCESS) { printLine("Search failed"); if (pMessage != NULL) { ldap_msgfree(pMessage); } exit(1); } /* Typically you would do something with the search results, but this is a test case and we can ignore them */ /* Free the results to avoid incidentals */ if (pMessage != NULL) { ldap_msgfree(pMessage); } /* Close the connection */ ldap_unbind(pLdapConnection); } } } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B() uses the GoodSource with the BadSink */ static void goodG2B() { wchar_t * data; wchar_t dataBuffer[256] = L""; data = dataBuffer; /* FIX: Use a fixed file name */ wcscat(data, L"Doe, XXXXX"); { wchar_t * dataCopy = data; wchar_t * data = dataCopy; { LDAP* pLdapConnection = NULL; ULONG connectSuccess = 0L; ULONG searchSuccess = 0L; LDAPMessage *pMessage = NULL; wchar_t filter[256]; /* POTENTIAL FLAW: data concatenated into LDAP search, which could result in LDAP Injection*/ _snwprintf(filter, 256-1, L"(cn=%s)", data); pLdapConnection = ldap_initW(L"localhost", LDAP_PORT); if (pLdapConnection == NULL) { printLine("Initialization failed"); exit(1); } connectSuccess = ldap_connect(pLdapConnection, NULL); if (connectSuccess != LDAP_SUCCESS) { printLine("Connection failed"); exit(1); } searchSuccess = ldap_search_ext_sW( pLdapConnection, L"base", LDAP_SCOPE_SUBTREE, filter, NULL, 0, NULL, NULL, LDAP_NO_LIMIT, LDAP_NO_LIMIT, &pMessage); if (searchSuccess != LDAP_SUCCESS) { printLine("Search failed"); if (pMessage != NULL) { ldap_msgfree(pMessage); } exit(1); } /* Typically you would do something with the search results, but this is a test case and we can ignore them */ /* Free the results to avoid incidentals */ if (pMessage != NULL) { ldap_msgfree(pMessage); } /* Close the connection */ ldap_unbind(pLdapConnection); } } } void <API key>() { goodG2B(); } #endif /* OMITGOOD */ /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); <API key>(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); <API key>(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
#ifndef <API key> #define <API key> #include "ariaTypedefs.h" #include "ariaUtil.h" #include "ArAction.h" This action goes to a given ArPose very naively /** This action naively drives straight towards a given ArPose. The action stops the robot when it has travelled the distance that that pose is away. It travels at 'speed' mm/sec. You can give it a new goal pose with setGoal(), cancel its movement with cancelGoal(), and see if it got there with haveAchievedGoal(). For arguments to the goals and encoder goals you can tell it to go backwards by calling them with the backwards parameter true. If you set the justDistance to true it will only really care about having driven the distance, if false it'll try to get to the spot you wanted within close distance. This doesn't avoid obstacles or anything, you could add have an obstacle avoidance ArAction at a higher priority to try to do this. (For truly intelligent navigation, see ActivMedia's ARNL software.) **/ class <API key> : public ArAction { public: AREXPORT <API key>(const char *name = "goto", double speed = 400); AREXPORT virtual ~<API key>(); Sees if the goal has been achieved AREXPORT bool haveAchievedGoal(void); Cancels the goal the robot has AREXPORT void cancelGoal(void); Sets a new goal and sets the action to go there AREXPORT void setGoal(ArPose goal, bool backwards = false, bool justDistance = true); Sets the goal in a relative way AREXPORT void setGoalRel(double dist, double deltaHeading, bool backwards = false, bool justDistance = true); Gets the goal the action has ArPose getGoal(void) { return myGoal; } Gets whether we're using the encoder goal or the normal goal bool usingEncoderGoal(void) { return myUseEncoderGoal; } Sets a new goal and sets the action to go there AREXPORT void setEncoderGoal(ArPose encoderGoal, bool backwards = false, bool justDistance = true); Sets the goal in a relative way AREXPORT void setEncoderGoalRel(double dist, double deltaHeading, bool backwards = false, bool justDistance = true); Gets the goal the action has ArPose getEncoderGoal(void) { return myEncoderGoal; } Sets the speed the action will travel to the goal at (mm/sec) void setSpeed(double speed) { mySpeed = speed; } Gets the speed the action will travel to the goal at (mm/sec) double getSpeed(void) { return mySpeed; } Sets how close we have to get if we're not in just distance mode void setCloseDist(double closeDist = 100) { myCloseDist = closeDist; } Gets how close we have to get if we're not in just distance mode double getCloseDist(void) { return myCloseDist; } Sets whether we're backing up there or not (set in the setGoals) bool getBacking(void) { return myBacking; } AREXPORT virtual ArActionDesired *fire(ArActionDesired currentDesired); /*AREXPORT*/ virtual ArActionDesired *getDesired(void) { return &myDesired; } #ifndef SWIG /*AREXPORT*/ virtual const ArActionDesired *getDesired(void) const { return &myDesired; } #endif protected: ArPose myGoal; bool myUseEncoderGoal; ArPose myEncoderGoal; double mySpeed; bool myBacking; ArActionDesired myDesired; bool myPrinting; double myDist; double myCloseDist; bool myJustDist; double myDistTravelled; ArPose myLastPose; enum State { STATE_NO_GOAL, STATE_ACHIEVED_GOAL, STATE_GOING_TO_GOAL }; State myState; }; #endif // ARACTIONGOTO
#ifndef <API key> #define <API key> #include "base/callback.h" #include "content/public/browser/<API key>.h" #include "url/gurl.h" namespace content { class WebContents; } // This observer class will trigger the provided callback whenever the observed // WebContents's origin either now or no longer matches the provided origin. // This will not trigger the callback until the navigation has been committed, // so that WebContents::GetLastCommittedURL will return the new origin, and thus // allow for easier code re-use. Note that that Loading hasn't actually started // yet, so this is still suitable for listening to for i.e. terminating tab // capture when a site is no longer the same origin. class SameOriginObserver : public content::WebContentsObserver { public: SameOriginObserver(content::WebContents* observed_contents, const GURL& reference_origin, base::RepeatingCallback<void(content::WebContents*)> <API key>); ~SameOriginObserver() override; // WebContentsObserver void DidFinishNavigation( content::NavigationHandle* navigation_handle) override; private: content::WebContents* const observed_contents_; const GURL reference_origin_; base::RepeatingCallback<void(content::WebContents*)> <API key>; bool is_same_origin_ = false; }; #endif // <API key>
package org.lemurproject.galago.core.util; import org.lemurproject.galago.core.retrieval.iterator.BaseIterator; import org.lemurproject.galago.core.retrieval.traversal.Traversal; import org.lemurproject.galago.utility.Parameters; import java.util.ArrayList; import java.util.List; /** * @author jfoley. */ public class IterUtils { /** * Adds an operator into a Retrieval's parameters for usage. * @param p the parameters object * @param name the name of the operator, e.g. "combine" for #combine * @param iterClass the operator to register */ public static void addToParameters(Parameters p, String name, Class<? extends BaseIterator> iterClass) { if(!p.containsKey("operators")) { p.put("operators", Parameters.create()); } p.getMap("operators").put(name, iterClass.getName()); } /** * Adds a traversal into a Retrieval's parameters for usage. * @param argp the parameters object * @param traversalClass the traversal to register */ public static void addToParameters(Parameters argp, Class<? extends Traversal> traversalClass) { if(!argp.isList("traversals")) { argp.put("traversals", new ArrayList<>()); } List<Parameters> traversals = argp.getList("traversals", Parameters.class); traversals.add(Parameters.parseArray( "name", traversalClass.getName(), "order", "before" )); argp.put("traversals", traversals); } }
from pybrain.rl.environments.timeseries.maximizereturntask import <API key> from pybrain.rl.environments.timeseries.timeseries import AR1Environment, SnPEnvironment from pybrain.rl.learners.valuebased.linearfa import Q_LinFA from pybrain.rl.agents.linearfa import LinearFA_Agent from pybrain.rl.experiments import <API key> from matplotlib import pyplot """ This script aims to create a trading model that trades on a simple AR(1) process """ env=AR1Environment(2000) task=<API key>(env) learner = Q_LinFA(2,1) agent = LinearFA_Agent(learner) exp = <API key>(task,agent) from decimal import Decimal ts=env.ts.tolist() exp.<API key>(1999) actionHist=env.actionHistory pyplot.plot(ts[0]) pyplot.plot(actionHist) pyplot.show() #snp_rets=env.importSnP().tolist()[0] #print(snp_rets.tolist()[0]) #pyplot.plot(snp_rets) #pyplot.show() #cumret= cumsum(multiply(ts,actionHist)) #exp.doInteractions(200)
using Basic.Azure.Storage.Communications.Core; using Basic.Azure.Storage.Communications.Core.Interfaces; using Basic.Azure.Storage.Communications.TableService.Interfaces; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace Basic.Azure.Storage.Communications.TableService.EntityOperations { public class DeleteEntityRequest : RequestBase<<API key>>, <API key> { private string _tableName; private string _partitionKey; private string _rowKey; private string _etag; public DeleteEntityRequest(<API key> settings, string tableName, string partitionKey, string rowKey, string etag) : base(settings) { _tableName = tableName; _partitionKey = partitionKey; _rowKey = rowKey; if (string.IsNullOrEmpty(etag)) _etag = "*"; else _etag = etag; } protected override string HttpMethod { get { return "DELETE"; } } protected override StorageServiceType ServiceType { get { return StorageServiceType.TableService; } } protected override RequestUriBuilder GetUriBase() { var builder = new RequestUriBuilder(Settings.TableEndpoint); builder.AddSegment(String.Format("{0}(PartitionKey='{1}',RowKey='{2}')", _tableName, _partitionKey, _rowKey)); return builder; } public void <API key>(System.Net.WebRequest request) { request.ContentType = "application/json;charset=utf-8"; if (request is HttpWebRequest) { ((HttpWebRequest)request).Accept = "application/json"; } else { request.Headers.Add(ProtocolConstants.Headers.Accept, "application/json"); } request.Headers.Add(ProtocolConstants.Headers.IfMatch, _etag); } } }
/* 1. BACKGROUND AND TEXT COLOURS */ /* 1.1 Default background colour and text colour */ body{text-align:center;background : url(../img/back.gif);} .djangobb {COLOR: #333} DIV.box, #adminconsole FIELDSET TH, .rowodd, .roweven {BACKGROUND-COLOR: #f8f8f8} .djangobb BLOCKQUOTE, DIV.code {BACKGROUND-COLOR: #f1f1f1} #adminconsole TD, #adminconsole TH {BORDER-COLOR: #eeeeee} /*<<<<<<<<<<<neizvestno*/ /* 1. 2 Darker background colours */ TD.tc2, TD.tc3, TD.tcmod, #postpreview, #viewprofile DD, DIV.forminfo, #adminconsole FIELDSET TD, DIV.blockmenu DIV.box, #adstats DD {BACKGROUND-COLOR: #f5f5f5} TH.tc3 {width: 70px} /* 1.3 Main headers and navigation bar background and text colour */ .djangobb H2, #brdmenu {BACKGROUND: url(../img/fon111.gif); COLOR: #FFF; font-weight: bold; height: 16px;} .djangobb H2 {font-weight: bold;BACKGROUND: #46586a url(../img/fon111.gif);border-top: 1px solid #46586a;border-left: 1px solid #46586a;border-right: 1px solid #46586a; height: 16px;} .djangobb H2 a.toggle { float: right; BACKGROUND: url(../img/cat_minimize.png); display:block; height:17px; line-height:1px; outline-color:-moz-use-text-color; outline-style:none; outline-width:0; text-indent:-3000em; width:28px; } .djangobb H2.collapsed a.toggle { background-image:url(../img/cat_maximize.png); } /* 1.4 Table header rows */ .djangobb TH {BACKGROUND-COLOR: #eeeeee;} /* 1.5 Fieldset legend text colour */ .djangobb LEGEND {COLOR: #5A799D} /* 1.6 Highlighted text for various items */ .djangobb DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #46586a} /* 2. POST BACKGROUNDS AND TEXT */ /* 2.1 This is the setup for posts. */ DIV.blockpost DIV.box, DIV.postright, DIV.postfootright {BACKGROUND-COLOR: #f8f8f8} DIV.postright, DIV.postfootright {BORDER-LEFT-COLOR: #f1f1f1} DIV.postleft, DIV.postfootleft, DIV.blockpost LABEL {BACKGROUND-COLOR: #f1f1f1} /* 2.2 Background for post headers and text colour for post numbers in viewtopic */ DIV.blockpost H2 {BACKGROUND-COLOR: #46586a} DIV.blockpost H2 SPAN.conr {COLOR: #CCC} /* 2.3 This is the line above the signature in posts. Colour and background should be the same */ .djangobb HR {BACKGROUND-COLOR: #35567C; COLOR: #35567C} /* 3. BORDER COLOURS */ /* 3.1 All external borders */ DIV.box {BORDER-COLOR: #46586a} /* 3.2 Makes the top border of posts match the colour used for post headers */ /*DIV.blockpost DIV.box {BORDER-COLOR: #686E80 #686E80 #686E80}*/ DIV.blockpost DIV.box {BORDER: 1px solid #46586a;BORDER-TOP: 1px solid #46586a;} /* 3.3 Table internal borders. By default TH is same as background so border is invisible */ .djangobb TD {BORDER-COLOR: #d6e1f1} .djangobb TH {BORDER-COLOR: #d6e1f1} /* 3.4 Creates the inset border for quote boxes, code boxes and form info boxes */ .djangobb BLOCKQUOTE, DIV.code, DIV.forminfo, DIV.blockpost LABEL {BORDER-COLOR: #46586a #46586a #46586a #46586a} /* 3.5 Gecko's default fieldset borders are really nasty so this gives them a colour without interferring with IE's rather nice default */ /* 4. LINK COLOURS */ /* 4.1 This is the default for all links */ .djangobb A:link, .djangobb A:visited {COLOR: #46586a;} .djangobb A:hover {COLOR: #B42000; } /* 4.2 This is the colour for links in header rows and the navigation bar */ .djangobb H2 A:link, .djangobb H2 A:visited, #brdmenu A:link, #brdmenu A:visited {COLOR: #FFF;text-decoration : underline; } .djangobb H2 A:hover, #brdmenu A:hover {COLOR: #35567C;} /* 4.3 This is for closed topics and "hot" links */ LI.postreport A:link, LI.postreport A:visited, TR.iclosed TD.tcl A:link, TR.iclosed TD.tcl A:visited {COLOR: #888} LI.postreport A:hover, TR.iclosed TD.tcl A:hover {COLOR: #AAA} LI.maintenancelink A:link, LI.maintenancelink A:visited {COLOR: #B42000} LI.maintenancelink A:hover {COLOR: #B42000} /* 5. POST STATUS INDICATORS */ /* These are the post status indicators which appear at the left of some tables. .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and .isticky = sticky topics. The default is "icon". By default only .inew is different.*/ DIV.forum_icon {background:url(../img/active_forum.gif)} DIV.icon {background:url(../img/inactive_topic.gif)} DIV.inew {background:url(../img/active_topic.gif)} DIV.sticky {background:url(../img/sticky_topic.gif)} DIV.closed {background:url(../img/closed_topic.gif)} TR.inew DIV.icon {background:url(../img/active_topic.gif)} TR.isticky DIV.inew {background:url(../img/active_topic.gif)} TR.iclosed DIV.icon {background:url(../img/closed.png)} DIV.iredirect {background:url(../img/link.png)} /* 6. EXTRAS */ #brdmenu {BACKGROUND: url(../img/fon111.gif); border-top: 1px solid #46586a;border-bottom: 1px solid #46586a; BACKGROUND-COLOR: #46586a;} /* header logo */ .djangobb H1 span { color: #3A3B3C; font-size: 16px; /*bylo 12*/ font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; } .djangobb h2 span { background:transparent url(../img/category.gif) no-repeat scroll left center; } .djangobb h2 span.conr { background-image:none; } /* board stats icon */ #djangobbindex #brdstats div.box div.inbox dl.conl, #djangobbforum #brdstats div.box div.inbox dl.conl { background: transparent url(../img/stats.gif) no-repeat 0% 50%; padding-left: 38px; }
#pragma once #include <deque> #include <functional> #include <pthread.h> #include "basetypes.h" #include "misc.h" #define Pthread_spin_init(l, pshared) verify(pthread_spin_init(l, (pshared)) == 0) #define Pthread_spin_lock(l) verify(pthread_spin_lock(l) == 0) #define Pthread_spin_unlock(l) verify(pthread_spin_unlock(l) == 0) #define <API key>(l) verify(<API key>(l) == 0) #define Pthread_mutex_init(m, attr) verify(pthread_mutex_init(m, attr) == 0) #define Pthread_mutex_lock(m) verify(pthread_mutex_lock(m) == 0) #define <API key>(m) verify(<API key>(m) == 0) #define <API key>(m) verify(<API key>(m) == 0) #define Pthread_cond_init(c, attr) verify(pthread_cond_init(c, attr) == 0) #define <API key>(c) verify(<API key>(c) == 0) #define Pthread_cond_signal(c) verify(pthread_cond_signal(c) == 0) #define <API key>(c) verify(<API key>(c) == 0) #define Pthread_cond_wait(c, m) verify(pthread_cond_wait(c, m) == 0) #define Pthread_create(th, attr, func, arg) verify(pthread_create(th, attr, func, arg) == 0) #define Pthread_join(th, attr) verify(pthread_join(th, attr) == 0) namespace base { class Lockable: public NoCopy { public: virtual void lock() = 0; virtual void unlock() = 0; }; class SpinLock: public Lockable { public: SpinLock(): locked_(false) { } void lock(); void unlock() { __sync_lock_release(&locked_); } private: volatile bool locked_ __attribute__((aligned (64))); }; class Mutex: public Lockable { public: Mutex() { pthread_mutexattr_t attr; <API key>(&attr); <API key>(&attr, <API key>); Pthread_mutex_init(&m_, &attr); } ~Mutex() { <API key>(&m_); } void lock() { Pthread_mutex_lock(&m_); } void unlock() { <API key>(&m_); } private: friend class CondVar; pthread_mutex_t m_; }; // choice between spinlock & mutex: // * when n_thread > n_core, use mutex // * on virtual machines, use mutex class ScopedLock: public NoCopy { public: explicit ScopedLock(Lockable* lock): m_(lock) { m_->lock(); } explicit ScopedLock(Lockable& lock): m_(&lock) { m_->lock(); } ~ScopedLock() { m_->unlock(); } private: Lockable* m_; }; class CondVar: public NoCopy { public: CondVar() { Pthread_cond_init(&cv_, nullptr); } ~CondVar() { <API key>(&cv_); } void wait(Mutex& m) { Pthread_cond_wait(&cv_, &m.m_); } void signal() { Pthread_cond_signal(&cv_); } void bcast() { <API key>(&cv_); } int timed_wait(Mutex& m, double sec); private: pthread_cond_t cv_; }; /** * Thread safe queue. */ template<class T> class Queue: public NoCopy { std::deque<T> q_; pthread_cond_t not_empty_; pthread_mutex_t m_; public: Queue() { Pthread_mutex_init(&m_, nullptr); Pthread_cond_init(&not_empty_, nullptr); } ~Queue() { <API key>(&not_empty_); <API key>(&m_); } void push(const T& e) { Pthread_mutex_lock(&m_); q_.push_back(e); Pthread_cond_signal(&not_empty_); <API key>(&m_); } bool try_pop(T* t) { bool ret = false; Pthread_mutex_lock(&m_); if (!q_.empty()) { ret = true; *t = q_.front(); q_.pop_front(); } <API key>(&m_); return ret; } bool try_pop_but_ignore(T* t, const T& ignore) { bool ret = false; Pthread_mutex_lock(&m_); if (!q_.empty() && q_.front() != ignore) { ret = true; *t = q_.front(); q_.pop_front(); } <API key>(&m_); return ret; } T pop() { Pthread_mutex_lock(&m_); while (q_.empty()) { Pthread_cond_wait(&not_empty_, &m_); } T e = q_.front(); q_.pop_front(); <API key>(&m_); return e; } }; class ThreadPool: public RefCounted { int n_; Counter round_robin_; pthread_t* th_; Queue<std::function<void()>*>* q_; bool should_stop_; static void* start_thread_pool(void*); void run_thread(int id_in_pool); protected: ~ThreadPool(); public: ThreadPool(int n = get_ncpu() * 2); // return 0 when queuing ok, otherwise EPERM int run_async(const std::function<void()>&, int queuing_channel = -1); }; class RunLater: public RefCounted { typedef std::pair<double, std::function<void()>*> job_t; pthread_t th_; pthread_mutex_t m_; pthread_cond_t cv_; bool should_stop_; SpinLock latest_l_; double latest_; std::priority_queue<job_t, std::vector<job_t>, std::greater<job_t>> jobs_; static void* start_run_later(void*); void run_later_loop(); void try_one_job(); public: RunLater(); // return 0 when queuing ok, otherwise EPERM int run_later(double sec, const std::function<void()>&); double max_wait() const; protected: ~RunLater(); }; } // namespace base
<! @license Copyright (c) 2014 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http: The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt <script> (function() { 'use strict'; var wrap = Polymer.DomApi.wrap; // detect native touch action support var HAS_NATIVE_TA = typeof document.head.style.touchAction === 'string'; var GESTURE_KEY = '__polymerGestures'; var HANDLED_OBJ = '<API key>'; var TOUCH_ACTION = '<API key>'; // radius for tap and track var TAP_DISTANCE = 25; var TRACK_DISTANCE = 5; // number of last N track positions to keep var TRACK_LENGTH = 2; // Disabling "mouse" handlers for 2500ms is enough var MOUSE_TIMEOUT = 2500; var MOUSE_EVENTS = ['mousedown', 'mousemove', 'mouseup', 'click']; // an array of bitmask values for mapping MouseEvent.which to MouseEvent.buttons var <API key> = [0, 1, 4, 2]; var MOUSE_HAS_BUTTONS = (function() { try { return new MouseEvent('test', {buttons: 1}).buttons === 1; } catch (e) { return false; } })(); // Check for touch-only devices var IS_TOUCH_ONLY = navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/); // touch will make synthetic mouse events // `preventDefault` on touchend will cancel them, // but this breaks `<input>` focus and link clicks // disable mouse handlers for MOUSE_TIMEOUT ms after // a touchend to ignore synthetic mouse events var mouseCanceller = function(mouseEvent) { // Check for sourceCapabilities, used to distinguish synthetic events // if mouseEvent did not come from a device that fires touch events, // it was made by a real mouse and should be counted // http://wicg.github.io/<API key>/#<API key> var sc = mouseEvent.sourceCapabilities; if (sc && !sc.firesTouchEvents) { return; } // skip synthetic mouse events mouseEvent[HANDLED_OBJ] = {skip: true}; // disable "ghost clicks" if (mouseEvent.type === 'click') { var path = Polymer.dom(mouseEvent).path; for (var i = 0; i < path.length; i++) { if (path[i] === POINTERSTATE.mouse.target) { return; } } mouseEvent.preventDefault(); mouseEvent.stopPropagation(); } }; function <API key>(setup) { for (var i = 0, en; i < MOUSE_EVENTS.length; i++) { en = MOUSE_EVENTS[i]; if (setup) { document.addEventListener(en, mouseCanceller, true); } else { document.removeEventListener(en, mouseCanceller, true); } } } function ignoreMouse() { if (IS_TOUCH_ONLY) { return; } if (!POINTERSTATE.mouse.mouseIgnoreJob) { <API key>(true); } var unset = function() { <API key>(); POINTERSTATE.mouse.target = null; POINTERSTATE.mouse.mouseIgnoreJob = null; }; POINTERSTATE.mouse.mouseIgnoreJob = Polymer.Debounce(POINTERSTATE.mouse.mouseIgnoreJob, unset, MOUSE_TIMEOUT); } function hasLeftMouseButton(ev) { var type = ev.type; // exit early if the event is not a mouse event if (MOUSE_EVENTS.indexOf(type) === -1) { return false; } // ev.button is not reliable for mousemove (0 is overloaded as both left button and no buttons) // instead we use ev.buttons (bitmask of buttons) or fall back to ev.which (deprecated, 0 for no buttons, 1 for left button) if (type === 'mousemove') { // allow undefined for testing events var buttons = ev.buttons === undefined ? 1 : ev.buttons; if ((ev instanceof window.MouseEvent) && !MOUSE_HAS_BUTTONS) { buttons = <API key>[ev.which] || 0; } // buttons is a bitmask, check that the left button bit is set (1) return Boolean(buttons & 1); } else { // allow undefined for testing events var button = ev.button === undefined ? 0 : ev.button; // ev.button is 0 in mousedown/mouseup/click for left button activation return button === 0; } } function isSyntheticClick(ev) { if (ev.type === 'click') { // ev.detail is 0 for HTMLElement.click in most browsers if (ev.detail === 0) { return true; } // in the worst case, check that the x/y position of the click is within // the bounding box of the target of the event // Thanks IE 10 >:( var t = Gestures.findOriginalTarget(ev); var bcr = t.<API key>(); // use page x/y to account for scrolling var x = ev.pageX, y = ev.pageY; // ev is a synthetic click if the position is outside the bounding box of the target return !((x >= bcr.left && x <= bcr.right) && (y >= bcr.top && y <= bcr.bottom)); } return false; } var POINTERSTATE = { mouse: { target: null, mouseIgnoreJob: null }, touch: { x: 0, y: 0, id: -1, scrollDecided: false } }; function firstTouchAction(ev) { var path = Polymer.dom(ev).path; var ta = 'auto'; for (var i = 0, n; i < path.length; i++) { n = path[i]; if (n[TOUCH_ACTION]) { ta = n[TOUCH_ACTION]; break; } } return ta; } function trackDocument(stateObj, movefn, upfn) { stateObj.movefn = movefn; stateObj.upfn = upfn; document.addEventListener('mousemove', movefn); document.addEventListener('mouseup', upfn); } function untrackDocument(stateObj) { document.removeEventListener('mousemove', stateObj.movefn); document.removeEventListener('mouseup', stateObj.upfn); stateObj.movefn = null; stateObj.upfn = null; } var Gestures = { gestures: {}, recognizers: [], deepTargetFind: function(x, y) { var node = document.elementFromPoint(x, y); var next = node; // this code path is only taken when native ShadowDOM is used // if there is a shadowroot, it may have a node at x/y // if there is not a shadowroot, exit the loop while (next && next.shadowRoot) { // if there is a node at x/y in the shadowroot, look deeper next = next.shadowRoot.elementFromPoint(x, y); if (next) { node = next; } } return node; }, // a cheaper check than Polymer.dom(ev).path[0]; findOriginalTarget: function(ev) { // shadowdom if (ev.path) { return ev.path[0]; } // shadydom return ev.target; }, handleNative: function(ev) { var handled; var type = ev.type; var node = wrap(ev.currentTarget); var gobj = node[GESTURE_KEY]; if (!gobj) { return; } var gs = gobj[type]; if (!gs) { return; } if (!ev[HANDLED_OBJ]) { ev[HANDLED_OBJ] = {}; if (type.slice(0, 5) === 'touch') { var t = ev.changedTouches[0]; if (type === 'touchstart') { // only handle the first finger if (ev.touches.length === 1) { POINTERSTATE.touch.id = t.identifier; } } if (POINTERSTATE.touch.id !== t.identifier) { return; } if (!HAS_NATIVE_TA) { if (type === 'touchstart' || type === 'touchmove') { Gestures.handleTouchAction(ev); } } // disable synth mouse events, unless this event is itself simulated if (type === 'touchend') { POINTERSTATE.mouse.target = Polymer.dom(ev).rootTarget; // ignore syntethic mouse events after a touch ignoreMouse(); } } } handled = ev[HANDLED_OBJ]; // used to ignore synthetic mouse events if (handled.skip) { return; } var recognizers = Gestures.recognizers; // reset recognizer state for (var i = 0, r; i < recognizers.length; i++) { r = recognizers[i]; if (gs[r.name] && !handled[r.name]) { if (r.flow && r.flow.start.indexOf(ev.type) > -1 && r.reset) { r.reset(); } } } // enforce gesture recognizer order for (i = 0, r; i < recognizers.length; i++) { r = recognizers[i]; if (gs[r.name] && !handled[r.name]) { handled[r.name] = true; r[type](ev); } } }, handleTouchAction: function(ev) { var t = ev.changedTouches[0]; var type = ev.type; if (type === 'touchstart') { POINTERSTATE.touch.x = t.clientX; POINTERSTATE.touch.y = t.clientY; POINTERSTATE.touch.scrollDecided = false; } else if (type === 'touchmove') { if (POINTERSTATE.touch.scrollDecided) { return; } POINTERSTATE.touch.scrollDecided = true; var ta = firstTouchAction(ev); var prevent = false; var dx = Math.abs(POINTERSTATE.touch.x - t.clientX); var dy = Math.abs(POINTERSTATE.touch.y - t.clientY); if (!ev.cancelable) { // scrolling is happening } else if (ta === 'none') { prevent = true; } else if (ta === 'pan-x') { prevent = dy > dx; } else if (ta === 'pan-y') { prevent = dx > dy; } if (prevent) { ev.preventDefault(); } else { Gestures.prevent('track'); } } }, // automate the event listeners for the native events add: function(node, evType, handler) { // SD polyfill: handle case where `node` is unwrapped, like `document` node = wrap(node); var recognizer = this.gestures[evType]; var deps = recognizer.deps; var name = recognizer.name; var gobj = node[GESTURE_KEY]; if (!gobj) { node[GESTURE_KEY] = gobj = {}; } for (var i = 0, dep, gd; i < deps.length; i++) { dep = deps[i]; // don't add mouse handlers on iOS because they cause gray selection overlays if (IS_TOUCH_ONLY && MOUSE_EVENTS.indexOf(dep) > -1) { continue; } gd = gobj[dep]; if (!gd) { gobj[dep] = gd = {_count: 0}; } if (gd._count === 0) { node.addEventListener(dep, this.handleNative); } gd[name] = (gd[name] || 0) + 1; gd._count = (gd._count || 0) + 1; } node.addEventListener(evType, handler); if (recognizer.touchAction) { this.setTouchAction(node, recognizer.touchAction); } }, // automate event listener removal for native events remove: function(node, evType, handler) { // SD polyfill: handle case where `node` is unwrapped, like `document` node = wrap(node); var recognizer = this.gestures[evType]; var deps = recognizer.deps; var name = recognizer.name; var gobj = node[GESTURE_KEY]; if (gobj) { for (var i = 0, dep, gd; i < deps.length; i++) { dep = deps[i]; gd = gobj[dep]; if (gd && gd[name]) { gd[name] = (gd[name] || 1) - 1; gd._count = (gd._count || 1) - 1; if (gd._count === 0) { node.removeEventListener(dep, this.handleNative); } } } } node.removeEventListener(evType, handler); }, register: function(recog) { this.recognizers.push(recog); for (var i = 0; i < recog.emits.length; i++) { this.gestures[recog.emits[i]] = recog; } }, <API key>: function(evName) { for (var i = 0, r; i < this.recognizers.length; i++) { r = this.recognizers[i]; for (var j = 0, n; j < r.emits.length; j++) { n = r.emits[j]; if (n === evName) { return r; } } } return null; }, // set scrolling direction on node to check later on first move // must call this before adding event listeners! setTouchAction: function(node, value) { if (HAS_NATIVE_TA) { node.style.touchAction = value; } node[TOUCH_ACTION] = value; }, fire: function(target, type, detail) { var ev = Polymer.Base.fire(type, detail, { node: target, bubbles: true, cancelable: true }); // forward `preventDefault` in a clean way if (ev.defaultPrevented) { var preventer = detail.preventer || detail.sourceEvent; if (preventer && preventer.preventDefault) { preventer.preventDefault(); } } }, prevent: function(evName) { var recognizer = this.<API key>(evName); if (recognizer.info) { recognizer.info.prevent = true; } }, /** * Reset the 2500ms timeout on processing mouse input after detecting touch input. * * Touch inputs create synthesized mouse inputs anywhere from 0 to 2000ms after the touch. * This method should only be called during testing with simulated touch inputs. * Calling this method in production may cause duplicate taps or other gestures. * * @method resetMouseCanceller */ resetMouseCanceller: function() { if (POINTERSTATE.mouse.mouseIgnoreJob) { POINTERSTATE.mouse.mouseIgnoreJob.complete(); } } }; Gestures.register({ name: 'downup', deps: ['mousedown', 'touchstart', 'touchend'], flow: { start: ['mousedown', 'touchstart'], end: ['mouseup', 'touchend'] }, emits: ['down', 'up'], info: { movefn: null, upfn: null }, reset: function() { untrackDocument(this.info); }, mousedown: function(e) { if (!hasLeftMouseButton(e)) { return; } var t = Gestures.findOriginalTarget(e); var self = this; var movefn = function movefn(e) { if (!hasLeftMouseButton(e)) { self.fire('up', t, e); untrackDocument(self.info); } }; var upfn = function upfn(e) { if (hasLeftMouseButton(e)) { self.fire('up', t, e); } untrackDocument(self.info); }; trackDocument(this.info, movefn, upfn); this.fire('down', t, e); }, touchstart: function(e) { this.fire('down', Gestures.findOriginalTarget(e), e.changedTouches[0], e); }, touchend: function(e) { this.fire('up', Gestures.findOriginalTarget(e), e.changedTouches[0], e); }, fire: function(type, target, event, preventer) { Gestures.fire(target, type, { x: event.clientX, y: event.clientY, sourceEvent: event, preventer: preventer, prevent: function(e) { return Gestures.prevent(e); } }); } }); Gestures.register({ name: 'track', touchAction: 'none', deps: ['mousedown', 'touchstart', 'touchmove', 'touchend'], flow: { start: ['mousedown', 'touchstart'], end: ['mouseup', 'touchend'] }, emits: ['track'], info: { x: 0, y: 0, state: 'start', started: false, moves: [], addMove: function(move) { if (this.moves.length > TRACK_LENGTH) { this.moves.shift(); } this.moves.push(move); }, movefn: null, upfn: null, prevent: false }, reset: function() { this.info.state = 'start'; this.info.started = false; this.info.moves = []; this.info.x = 0; this.info.y = 0; this.info.prevent = false; untrackDocument(this.info); }, hasMovedEnough: function(x, y) { if (this.info.prevent) { return false; } if (this.info.started) { return true; } var dx = Math.abs(this.info.x - x); var dy = Math.abs(this.info.y - y); return (dx >= TRACK_DISTANCE || dy >= TRACK_DISTANCE); }, mousedown: function(e) { if (!hasLeftMouseButton(e)) { return; } var t = Gestures.findOriginalTarget(e); var self = this; var movefn = function movefn(e) { var x = e.clientX, y = e.clientY; if (self.hasMovedEnough(x, y)) { // first move is 'start', subsequent moves are 'move', mouseup is 'end' self.info.state = self.info.started ? (e.type === 'mouseup' ? 'end' : 'track') : 'start'; if (self.info.state === 'start') { // if and only if tracking, always prevent tap Gestures.prevent('tap'); } self.info.addMove({x: x, y: y}); if (!hasLeftMouseButton(e)) { // always fire "end" self.info.state = 'end'; untrackDocument(self.info); } self.fire(t, e); self.info.started = true; } }; var upfn = function upfn(e) { if (self.info.started) { movefn(e); } // remove the temporary listeners untrackDocument(self.info); }; // add temporary document listeners as mouse retargets trackDocument(this.info, movefn, upfn); this.info.x = e.clientX; this.info.y = e.clientY; }, touchstart: function(e) { var ct = e.changedTouches[0]; this.info.x = ct.clientX; this.info.y = ct.clientY; }, touchmove: function(e) { var t = Gestures.findOriginalTarget(e); var ct = e.changedTouches[0]; var x = ct.clientX, y = ct.clientY; if (this.hasMovedEnough(x, y)) { if (this.info.state === 'start') { // if and only if tracking, always prevent tap Gestures.prevent('tap'); } this.info.addMove({x: x, y: y}); this.fire(t, ct); this.info.state = 'track'; this.info.started = true; } }, touchend: function(e) { var t = Gestures.findOriginalTarget(e); var ct = e.changedTouches[0]; // only trackend if track was started and not aborted if (this.info.started) { // reset started state on up this.info.state = 'end'; this.info.addMove({x: ct.clientX, y: ct.clientY}); this.fire(t, ct, e); } }, fire: function(target, touch, preventer) { var secondlast = this.info.moves[this.info.moves.length - 2]; var lastmove = this.info.moves[this.info.moves.length - 1]; var dx = lastmove.x - this.info.x; var dy = lastmove.y - this.info.y; var ddx, ddy = 0; if (secondlast) { ddx = lastmove.x - secondlast.x; ddy = lastmove.y - secondlast.y; } return Gestures.fire(target, 'track', { state: this.info.state, x: touch.clientX, y: touch.clientY, dx: dx, dy: dy, ddx: ddx, ddy: ddy, sourceEvent: touch, preventer: preventer, hover: function() { return Gestures.deepTargetFind(touch.clientX, touch.clientY); } }); } }); Gestures.register({ name: 'tap', deps: ['mousedown', 'click', 'touchstart', 'touchend'], flow: { start: ['mousedown', 'touchstart'], end: ['click', 'touchend'] }, emits: ['tap'], info: { x: NaN, y: NaN, prevent: false }, reset: function() { this.info.x = NaN; this.info.y = NaN; this.info.prevent = false; }, save: function(e) { this.info.x = e.clientX; this.info.y = e.clientY; }, mousedown: function(e) { if (hasLeftMouseButton(e)) { this.save(e); } }, click: function(e) { if (hasLeftMouseButton(e)) { this.forward(e); } }, touchstart: function(e) { this.save(e.changedTouches[0], e); }, touchend: function(e) { this.forward(e.changedTouches[0], e); }, forward: function(e, preventer) { var dx = Math.abs(e.clientX - this.info.x); var dy = Math.abs(e.clientY - this.info.y); var t = Gestures.findOriginalTarget(e); // dx,dy can be NaN if `click` has been simulated and there was no `down` for `start` if (isNaN(dx) || isNaN(dy) || (dx <= TAP_DISTANCE && dy <= TAP_DISTANCE) || isSyntheticClick(e)) { // prevent taps from being generated if an event has canceled them if (!this.info.prevent) { Gestures.fire(t, 'tap', { x: e.clientX, y: e.clientY, sourceEvent: e, preventer: preventer }); } } } }); var DIRECTION_MAP = { x: 'pan-x', y: 'pan-y', none: 'none', all: 'auto' }; Polymer.Base._addFeature({ _setupGestures: function() { this.__polymerGestures = null; }, // override _listen to handle gestures _listen: function(node, eventName, handler) { if (Gestures.gestures[eventName]) { Gestures.add(node, eventName, handler); } else { node.addEventListener(eventName, handler); } }, // override _unlisten to handle gestures _unlisten: function(node, eventName, handler) { if (Gestures.gestures[eventName]) { Gestures.remove(node, eventName, handler); } else { node.removeEventListener(eventName, handler); } }, /** * Override scrolling behavior to all direction, one direction, or none. * * Valid scroll directions: * - 'all': scroll in any direction * - 'x': scroll only in the 'x' direction * - 'y': scroll only in the 'y' direction * - 'none': disable scrolling for this node * * @method setScrollDirection * @param {String=} direction Direction to allow scrolling * Defaults to `all`. * @param {HTMLElement=} node Element to apply scroll direction setting. * Defaults to `this`. */ setScrollDirection: function(direction, node) { node = node || this; Gestures.setTouchAction(node, DIRECTION_MAP[direction] || 'auto'); } }); // export Polymer.Gestures = Gestures; })(); </script>
require 'rubygems' # The helper class exists to do string manipulation and heavy lifting def url_escape_hash(hash) hash.each do |k,v| v = CGI::escapeHTML(v) if v # convert bullets v = v.gsub("*-","<bullet>") v = v.gsub("-*","</bullet>") #convert h4 v = v.gsub("[==","<h4>") v = v.gsub("==]","</h4>") #convert indent text v = v.gsub("[--","<indented>") v = v.gsub("--]","</indented>") #convert indent text v = v.gsub("[~~","<italics>") v = v.gsub("~~]","</italics>") end # replace linebreaks with paragraph xml elements if v =~ /\r\n/ new_v = "" brs = v.split("\r\n") brs.each do |br| new_v << "<paragraph>" new_v << br new_v << "</paragraph>" end v = new_v elsif k == "remediation" or k == "overview" or k == "poc" or k == "affected_hosts" new_v = "<paragraph>#{v}</paragraph>" v = new_v end hash[k] = v end return hash end def meta_markup(text) new_text = text.gsub("<paragraph>","&#x000A;").gsub("</paragraph>","") new_text = new_text.gsub("<bullet>","*-").gsub("</bullet>","-*") new_text = new_text.gsub("<h4>","[==").gsub("</h4>","==]") new_text = new_text.gsub("<code>","[[[").gsub("</code>","]]]") new_text = new_text.gsub("<indented>","[--").gsub("</indented>","--]") new_text = new_text.gsub("<italics>","[~~").gsub("</italics>","~~]") end # URL escaping messes up the inserted XML, this method switches it back to XML elements def <API key>(findings_xml, customer_name) # code tags get added in later findings_xml = findings_xml.gsub("[[[","<code>") findings_xml = findings_xml.gsub("]]]","</code>") # creates paragraphs findings_xml = findings_xml.gsub("&lt;paragraph&gt;","<paragraph>") findings_xml = findings_xml.gsub("&lt;/paragraph&gt;","</paragraph>") # same for the bullets findings_xml = findings_xml.gsub("&lt;bullet&gt;","<bullet>") findings_xml = findings_xml.gsub("&lt;/bullet&gt;","</bullet>") # same for the h4 findings_xml = findings_xml.gsub("&lt;h4&gt;","<h4>") findings_xml = findings_xml.gsub("&lt;/h4&gt;","</h4>") # same for the code markings findings_xml = findings_xml.gsub("&lt;code&gt;","<code>") findings_xml = findings_xml.gsub("&lt;/code&gt;","</code>") # same for the indented text findings_xml = findings_xml.gsub("&lt;indented&gt;","<indented>") findings_xml = findings_xml.gsub("&lt;/indented&gt;","</indented>") # same for the indented text findings_xml = findings_xml.gsub("&lt;italics&gt;","<italics>") findings_xml = findings_xml.gsub("&lt;/italics&gt;","</italics>") # changes the <<CUSTOMER>> marks if customer_name findings_xml = findings_xml.gsub("&amp;lt;&amp;lt;CUSTOMER&amp;gt;&amp;gt;","#{customer_name}") end #this is for re-upping the comment fields findings_xml = findings_xml.gsub("&lt;modified&gt;","<modified>") findings_xml = findings_xml.gsub("&lt;/modified&gt;","</modified>") findings_xml = findings_xml.gsub("&lt;new_finding&gt;","<new_finding>") findings_xml = findings_xml.gsub("&lt;/new_finding&gt;","</new_finding>") # these are for beautification findings_xml = findings_xml.gsub("&amp;quot;","\"") findings_xml = findings_xml.gsub("&amp;","&") findings_xml = findings_xml.gsub("&amp;lt;","&lt;").gsub("&amp;gt;","&gt;") return findings_xml end def compare_text(new_text, orig_text) if orig_text == nil # there is no master finding, must be new t = "" t << "<new_finding></new_finding>#{new_text}" return t end if new_text == orig_text return new_text else n_t = "" n_t << "<modified></modified>#{new_text}" return n_t end end # CVSS helper, there is a lot of hardcoded stuff def cvss(data) av = data["av"].downcase ac = data["ac"].downcase au = data["au"].downcase c = data["c"].downcase i = data["i"].downcase a = data["a"].downcase e = data["e"].downcase rl = data["rl"].downcase rc = data["rc"].downcase cdp = data["cdp"].downcase td = data["td"].downcase cr = data["cr"].downcase ir = data["ir"].downcase ar = data["ar"].downcase if ac == "high" cvss_ac = 0.35 elsif ac == "medium" cvss_ac = 0.61 else cvss_ac = 0.71 end if au == "none" cvss_au = 0.704 elsif au == "single" cvss_au = 0.56 else cvss_au = 0.45 end if av == "local" cvss_av = 0.395 elsif av == "local network" cvss_av = 0.646 else cvss_av = 1 end if c == "none" cvss_c = 0 elsif c == "partial" cvss_c = 0.275 else cvss_c = 0.660 end if i == "none" cvss_i = 00 elsif i == "partial" cvss_i = 0.275 else cvss_i = 0.660 end if a == "none" cvss_a = 0 elsif a == "partial" cvss_a = 0.275 else cvss_a = 0.660 end # temporal score calculations if e == "unproven exploit exists" cvss_e = 0.85 elsif e == "proof-of-concept code" cvss_e = 0.90 elsif e == "functional exploit exists" cvss_e = 0.95 else cvss_e = 1 end if rl == "official fix" cvss_rl = 0.87 elsif rl == "temporary fix" cvss_rl = 0.90 elsif rl == "workaround" cvss_rl = 0.95 else cvss_rl = 1 end if rc == "unconfirmed" cvss_rc = 0.90 elsif rc == "uncorroborated" cvss_rc = 0.95 else cvss_rc = 1 end #environemental if cdp == "low" cvss_cdp = 0.1 elsif cdp == "low-medium" cvss_cdp = 0.3 elsif cdp == "medium-high" cvss_cdp = 0.4 elsif cdp == "high" cvss_cdp = 0.5 else cvss_cdp = 0 end if td == "none" cvss_td = 0 elsif td == "low" cvss_td = 0.25 elsif td == "medium" cvss_td = 0.75 else cvss_td = 1 end if cr == "low" cvss_cr = 0.5 elsif cr == "high" cvss_cr = 1.51 else cvss_cr = 1 end if ir == "low" cvss_ir = 0.5 elsif ir == "high" cvss_ir = 1.51 else cvss_ir = 1 end if ar == "low" cvss_ar = 0.5 elsif ar == "high" cvss_ar = 1.51 else cvss_ar = 1 end cvss_impact = 10.41 * (1 - (1 - cvss_c) * (1 - cvss_i) * (1 - cvss_a)) cvss_exploitability = 20 * cvss_ac * cvss_au * cvss_av if cvss_impact == 0 cvss_impact_f = 0 else cvss_impact_f = 1.176 end cvss_base = (0.6*cvss_impact + 0.4*<API key>.5)*cvss_impact_f cvss_temporal = cvss_base * cvss_e * cvss_rl * cvss_rc <API key> = [10, 10.41 * (1 - (1 - cvss_c * cvss_cr) * (1 - cvss_i * cvss_ir) * (1 - cvss_a * cvss_ar))].min if <API key> == 0 <API key> = 0 else <API key> = 1.176 end cvss_modified_base = (0.6*<API key> + 0.4*<API key>.5)*<API key> <API key> = cvss_modified_base * cvss_e * cvss_rl * cvss_rc cvss_environmental = (<API key> + (10 - <API key>) * cvss_cdp) * cvss_td if cvss_environmental cvss_total = cvss_environmental elsif cvss_temporal cvss_total = cvss_temporal else cvss_total = cvss_base end data["cvss_base"] = sprintf("%0.1f" % cvss_base) data["cvss_impact"] = sprintf("%0.1f" % cvss_impact) data["cvss_exploitability"] = sprintf("%0.1f" % cvss_exploitability) data["cvss_temporal"] = sprintf("%0.1f" % cvss_temporal) data["cvss_environmental"] = sprintf("%0.1f" % cvss_environmental) data["<API key>"] = sprintf("%0.1f" % <API key>) data["cvss_total"] = sprintf("%0.1f" % cvss_total) return data end # there are three scoring types; risk, dread and cvss # this sets a score for all three in case the user switches later def convert_score(finding) if(finding.cvss_total == nil) puts "|!| No CVSS score exists" finding.cvss_total = 0 end if(finding.dread_total == nil) puts "|!| No CVSS score exists" finding.dread_total = 0 end if(finding.risk == nil) puts "|!| No CVSS score exists" finding.risk = 0 end return finding end
#include "config.h" #include "core/svg/<API key>.h" #include "SVGNames.h" #include "core/rendering/style/RenderStyle.h" #include "core/rendering/style/SVGRenderStyle.h" #include "core/svg/SVGElementInstance.h" #include "core/svg/SVGParserUtilities.h" #include "core/svg/graphics/filters/SVGFilterBuilder.h" namespace WebCore { // Animated property definitions <API key>(<API key>, SVGNames::inAttr, In1, in1) <API key>(<API key>, SVGNames::dxAttr, Dx, dx) <API key>(<API key>, SVGNames::dyAttr, Dy, dy) <API key>(<API key>, SVGNames::stdDeviationAttr, <API key>(), StdDeviationX, stdDeviationX) <API key>(<API key>, SVGNames::stdDeviationAttr, <API key>(), StdDeviationY, stdDeviationY) <API key>(<API key>) <API key>(in1) <API key>(dx) <API key>(dy) <API key>(stdDeviationX) <API key>(stdDeviationY) <API key>(<API key>) <API key> inline <API key>::<API key>(const QualifiedName& tagName, Document* document) : <API key>(tagName, document) , m_dx(2) , m_dy(2) , m_stdDeviationX(2) , m_stdDeviationY(2) { ASSERT(hasTagName(SVGNames::feDropShadowTag)); ScriptWrappable::init(this); <API key>(); } PassRefPtr<<API key>> <API key>::create(const QualifiedName& tagName, Document* document) { return adoptRef(new <API key>(tagName, document)); } const AtomicString& <API key>::<API key>() { DEFINE_STATIC_LOCAL(AtomicString, s_identifier, ("SVGStdDeviationX", AtomicString::<API key>)); return s_identifier; } const AtomicString& <API key>::<API key>() { DEFINE_STATIC_LOCAL(AtomicString, s_identifier, ("SVGStdDeviationY", AtomicString::<API key>)); return s_identifier; } void <API key>::setStdDeviation(float x, float y) { <API key>(x); <API key>(y); invalidate(); } bool <API key>::<API key>(const QualifiedName& attrName) { DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); if (supportedAttributes.isEmpty()) { supportedAttributes.add(SVGNames::inAttr); supportedAttributes.add(SVGNames::dxAttr); supportedAttributes.add(SVGNames::dyAttr); supportedAttributes.add(SVGNames::stdDeviationAttr); } return supportedAttributes.contains<<API key>>(attrName); } void <API key>::parseAttribute(const QualifiedName& name, const AtomicString& value) { if (!<API key>(name)) { <API key>::parseAttribute(name, value); return; } if (name == SVGNames::stdDeviationAttr) { float x, y; if (<API key>(value, x, y)) { <API key>(x); <API key>(y); } return; } if (name == SVGNames::inAttr) { setIn1BaseValue(value); return; } if (name == SVGNames::dxAttr) { setDxBaseValue(value.toFloat()); return; } if (name == SVGNames::dyAttr) { setDyBaseValue(value.toFloat()); return; } ASSERT_NOT_REACHED(); } void <API key>::svgAttributeChanged(const QualifiedName& attrName) { if (!<API key>(attrName)) { <API key>::svgAttributeChanged(attrName); return; } SVGElementInstance::InvalidationGuard invalidationGuard(this); if (attrName == SVGNames::inAttr || attrName == SVGNames::stdDeviationAttr || attrName == SVGNames::dxAttr || attrName == SVGNames::dyAttr) { invalidate(); return; } ASSERT_NOT_REACHED(); } PassRefPtr<FilterEffect> <API key>::build(SVGFilterBuilder* filterBuilder, Filter* filter) { RenderObject* renderer = this->renderer(); if (!renderer) return 0; if (stdDeviationX() < 0 || stdDeviationY() < 0) return 0; ASSERT(renderer->style()); const SVGRenderStyle* svgStyle = renderer->style()->svgStyle(); Color color = svgStyle->floodColor(); float opacity = svgStyle->floodOpacity(); FilterEffect* input1 = filterBuilder->getEffectById(in1()); if (!input1) return 0; RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationX(), stdDeviationY(), dx(), dy(), color, opacity); effect->inputEffects().append(input1); return effect.release(); } }
<?php namespace modules\translations\controllers\console; use modules\lang\models\Lang; use modules\translations\models\MessageCategory; use Yii; use yii\console\Controller; use yii\console\Exception; use yii\helpers\FileHelper; use modules\translations\models\Message; use modules\translations\models\SourceMessage; class I18nController extends Controller { /** * @param string $sourcePath * @throws Exception */ public function actionImport($sourcePath = null) { if (!$sourcePath) { $sourcePath = $this->prompt('Enter a source path'); } $sourcePath = realpath(Yii::getAlias($sourcePath)); if (!is_dir($sourcePath)) { throw new Exception('The source path ' . $sourcePath . ' is not a valid directory.'); } $translationsFiles = FileHelper::findFiles($sourcePath, ['only' => ['*.php']]); foreach ($translationsFiles as $translationsFile) { $relativePath = trim(str_replace([$sourcePath, '.php'], '', $translationsFile), '/,\\'); $relativePath = FileHelper::normalizePath($relativePath, '/'); $relativePath = explode('/', $relativePath, 2); if (count($relativePath) > 1) { $language = $this->prompt('Enter language.', ['default' => $relativePath[0]]); $category = $this->prompt('Enter category.', ['default' => $relativePath[1]]); $categoryId = $this->addCategory($category); $translations = require_once $translationsFile; if (is_array($translations)) { foreach ($translations as $sourceMessage => $translation) { if (!empty($translation)) { $sourceMessage = $this->getSourceMessage($categoryId, $sourceMessage); $this->setTranslation($sourceMessage, $language, $translation); } } } } } echo PHP_EOL . 'Done.' . PHP_EOL; } private function addCategory($category){ $catModel = MessageCategory::find()->where(['name'=>$category])->one(); if(!$catModel){ $catModel = new MessageCategory(); $catModel->name = $category; $catModel->save(); } return $catModel->id; } /** * @param string $category * @param string $message * @return SourceMessage */ private function getSourceMessage($category, $message) { $params = [ 'category_id' => $category, 'message' => $message ]; $sourceMessage = SourceMessage::find() ->where($params) ->with('messages') ->one(); if (!$sourceMessage) { $sourceMessage = new SourceMessage; $sourceMessage->setAttributes($params, false); $sourceMessage->save(false); } return $sourceMessage; } /** * @param SourceMessage $sourceMessage * @param string $language * @param string $translation */ private function setTranslation($sourceMessage, $language, $translation) { /** @var Message[] $messages */ $messages = $sourceMessage->messages; $lang = Lang::find()->where(['url'=>$language])->one(); if(!$lang) return; $langId = $lang->id; if (isset($messages[$langId]) ) { $messages[$langId]->translation = $translation; $messages[$langId]->save(false); } elseif (!isset($messages[$langId])) { $message = new Message; $message->setAttributes([ 'lang_id' => $langId, 'translation' => $translation ], false); $sourceMessage->link('messages', $message); } } public function actionFlush() { $tableNames = [ Message::tableName(), SourceMessage::tableName() ]; $db = Yii::$app->getDb(); foreach ($tableNames as $tableName) { $db->createCommand() ->delete($tableName) ->execute(); } echo PHP_EOL . 'Done.' . PHP_EOL; } }
#include <CGAL/Epick_d.h> #include <CGAL/point_generators_d.h> #include <CGAL/<API key>.h> #include <CGAL/K_neighbor_search.h> #include <CGAL/Search_traits_d.h> typedef CGAL::Epick_d<CGAL::Dimension_tag<4> > Kernel; typedef Kernel::Point_d Point_d; typedef CGAL::<API key><Point_d> <API key>; typedef Kernel::Iso_box_d Iso_box_d; typedef Kernel TreeTraits; typedef CGAL::<API key><TreeTraits> Distance; typedef CGAL::K_neighbor_search<TreeTraits, Distance> Neighbor_search; typedef Neighbor_search::Tree Tree; int main() { const int N = 1000; const unsigned int K = 10; Tree tree; <API key> rpit(4,1000.0); for(int i = 0; i < N; i++){ tree.insert(*rpit++); } Point_d pp(0.1,0.1,0.1,0.1); Point_d qq(0.2,0.2,0.2,0.2); Iso_box_d query(pp,qq); Distance tr_dist; Neighbor_search N1(tree, query, 5, 10.0, false); // eps=10.0, nearest=false std::cout << "For query rectangle = [0.1, 0.2]^4 " << std::endl << "the " << K << " approximate furthest neighbors are: " << std::endl; for (Neighbor_search::iterator it = N1.begin();it != N1.end();it++) { std::cout << " Point " << it->first << " at distance " << tr_dist.<API key>(it->second) << std::endl; } return 0; }
package org.rti.webgenome.webui.struts.upload; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionMapping; import org.rti.webgenome.util.SystemUtils; import org.rti.webgenome.webui.struts.BaseForm; /** * Form for inputting the name of a rectangular file * column that contains reporter names. * @author dhall * */ public class <API key> extends BaseForm { /** Serialized version ID. */ private static final long serialVersionUID = SystemUtils.<API key>("serial.version.uid"); /** Name of column containing reporter names. */ private String reporterColumnName = null; /** * Get name of column containing reporter names. * @return Column heading. */ public String <API key>() { return reporterColumnName; } /** * Set name of column containing reporter names. * @param reporterColumnName Column heading. */ public void <API key>(final String reporterColumnName) { this.reporterColumnName = reporterColumnName; } /** * {@inheritDoc} */ @Override public ActionErrors validate(final ActionMapping mapping, final HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if (this.reporterColumnName == null || this.reporterColumnName.length() < 1) { errors.add("reporterColumnName", new ActionError("invalid.field")); } if (errors.size() > 0) { errors.add("global", new ActionError("invalid.fields")); } return errors; } }
// UWH Timer #ifndef STATUS_H #define STATUS_H class UWHDCanvas; void renderStatus(UWHDCanvas *C); #endif
from datetime import datetime, timedelta from django import http from django.conf import settings from django.core.exceptions import PermissionDenied import mock import pytest from olympia.amo.tests import BaseTestCase, TestCase from olympia.amo import decorators, get_user, set_user from olympia.amo.urlresolvers import reverse from olympia.users.models import UserProfile pytestmark = pytest.mark.django_db def test_post_required(): def func(request): return mock.sentinel.response g = decorators.post_required(func) request = mock.Mock() request.method = 'GET' assert isinstance(g(request), http.<API key>) request.method = 'POST' assert g(request) == mock.sentinel.response def test_json_view(): """Turns a Python object into a response.""" def func(request): return {'x': 1} response = decorators.json_view(func)(mock.Mock()) assert isinstance(response, http.HttpResponse) assert response.content == '{"x": 1}' assert response['Content-Type'] == 'application/json' assert response.status_code == 200 def <API key>(): """Normal responses get passed through.""" expected = http.<API key>() def func(request): return expected response = decorators.json_view(func)(mock.Mock()) assert expected is response assert response['Content-Type'] == 'text/html; charset=utf-8' def <API key>(): """json_view.error returns 400 responses.""" response = decorators.json_view.error({'msg': 'error'}) assert isinstance(response, http.<API key>) assert response.content == '{"msg": "error"}' assert response['Content-Type'] == 'application/json' def <API key>(): def func(request): return {'x': 1} response = decorators.json_view(func, status_code=202)(mock.Mock()) assert response.status_code == 202 def <API key>(): response = decorators.json_response({'msg': 'error'}, status_code=202) assert response.content == '{"msg": "error"}' assert response['Content-Type'] == 'application/json' assert response.status_code == 202 class TestTaskUser(TestCase): fixtures = ['base/users'] def test_set_task_user(self): @decorators.set_task_user def some_func(): return get_user() set_user(UserProfile.objects.get(username='regularuser')) assert get_user().pk == 999 assert some_func().pk == int(settings.TASK_USER_ID) assert get_user().pk == 999 class TestLoginRequired(BaseTestCase): def setUp(self): super(TestLoginRequired, self).setUp() self.f = mock.Mock() self.f.__name__ = 'function' self.request = mock.Mock() self.request.user.is_authenticated.return_value = False self.request.get_full_path.return_value = 'path' def test_normal(self): func = decorators.login_required(self.f) response = func(self.request) assert not self.f.called assert response.status_code == 302 assert response['Location'] == ( '%s?to=%s' % (reverse('users.login'), 'path')) def test_no_redirect(self): func = decorators.login_required(self.f, redirect=False) response = func(self.request) assert not self.f.called assert response.status_code == 401 def <API key>(self): # @login_required(redirect=False) func = decorators.login_required(redirect=False)(self.f) response = func(self.request) assert not self.f.called assert response.status_code == 401 def <API key>(self): func = decorators.login_required(redirect=False)(self.f) self.request.user.is_authenticated.return_value = True func(self.request) assert self.f.called class TestSetModifiedOn(TestCase): fixtures = ['base/users'] @decorators.set_modified_on def some_method(self, worked): return worked def <API key>(self): users = list(UserProfile.objects.all()[:3]) self.some_method(True, set_modified_on=users) for user in users: assert UserProfile.objects.get(pk=user.pk).modified.date() == ( datetime.today().date()) def <API key>(self): yesterday = datetime.today() - timedelta(days=1) qs = UserProfile.objects.all() qs.update(modified=yesterday) users = list(qs[:3]) self.some_method(False, set_modified_on=users) for user in users: date = UserProfile.objects.get(pk=user.pk).modified.date() assert date < datetime.today().date() class <API key>(TestCase): def setUp(self): super(<API key>, self).setUp() self.f = mock.Mock() self.f.__name__ = 'function' self.request = mock.Mock() @mock.patch('olympia.access.acl.action_allowed') def <API key>(self, action_allowed): action_allowed.return_value = False func = decorators.permission_required('', '')(self.f) with self.assertRaises(PermissionDenied): func(self.request) @mock.patch('olympia.access.acl.action_allowed') def <API key>(self, action_allowed): action_allowed.return_value = True func = decorators.permission_required('', '')(self.f) func(self.request) assert self.f.called @mock.patch('olympia.access.acl.action_allowed') def <API key>(self, action_allowed): func = decorators.permission_required('Admin', '%')(self.f) func(self.request) action_allowed.assert_called_with(self.request, 'Admin', '%')
package main import ( "github.com/kataras/iris/v12" "github.com/kataras/iris/v12/middleware/requestid" "github.com/kataras/golog" ) func main() { app := iris.New() app.Logger().SetLevel("debug") app.Logger().SetFormat("json", " ") // to register a custom Formatter: // app.Logger().RegisterFormatter(golog.Formatter...) // Also, see app.Logger().SetLevelOutput(level string, w io.Writer) // to set a custom writer for a specific level. app.Use(requestid.New()) /* Example Output: { "timestamp": 1591422944, "level": "debug", "message": "This is a message with data", "fields": { "username": "kataras" }, "stacktrace": [ { "function": "main.main", "source": "C:/mygopath/src/github.com/kataras/iris/_examples/logging/json-logger/main.go:16" } ] } */ app.Logger().Debugf("This is a %s with data (debug prints the stacktrace too)", "message", golog.Fields{ "username": "kataras", }) app.Logger().Infof("An info message", golog.Fields{"home": "https://iris-go.com"}) app.Get("/ping", ping) app.Listen(":8080" /*, iris.WithoutBanner*/) } func ping(ctx iris.Context) { /* Example Output: { "timestamp": 1591423046, "level": "debug", "message": "Request path: /ping", "fields": { "request_id": "<API key>" }, "stacktrace": [ { "function": "main.ping", "source": "C:/mygopath/src/github.com/kataras/iris/_examples/logging/json-logger/main.go:82" }, ] } */ ctx.Application().Logger().Debugf("Request path: %s", ctx.Path(), golog.Fields{ "request_id": ctx.GetID(), }) ctx.WriteString("pong") }
from django.core.management.base import BaseCommand import amo from mkt.webapps.models import AddonPremium class Command(BaseCommand): help = 'Clean up existing AddonPremium objects for free apps.' def handle(self, *args, **options): (AddonPremium.objects.filter(<API key>=amo.ADDON_FREES) .delete())
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.cpp Label Definition File: <API key>.label.xml Template File: sources-sink-08.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: file Read input from a file * GoodSource: Use a fixed file name * Sink: ifstream * BadSink : Open the file named in data using ifstream::open() * Flow Variant: 08 Control flow: if(staticReturnsTrue()) and if(staticReturnsFalse()) * * */ #include "std_testcase.h" #ifdef _WIN32 #define BASEPATH "c:\\temp\\" #else #include <wchar.h> #define BASEPATH "/tmp/" #endif #ifdef _WIN32 #define FILENAME "C:\\temp\\file.txt" #else #define FILENAME "/tmp/file.txt" #endif #include <fstream> using namespace std; /* The two function below always return the same value, so a tool should be able to identify that calls to the functions will always return a fixed value. */ static int staticReturnsTrue() { return 1; } static int staticReturnsFalse() { return 0; } namespace <API key> { #ifndef OMITBAD void bad() { char * data; char dataBuffer[FILENAME_MAX] = BASEPATH; data = dataBuffer; if(staticReturnsTrue()) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (<API key> > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(<API key>), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } { ifstream inputFile; /* POTENTIAL FLAW: Possibly opening a file without validating the file name or path */ inputFile.open((char *)data); inputFile.close(); } } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B1() - use goodsource and badsink by changing the staticReturnsTrue() to staticReturnsFalse() */ static void goodG2B1() { char * data; char dataBuffer[FILENAME_MAX] = BASEPATH; data = dataBuffer; if(staticReturnsFalse()) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { /* FIX: Use a fixed file name */ strcat(data, "file.txt"); } { ifstream inputFile; /* POTENTIAL FLAW: Possibly opening a file without validating the file name or path */ inputFile.open((char *)data); inputFile.close(); } } /* goodG2B2() - use goodsource and badsink by reversing the blocks in the if statement */ static void goodG2B2() { char * data; char dataBuffer[FILENAME_MAX] = BASEPATH; data = dataBuffer; if(staticReturnsTrue()) { /* FIX: Use a fixed file name */ strcat(data, "file.txt"); } { ifstream inputFile; /* POTENTIAL FLAW: Possibly opening a file without validating the file name or path */ inputFile.open((char *)data); inputFile.close(); } } void good() { goodG2B1(); goodG2B2(); } #endif /* OMITGOOD */ } /* close namespace */ /* Below is the main(). It is only used when building this testcase on its own for testing or for building a binary to use in testing binary analysis tools. It is not used when compiling all the testcases as one application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN using namespace <API key>; /* so that we can use good and bad easily */ int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
% diagram A1-2 \verbatimlines % inc Incorporating new mail into inbox... 1+E02/28 0227-EST mrose test message <<ENCRYPTED MESSAGE: TTI Incorporating encrypted mail into inbox... 1+ 02/28 0227-EST mrose test message <<mumble, mumble. >> ?endverbatim
package org.hisp.dhis.sms.listener; import java.util.*; import org.apache.commons.lang3.StringUtils; import org.hisp.dhis.organisationunit.OrganisationUnit; import org.hisp.dhis.program.Program; import org.hisp.dhis.program.<API key>; import org.hisp.dhis.sms.command.SMSCommand; import org.hisp.dhis.sms.command.SMSCommandService; import org.hisp.dhis.sms.command.code.SMSCode; import org.hisp.dhis.sms.incoming.IncomingSms; import org.hisp.dhis.sms.incoming.SmsMessageStatus; import org.hisp.dhis.sms.parse.ParserType; import org.hisp.dhis.sms.parse.SMSParserException; import org.hisp.dhis.system.util.SmsUtils; import org.hisp.dhis.trackedentity.<API key>; import org.hisp.dhis.trackedentity.<API key>; import org.hisp.dhis.trackedentity.<API key>; import org.hisp.dhis.trackedentity.<API key>; import org.hisp.dhis.<API key>.<API key>; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; @Transactional public class <API key> extends BaseSMSListener { private static final String SUCCESS_MESSAGE = "Tracked Entity Registered Successfully with uid. "; // Dependencies @Autowired private SMSCommandService smsCommandService; @Autowired private <API key> <API key>; @Autowired private <API key> <API key>; @Autowired private <API key> <API key>; // IncomingSmsListener implementation @Override protected void postProcess( IncomingSms sms, SMSCommand smsCommand, Map<String, String> parsedMessage ) { String message = sms.getText(); Date date = SmsUtils.lookForDate( message ); String senderPhoneNumber = StringUtils.replace( sms.getOriginator(), "+", "" ); Collection<OrganisationUnit> orgUnits = <API key>( sms ); Program program = smsCommand.getProgram(); OrganisationUnit orgUnit = SmsUtils.<API key>( orgUnits, parsedMessage, smsCommand ); if ( !program.hasOrganisationUnit( orgUnit ) ) { sendFeedback( SMSCommand.NO_OU_FOR_PROGRAM, senderPhoneNumber, WARNING ); throw new SMSParserException( SMSCommand.NO_OU_FOR_PROGRAM ); } <API key> <API key> = new <API key>(); <API key>.setOrganisationUnit( orgUnit ); <API key>.<API key>( <API key>.<API key>( smsCommand.getProgram().<API key>().getName() ) ); Set<<API key>> <API key> = new HashSet<>(); smsCommand.getCodes().stream() .filter( code -> parsedMessage.containsKey( code.getCode() ) ) .forEach( code -> { <API key> <API key> = this.<API key>( parsedMessage, code, <API key>) ; <API key>.add( <API key> ); }); int <API key> = 0; if ( <API key>.size() > 0 ) { <API key> = <API key>.<API key>( <API key>, null, null, <API key> ); } else { sendFeedback( "No <API key> found", senderPhoneNumber, WARNING ); } <API key> tei = <API key>.<API key>( <API key> ); <API key>.<API key>( tei, smsCommand.getProgram(), new Date(), date, orgUnit ); sendFeedback( StringUtils.defaultIfBlank( smsCommand.getSuccessMessage(), SUCCESS_MESSAGE + tei.getUid() ), senderPhoneNumber, INFO ); update( sms, SmsMessageStatus.PROCESSED, true ); } @Override protected SMSCommand getSMSCommand( IncomingSms sms ) { return smsCommandService.getSMSCommand( SmsUtils.getCommandString( sms ), ParserType.<API key> ); } private <API key> <API key>( Map<String, String> parsedMessage, SMSCode code, <API key> <API key> ) { String value = parsedMessage.get( code.getCode() ); <API key> <API key> = code.<API key>(); <API key> <API key> = new <API key>(); <API key>.setAttribute( <API key> ); <API key>.setEntityInstance( <API key> ); <API key>.setValue( value ); return <API key>; } }
# Support ## Timer A timer class that can be called static or dynamically. Source code: [support/blob/master/src/Timer.php](https://github.com/antonioribeiro/support/blob/master/src/Timer.php) Methods Those are the methods: Timer::start(); Timer::stop(); Timer::isStarted(); Timer::isStopped(); Timer::elapsed(); // returns a formatted value 9.0192 Timer::elapsedRaw(); // returns a double 9.019223049023 Timer::setFormat(default = '%.4f'); You can name your timers and have more than one running: Timer::start('mary'); Timer::stop('mary'); Timer::elapsed('mary'); Examples Timer::start(); Timer::start('2nd timer'); var_dump("started: " . (Timer::isStarted() ? 'yes' : 'no')); var_dump("stopped: " . (Timer::isStopped() ? 'yes' : 'no')); sleep(5); Timer::stop(); var_dump("started: " . (Timer::isStarted() ? 'yes' : 'no')); var_dump("stopped: " . (Timer::isStopped() ? 'yes' : 'no')); var_dump("elapsed: " . Timer::elapsed()); var_dump("raw: " . Timer::elapsedRaw()); sleep(2); var_dump("'2nd timer' started: " . (Timer::isStarted('2nd timer') ? 'yes' : 'no')); var_dump("'2nd timer' stopped: " . (Timer::isStopped('2nd timer') ? 'yes' : 'no')); var_dump("'2nd timer' elapsed: " . Timer::elapsed('2nd timer')); var_dump("'2nd timer' raw: " . Timer::elapsedRaw('2nd timer')); sleep(2); Timer::stop('2nd timer'); var_dump("'2nd timer' started: " . (Timer::isStarted('2nd timer') ? 'yes' : 'no')); var_dump("'2nd timer' stopped: " . (Timer::isStopped('2nd timer') ? 'yes' : 'no')); var_dump("'2nd timer' elapsed: " . Timer::elapsed('2nd timer')); var_dump("'2nd timer' raw: " . Timer::elapsedRaw('2nd timer')); Timer::setFormat('%.8f'); var_dump("'2nd timer' elapsed 8 decimals: " . Timer::elapsed('2nd timer')); And you can instantiate it and do it all over again: $t = new Timer; $t->start(); sleep(3); $t->stop(); var_dump("elapsed dynamic: " . $t->elapsed()); This should give you this result: string(12) "started: yes" string(11) "stopped: no" string(11) "started: no" string(12) "stopped: yes" string(15) "elapsed: 5.0004" string(20) "raw: 5.0005040168762" string(24) "'2nd timer' started: yes" string(23) "'2nd timer' stopped: no" string(27) "'2nd timer' elapsed: 7.0008" string(32) "'2nd timer' raw: 7.0008120536804" string(23) "'2nd timer' started: no" string(24) "'2nd timer' stopped: yes" string(27) "'2nd timer' elapsed: 9.0011" string(32) "'2nd timer' raw: 9.0010931491852" string(42) "'2nd timer' elapsed 8 decimals: 9.00113106" string(27) "elapsed dynamic: 3.00018883"
# <API key>: true module Stupidedi using Refinements module Schema # The 5010 X12 "data segment requirement designator"s include # M - Mandatory # O - Optional # @see X222 B.1.3.12.6 Data Segment Requirement Designators # The HIPAA implementation guides "industry usage" include # SITUATIONAL # REQUIRED class SegmentReq def initialize(required, forbidden, to_s) @required, @forbidden, @to_s = required, forbidden, to_s end def required? @required end def forbidden? @forbidden end def optional? not (@required or @forbidden) end # @return [void] def pretty_print(q) q.text @to_s end # @return [String] def inspect @to_s end end end end
// modification, are permitted provided that the following conditions are // met: // 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 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // 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 "prediction/<API key>.h" #include <algorithm> #include <cctype> #include <climits> // INT_MAX #include <cmath> #include <cstdint> #include <list> #include <map> #include <set> #include <string> #include <utility> #include <vector> #include "base/japanese_util.h" #include "base/logging.h" #include "base/number_util.h" #include "base/util.h" #include "composer/composer.h" #include "converter/connector.h" #include "converter/converter_interface.h" #include "converter/<API key>.h" #include "converter/node_list_builder.h" #include "converter/segmenter.h" #include "converter/segments.h" #include "dictionary/<API key>.h" #include "dictionary/pos_matcher.h" #include "prediction/predictor_interface.h" #include "prediction/suggestion_filter.h" #include "prediction/zero_query_dict.h" #include "protocol/commands.pb.h" #include "protocol/config.pb.h" #include "request/conversion_request.h" #include "usage_stats/usage_stats.h" #include "absl/container/flat_hash_map.h" #include "absl/flags/flag.h" #include "absl/strings/match.h" #include "absl/strings/string_view.h" #ifndef NDEBUG #define MOZC_DEBUG #define <API key>(message) \ absl::StrCat(__FILE__, ":", __LINE__, " ", message, "\n") #define MOZC_WORD_LOG(result, message) \ (result).log.append(<API key>(message)) #else // NDEBUG #define MOZC_WORD_LOG(result, message) \ {} #endif // NDEBUG namespace mozc { namespace { using ::mozc::commands::Request; using ::mozc::dictionary::DictionaryInterface; using ::mozc::dictionary::PosMatcher; using ::mozc::dictionary::Token; using ::mozc::usage_stats::UsageStats; // Used to emulate positive infinity for cost. This value is set for those // candidates that are thought to be aggressive; thus we can eliminate such // candidates from suggestion or prediction. Note that for this purpose we don't // want to use INT_MAX because someone might further add penalty after cost is // set to INT_MAX, which leads to overflow and consequently aggressive // candidates would appear in the top results. constexpr int kInfinity = (2 << 20); // Note that PREDICTION mode is much slower than SUGGESTION. // Number of prediction calls should be minimized. constexpr size_t <API key> = 256; constexpr size_t <API key> = 100000; bool <API key>(const ConversionRequest &request) { return request.request() .<API key>() .<API key>(); } // Returns true if the |target| may be reduncant result. bool MaybeRedundant(const std::string &reference, const std::string &target) { return absl::StartsWith(target, reference); } bool IsLatinInputMode(const ConversionRequest &request) { return (request.has_composer() && (request.composer().GetInputMode() == transliteration::HALF_ASCII || request.composer().GetInputMode() == transliteration::FULL_ASCII)); } bool IsQwertyMobileTable(const ConversionRequest &request) { const auto table = request.request().<API key>(); return (table == commands::Request::<API key> || table == commands::Request::<API key>); } bool <API key>(const ConversionRequest &request) { const auto lang_aware = request.request().<API key>(); return lang_aware == commands::Request::<API key>; } // Returns true if |segments| contains number history. // Normalized number will be set to |number_key| // Note: // Now this function supports arabic number candidates only and // we don't support kanji number candidates for now. // This is because We have several kanji number styles, for example, // "", "", "", etc for 12. // TODO(toshiyuki): Define the spec and support Kanji. bool GetNumberHistory(const Segments &segments, std::string *number_key) { DCHECK(number_key); const size_t history_size = segments.<API key>(); if (history_size <= 0) { return false; } const Segment &last_segment = segments.history_segment(history_size - 1); DCHECK_GT(last_segment.candidates_size(), 0); const std::string &history_value = last_segment.candidate(0).value; if (!NumberUtil::IsArabicNumber(history_value)) { return false; } japanese_util::<API key>(history_value, number_key); return true; } bool <API key>(const commands::Request &request) { return request.mixed_conversion(); } bool <API key>(const ConversionRequest &request) { return request.config().<API key>(); } bool <API key>(const Segments &segments, size_t utf8_len) { const size_t <API key> = segments.<API key>(); if (<API key> == 0) { return false; } const Segment &history_segment = segments.history_segment(<API key> - 1); if (history_segment.candidates_size() == 0) { return false; } return Util::CharsLen(history_segment.candidate(0).key) >= utf8_len; } bool <API key>(const Segments &segments) { constexpr int kFewResultThreshold = 8; return (segments.segments_size() > 0 && Util::CharsLen(segments.segment(0).key()) >= kFewResultThreshold); } size_t <API key>(const ConversionRequest &request, const Segments &segments, bool is_long_key) { const auto &segment = segments.conversion_segment(0); const size_t size = (request.<API key>() - segment.candidates_size()); return is_long_key ? std::min<size_t>(size, 8) : size; } size_t <API key>(bool is_long_key) { return is_long_key ? 5 : 10; } ConversionRequest <API key>( const ConversionRequest &request, size_t <API key>, size_t <API key>) { ConversionRequest ret = request; ret.<API key>(<API key> + <API key>); return ret; } } // namespace class DictionaryPredictor::<API key> : public DictionaryInterface::Callback { public: <API key>(DictionaryPredictor::PredictionTypes types, size_t limit, size_t original_key_len, const std::set<std::string> *subsequent_chars, Segment::Candidate::SourceInfo source_info, int unknown_id, absl::string_view <API key>, const SpatialCostParams &spatial_cost_params, std::vector<DictionaryPredictor::Result> *results) : penalty_(0), types_(types), limit_(limit), original_key_len_(original_key_len), subsequent_chars_(subsequent_chars), source_info_(source_info), unknown_id_(unknown_id), <API key>(<API key>), <API key>(spatial_cost_params), results_(results) {} <API key>(const <API key> &) = delete; <API key> &operator=(const <API key> &) = delete; ResultType OnKey(absl::string_view key) override { if (subsequent_chars_ == nullptr) { return TRAVERSE_CONTINUE; } // If |subsequent_chars_| was provided, check if the substring of |key| // obtained by removing the original lookup key starts with a string in the // set. For example, if original key is "he" and "hello" was found, // continue traversing only when one of "l", "ll", or "llo" is in // |subsequent_chars_|. // Implementation note: Although absl::StartsWith is called at most N times // where N = subsequent_chars_.size(), N is very small in practice, less // than 10. Thus, this linear order algorithm is fast enough. // Theoretically, we can construct a trie of strings in |subsequent_chars_| // to get more performance but it's overkill here. // TODO(noriyukit): std::vector<string> would be better than set<string>. // To this end, we need to fix Comopser as well. const absl::string_view rest = absl::ClippedSubstr(key, original_key_len_); for (const std::string &chr : *subsequent_chars_) { if (absl::StartsWith(rest, chr)) { return TRAVERSE_CONTINUE; } } return TRAVERSE_NEXT_KEY; } ResultType OnActualKey(absl::string_view key, absl::string_view actual_key, int num_expanded) override { penalty_ = 0; if (num_expanded > 0 || (!<API key>.empty() && !absl::StartsWith(actual_key, <API key>))) { penalty_ = <API key>.GetPenalty(key); } return TRAVERSE_CONTINUE; } ResultType OnToken(absl::string_view key, absl::string_view actual_key, const Token &token) override { // If the token is from user dictionary and its POS is unknown, it is // suggest-only words. Such words are looked up only when their keys // exactly match |key|. Otherwise, unigram suggestion can be annoying. For // example, suppose a user registers their email address as . Then, // we don't want to show the email address from but exactly from . if ((token.attributes & Token::USER_DICTIONARY) != 0 && token.lid == unknown_id_) { const auto orig_key = absl::ClippedSubstr(key, 0, original_key_len_); if (token.key != orig_key) { return TRAVERSE_CONTINUE; } } results_->push_back(Result()); results_->back().<API key>(token, types_); results_->back().wcost += penalty_; results_->back().source_info |= source_info_; return (results_->size() < limit_) ? TRAVERSE_CONTINUE : TRAVERSE_DONE; } protected: int32_t penalty_; const DictionaryPredictor::PredictionTypes types_; const size_t limit_; const size_t original_key_len_; const std::set<std::string> *subsequent_chars_; const Segment::Candidate::SourceInfo source_info_; const int unknown_id_; absl::string_view <API key>; const SpatialCostParams <API key>; std::vector<DictionaryPredictor::Result> *results_; }; class DictionaryPredictor::<API key> : public <API key> { public: <API key>( DictionaryPredictor::PredictionTypes types, size_t limit, size_t original_key_len, const std::set<std::string> *subsequent_chars, absl::string_view history_value, Segment::Candidate::SourceInfo source_info, int unknown_id, absl::string_view <API key>, const SpatialCostParams spatial_cost_params, std::vector<DictionaryPredictor::Result> *results) : <API key>(types, limit, original_key_len, subsequent_chars, source_info, unknown_id, <API key>, spatial_cost_params, results), history_value_(history_value) {} <API key>(const <API key> &) = delete; <API key> &operator=( const <API key> &) = delete; ResultType OnToken(absl::string_view key, absl::string_view expanded_key, const Token &token) override { // Skip the token if its value doesn't start with the previous user input, // |history_value_|. if (!absl::StartsWith(token.value, history_value_) || token.value.size() <= history_value_.size()) { return TRAVERSE_CONTINUE; } ResultType result_type = <API key>::OnToken(key, expanded_key, token); return result_type; } private: absl::string_view history_value_; }; // Comparator for sorting prediction candidates. // If we have words A and AB, for example "" and "", // assume that cost(A) < cost(AB). class DictionaryPredictor::ResultWCostLess { public: bool operator()(const DictionaryPredictor::Result &lhs, const DictionaryPredictor::Result &rhs) const { return lhs.wcost < rhs.wcost; } }; class DictionaryPredictor::ResultCostLess { public: bool operator()(const DictionaryPredictor::Result &lhs, const DictionaryPredictor::Result &rhs) const { return lhs.cost > rhs.cost; } }; DictionaryPredictor::DictionaryPredictor( const <API key> &data_manager, const ConverterInterface *converter, const <API key> *immutable_converter, const DictionaryInterface *dictionary, const DictionaryInterface *suffix_dictionary, const Connector *connector, const Segmenter *segmenter, const PosMatcher *pos_matcher, const SuggestionFilter *suggestion_filter) : converter_(converter), <API key>(immutable_converter), dictionary_(dictionary), suffix_dictionary_(suffix_dictionary), connector_(connector), segmenter_(segmenter), suggestion_filter_(suggestion_filter), <API key>(pos_matcher-><API key>()), general_symbol_id_(pos_matcher->GetGeneralSymbolId()), unknown_id_(pos_matcher->GetUnknownId()), predictor_name_("DictionaryPredictor") { absl::string_view <API key>; absl::string_view <API key>; absl::string_view <API key>; absl::string_view <API key>; data_manager.GetZeroQueryData(&<API key>, &<API key>, &<API key>, &<API key>); zero_query_dict_.Init(<API key>, <API key>); <API key>.Init(<API key>, <API key>); } DictionaryPredictor::~DictionaryPredictor() {} void DictionaryPredictor::Finish(const ConversionRequest &request, Segments *segments) { if (segments->request_type() == Segments::REVERSE_CONVERSION) { // Do nothing for REVERSE_CONVERSION. return; } const Segment &segment = segments->conversion_segment(0); if (segment.candidates_size() < 1) { VLOG(2) << "candidates size < 1"; return; } const Segment::Candidate &candidate = segment.candidate(0); if (segment.segment_type() != Segment::FIXED_VALUE) { VLOG(2) << "segment is not FIXED_VALUE" << candidate.value; return; } <API key>(candidate); } void DictionaryPredictor::<API key>( const Segment::Candidate &candidate) const { if (candidate.source_info & Segment::Candidate::<API key>) { UsageStats::IncrementCount("<API key>"); } if (candidate.source_info & Segment::Candidate::<API key>) { UsageStats::IncrementCount( "<API key>"); } if (candidate.source_info & Segment::Candidate::<API key>) { UsageStats::IncrementCount( "<API key>"); } if (candidate.source_info & Segment::Candidate::<API key>) { UsageStats::IncrementCount("<API key>"); } if (candidate.source_info & Segment::Candidate::<API key>) { UsageStats::IncrementCount("<API key>"); } if (candidate.source_info & Segment::Candidate::<API key>) { UsageStats::IncrementCount("<API key>"); } } bool DictionaryPredictor::PredictForRequest(const ConversionRequest &request, Segments *segments) const { if (segments == nullptr) { return false; } if (segments->request_type() == Segments::CONVERSION) { VLOG(2) << "request type is CONVERSION"; return false; } if (segments-><API key>() < 1) { VLOG(2) << "segment size < 1"; return false; } std::vector<Result> results; // Mixed conversion is the feature that mixes prediction and // conversion, meaning that results may include the candidates whose // key is exactly the same as the composition. This mode is used in mobile. const bool is_mixed_conversion = <API key>(request.request()); <API key>(request, segments, &results); if (results.empty()) { return false; } if (is_mixed_conversion) { <API key>(*segments, &results); if (!<API key>(request)) { <API key>(*segments, &results); } // Currently, we don't have spelling correction feature when in // the mixed conversion mode, so <API key>() is // not called. return <API key>( request, true, // Include exact key result even if it's a bad suggestion. segments, &results); } // Normal prediction. SetPredictionCost(*segments, &results); if (!<API key>(request)) { <API key>(*segments, &results); } const std::string &input_key = segments->conversion_segment(0).key(); const size_t input_key_len = Util::CharsLen(input_key); <API key>(input_key_len, &results); return <API key>(request, false, // Remove exact key result. segments, &results); } DictionaryPredictor::PredictionTypes DictionaryPredictor::<API key>( const ConversionRequest &request, Segments *segments, std::vector<Result> *results) const { const bool is_mixed_conversion = <API key>(request.request()); // In mixed conversion mode, the number of real time candidates is increased. const size_t realtime_max_size = <API key>(request, *segments, is_mixed_conversion); const auto &unigram_config = GetUnigramConfig(request, *segments); return AggregatePrediction(request, realtime_max_size, unigram_config, segments, results); } DictionaryPredictor::UnigramConfig DictionaryPredictor::GetUnigramConfig( const ConversionRequest &request, const Segments &segments) const { const bool is_mixed_conversion = <API key>(request.request()); if (IsLatinInputMode(request)) { // For SUGGESTION request in Desktop, We don't look up English words when // key length is one. const size_t <API key> = (is_mixed_conversion || segments.request_type() == Segments::PREDICTION) ? 1 : 2; return {&DictionaryPredictor::<API key>, <API key>}; } if (is_mixed_conversion) { // In mixed conversion mode, we want to show unigram candidates even for // short keys to emulate PREDICTION mode. constexpr size_t kMinUnigramKeyLen = 1; return {&DictionaryPredictor::<API key>, kMinUnigramKeyLen}; } // Normal prediction. const size_t min_unigram_key_len = (segments.request_type() == Segments::PREDICTION) ? 1 : 3; return {&DictionaryPredictor::<API key>, min_unigram_key_len}; } DictionaryPredictor::PredictionTypes DictionaryPredictor::AggregatePrediction( const ConversionRequest &request, size_t realtime_max_size, const UnigramConfig &unigram_config, Segments *segments, std::vector<Result> *results) const { DCHECK(segments); DCHECK(results); // Zero query prediction. if (segments->conversion_segment(0).key().empty()) { return <API key>(request, segments, results); } const std::string &key = segments->conversion_segment(0).key(); const size_t key_len = Util::CharsLen(key); // TODO(toshiyuki): Check if we can remove this SUGGESTION check. // i.e. can we return NO_PREDICTION here for both of SUGGESTION and // PREDICTION? if (segments->request_type() == Segments::SUGGESTION) { if (!request.config().<API key>()) { VLOG(2) << "<API key>"; return NO_PREDICTION; } // Never trigger prediction if the key looks like zip code. if (DictionaryPredictor::IsZipCodeRequest(key) && key_len < 6) { return NO_PREDICTION; } } PredictionTypes selected_types = NO_PREDICTION; if (<API key>(request, *segments)) { <API key>(request, realtime_max_size, segments, results); selected_types |= REALTIME; } // In partial suggestion or prediction, only realtime candidates are used. if (segments->request_type() == Segments::PARTIAL_SUGGESTION || segments->request_type() == Segments::PARTIAL_PREDICTION) { return selected_types; } // Add unigram candidates. const size_t min_unigram_key_len = unigram_config.min_key_len; if (key_len >= min_unigram_key_len) { const auto &unigram_fn = unigram_config.unigram_fn; PredictionType type = (this->*unigram_fn)(request, *segments, results); selected_types |= type; } // Add bigram candidates. constexpr int kMinHistoryKeyLen = 3; if (<API key>(*segments, kMinHistoryKeyLen)) { <API key>(request, *segments, Segment::Candidate::SOURCE_INFO_NONE, results); selected_types |= BIGRAM; } // Add english candidates. if (<API key>(request) && IsQwertyMobileTable(request) && key_len >= min_unigram_key_len) { <API key>(request, *segments, results); selected_types |= ENGLISH; } // Add typing correction candidates. constexpr int <API key> = 3; if (<API key>(request) && key_len >= <API key>) { <API key>(request, *segments, results); selected_types |= TYPING_CORRECTION; } return selected_types; } bool DictionaryPredictor::<API key>( const ConversionRequest &request, bool include_exact_key, Segments *segments, std::vector<Result> *results) const { DCHECK(segments); DCHECK(results); const std::string &input_key = segments->conversion_segment(0).key(); const size_t input_key_len = Util::CharsLen(input_key); std::string history_key, history_value; <API key>(*segments, &history_key, &history_value); // exact_bigram_key does not contain ambiguity expansion, because // this is used for exact matching for the key. const std::string exact_bigram_key = history_key + input_key; Segment *segment = segments-><API key>(0); DCHECK(segment); // Instead of sorting all the results, we construct a heap. // This is done in linear time and // we can pop as many results as we need efficiently. std::make_heap(results->begin(), results->end(), ResultCostLess()); const size_t size = std::min( request.<API key>(), results->size()); int added = 0; std::set<std::string> seen; int added_suffix = 0; bool cursor_at_tail = request.has_composer() && request.composer().GetCursor() == request.composer().GetLength(); absl::flat_hash_map<std::string, int32_t> merged_types; #ifndef NDEBUG const bool is_debug = true; #else // NDEBUG // TODO(taku): Sets more advanced debug info depending on the verbose_level. const bool is_debug = request.config().verbose_level() >= 1; #endif // NDEBUG if (is_debug) { for (const auto &result : *results) { if (!result.removed) { merged_types[result.value] |= result.types; } } } auto add_candidate = [&](const Result &result, const std::string &key, const std::string &value, Segment::Candidate *candidate) { DCHECK(candidate); candidate->Init(); candidate->content_key = key; candidate->content_value = value; candidate->key = key; candidate->value = value; candidate->lid = result.lid; candidate->rid = result.rid; candidate->wcost = result.wcost; candidate->cost = result.cost; candidate->attributes = result.<API key>; if ((!(candidate->attributes & Segment::Candidate::SPELLING_CORRECTION) && IsLatinInputMode(request)) || (result.types & SUFFIX)) { candidate->attributes |= Segment::Candidate::<API key>; candidate->attributes |= Segment::Candidate::<API key>; } if (candidate->attributes & Segment::Candidate::<API key>) { candidate->consumed_key_size = result.consumed_key_size; // There are two scenarios to reach here. // 1. Auto partial suggestion. // e.g. composition | -> candidate // 2. Partial suggestion. // e.g. composition | -> candidate // To distinguish auto partial suggestion from (non-auto) partial // suggestion, see the cursor position. If the cursor is at the tail // of the composition, this is auto partial suggestion. if (cursor_at_tail) { candidate->attributes |= Segment::Candidate::<API key>; } } candidate->source_info = result.source_info; if (result.types & REALTIME) { candidate-><API key> = result.<API key>; } if (result.types & TYPING_CORRECTION) { candidate->attributes |= Segment::Candidate::TYPING_CORRECTION; } SetDescription(result.types, candidate->attributes, &candidate->description); if (is_debug) { SetDebugDescription(merged_types[result.value], &candidate->description); } #ifdef MOZC_DEBUG candidate->log += "\n" + result.log; #endif // MOZC_DEBUG }; #ifdef MOZC_DEBUG auto add_debug_candidate = [&](Result result, const std::string &log) { std::string key, value; if (result.types & BIGRAM) { // remove the prefix of history key and history value. key = result.key.substr(history_key.size(), result.key.size() - history_key.size()); value = result.value.substr(history_value.size(), result.value.size() - history_value.size()); } else { key = result.key; value = result.value; } result.log.append(log); Segment::Candidate candidate; add_candidate(result, key, value, &candidate); segment-><API key>.push_back(std::move(candidate)); }; #define <API key>(result, log) \ add_debug_candidate(result, <API key>(log)) #else // MOZC_DEBUG #define <API key>(result, log) \ {} #endif // MOZC_DEBUG for (size_t i = 0; i < results->size(); ++i) { // Pop a result from a heap. Please pay attention not to use results->at(i). std::pop_heap(results->begin(), results->end() - i, ResultCostLess()); const Result &result = results->at(results->size() - i - 1); if (added >= size || result.cost >= kInfinity) { break; } if (result.removed) { <API key>(result, "Removed flag is on"); continue; } // When |include_exact_key| is true, we don't filter the results // which have the exactly same key as the input even if it's a bad // suggestion. if (!(include_exact_key && (result.key == input_key)) && suggestion_filter_->IsBadSuggestion(result.value)) { <API key>(result, "Bad suggestion"); continue; } // Don't suggest exactly the same candidate as key. // if |include_exact_key| is true, that's not the case. if (!include_exact_key && !(result.types & REALTIME) && (((result.types & BIGRAM) && exact_bigram_key == result.value) || (!(result.types & BIGRAM) && input_key == result.value))) { <API key>(result, "Key == candidate"); continue; } std::string key, value; if (result.types & BIGRAM) { // remove the prefix of history key and history value. key = result.key.substr(history_key.size(), result.key.size() - history_key.size()); value = result.value.substr(history_value.size(), result.value.size() - history_value.size()); } else { key = result.key; value = result.value; } if (!seen.insert(value).second) { <API key>(result, "Duplicated"); continue; } // User input: "" (len = 5) // key/value: "" "" (miss match pos = 4) if ((result.<API key> & Segment::Candidate::SPELLING_CORRECTION) && key != input_key && input_key_len <= <API key>(key, value) + 1) { <API key>(result, "Spelling correction"); continue; } if (result.types == SUFFIX && added_suffix++ >= 20) { // TODO(toshiyuki): Need refactoring for controlling suffix // prediction number after we will fix the appropriate number. <API key>(result, "Added suffix >= 20"); continue; } Segment::Candidate *candidate = segment->push_back_candidate(); add_candidate(result, key, value, candidate); ++added; } return added > 0; #undef <API key> } DictionaryPredictor::PredictionTypes DictionaryPredictor::<API key>( const ConversionRequest &request, Segments *segments, std::vector<Result> *results) const { DCHECK(segments); DCHECK(results); if (!request.request().<API key>()) { // Zero query is disabled by request. return NO_PREDICTION; } PredictionTypes selected_types = NO_PREDICTION; constexpr int <API key> = 2; if (<API key>(*segments, <API key>)) { <API key>( request, *segments, Segment::Candidate::<API key>, results); selected_types |= BIGRAM; } if (segments-><API key>() > 0) { <API key>(request, *segments, results); selected_types |= SUFFIX; } return selected_types; } DictionaryPredictor::PredictionType DictionaryPredictor::<API key>( const ConversionRequest &request, const Segments &segments, std::vector<Result> *results) const { <API key>(request, segments, results); return ENGLISH; } void DictionaryPredictor::SetDescription(PredictionTypes types, uint32_t attributes, std::string *description) { if (types & TYPING_CORRECTION) { Util::<API key>(" ", "", description); } if (attributes & Segment::Candidate::<API key>) { Util::<API key>(" ", "", description); } } void DictionaryPredictor::SetDebugDescription(PredictionTypes types, std::string *description) { std::string debug_desc; if (types & UNIGRAM) { debug_desc.append(1, 'U'); } if (types & BIGRAM) { debug_desc.append(1, 'B'); } if (types & REALTIME_TOP) { debug_desc.append("R1"); } else if (types & REALTIME) { debug_desc.append(1, 'R'); } if (types & SUFFIX) { debug_desc.append(1, 'S'); } if (types & ENGLISH) { debug_desc.append(1, 'E'); } // Note that description for TYPING_CORRECTION is omitted // because it is appended by SetDescription. if (!debug_desc.empty()) { Util::<API key>(" ", debug_desc, description); } } // Returns cost for |result| when it's transitioned from |rid|. Suffix penalty // is also added for non-realtime results. int DictionaryPredictor::GetLMCost(const Result &result, int rid) const { const int cost_with_context = connector_->GetTransitionCost(rid, result.lid); int lm_cost = 0; if (result.types & SUFFIX) { // We always respect the previous context to calculate the cost of SUFFIX. // Otherwise, the suffix that doesn't match the context will be promoted. lm_cost = cost_with_context + result.wcost; } else { // Sometimes transition cost is too high and causes a bug like b/18112966. // For example, " " -> " ,," has very large // cost and "" is demoted. To prevent such cases, ImmutableConverter // computes transition from BOS/EOS too; see // <API key>::<API key>(). // Here, taking the minimum of |cost1| and |cost2| has a similar effect. const int <API key> = connector_->GetTransitionCost(0, result.lid); lm_cost = std::min(cost_with_context, <API key>) + result.wcost; } if (!(result.types & REALTIME)) { // Relatime conversion already adds perfix/suffix penalties to the result. // Note that we don't add prefix penalty the role of "bunsetsu" is // ambiguous on zero-query suggestion. lm_cost += segmenter_->GetSuffixPenalty(result.rid); } return lm_cost; } namespace { class FindValueCallback : public DictionaryInterface::Callback { public: explicit FindValueCallback(absl::string_view target_value) : target_value_(target_value), found_(false) {} ResultType OnToken(absl::string_view, // key absl::string_view, // actual_key const Token &token) override { if (token.value != target_value_) { return TRAVERSE_CONTINUE; } found_ = true; token_ = token; return TRAVERSE_DONE; } bool found() const { return found_; } const Token &token() const { return token_; } private: absl::string_view target_value_; bool found_; Token token_; <API key>(FindValueCallback); }; } // namespace void DictionaryPredictor::Result::<API key>( const Token &token, PredictionTypes types) { <API key>(types, token.attributes); key = token.key; value = token.value; wcost = token.cost; lid = token.lid; rid = token.rid; } void DictionaryPredictor::Result::<API key>( PredictionTypes prediction_types, <API key> token_attr) { types = prediction_types; <API key> = 0; if (types & TYPING_CORRECTION) { <API key> |= Segment::Candidate::TYPING_CORRECTION; } if (types & (REALTIME | REALTIME_TOP)) { <API key> |= Segment::Candidate::REALTIME_CONVERSION; } if (token_attr & <API key>) { <API key> |= Segment::Candidate::SPELLING_CORRECTION; } if (token_attr & Token::USER_DICTIONARY) { <API key> |= (Segment::Candidate::USER_DICTIONARY | Segment::Candidate::<API key>); } } void DictionaryPredictor::Result::<API key>( ZeroQueryType type) { switch (type) { case ZERO_QUERY_NONE: source_info |= Segment::Candidate::<API key>; return; case <API key>: source_info |= Segment::Candidate::<API key>; return; case ZERO_QUERY_EMOTICON: source_info |= Segment::Candidate::<API key>; return; case ZERO_QUERY_EMOJI: source_info |= Segment::Candidate::<API key>; return; case ZERO_QUERY_BIGRAM: source_info |= Segment::Candidate::<API key>; return; case ZERO_QUERY_SUFFIX: source_info |= Segment::Candidate::<API key>; return; default: LOG(ERROR) << "Should not come here"; return; } } bool DictionaryPredictor::Result::<API key>() const { return (<API key> & Segment::Candidate::USER_DICTIONARY) != 0; } // Here, we treat the word as English when its key consists of Latin // characters. bool DictionaryPredictor::Result::<API key>() const { return Util::<API key>(key); } bool DictionaryPredictor::<API key>(const Segments &segments, std::string *key, std::string *value) const { DCHECK(key); DCHECK(value); if (segments.<API key>() == 0) { return false; } const Segment &history_segment = segments.history_segment(segments.<API key>() - 1); if (history_segment.candidates_size() == 0) { return false; } key->assign(history_segment.candidate(0).key); value->assign(history_segment.candidate(0).value); return true; } void DictionaryPredictor::SetPredictionCost( const Segments &segments, std::vector<Result> *results) const { DCHECK(results); int rid = 0; // 0 (BOS) is default if (segments.<API key>() > 0) { const Segment &history_segment = segments.history_segment(segments.<API key>() - 1); if (history_segment.candidates_size() > 0) { rid = history_segment.candidate(0).rid; // use history segment's id } } const std::string &input_key = segments.conversion_segment(0).key(); std::string history_key, history_value; <API key>(segments, &history_key, &history_value); const std::string bigram_key = history_key + input_key; const bool is_suggestion = (segments.request_type() == Segments::SUGGESTION); // use the same scoring function for both unigram/bigram. // Bigram will be boosted because we pass the previous // key as a context information. const size_t bigram_key_len = Util::CharsLen(bigram_key); const size_t unigram_key_len = Util::CharsLen(input_key); // In the loop below, we track the minimum cost among those REALTIME // candidates that have the same key length as |input_key| so that we can set // a slightly smaller cost to REALTIME_TOP than these. int realtime_cost_min = kInfinity; Result *realtime_top_result = nullptr; for (size_t i = 0; i < results->size(); ++i) { const Result &result = results->at(i); // The cost of REALTIME_TOP is determined after the loop based on the // minimum cost for REALTIME. Just remember the pointer of result. if (result.types & REALTIME_TOP) { realtime_top_result = &results->at(i); continue; } const int cost = GetLMCost(result, rid); const size_t query_len = (result.types & BIGRAM) ? bigram_key_len : unigram_key_len; const size_t key_len = Util::CharsLen(result.key); if (<API key>(query_len, key_len, cost, is_suggestion, results->size())) { results->at(i).cost = kInfinity; continue; } // cost = -500 * log(lang_prob(w) * (1 + remain_length)) -- (1) // where lang_prob(w) is a language model probability of the word "w", and // remain_length the length of key user must type to input "w". // Example: // key/value = "/" // user_input = "" // remain_length = len("") - len("") = 3 // By taking the log of (1), // cost = -500 [log(lang_prob(w)) + log(1 + ramain_length)] // = -500 * log(lang_prob(w)) + 500 * log(1 + remain_length) // = cost - 500 * log(1 + remain_length) // Because 500 * log(lang_prob(w)) = -cost. // lang_prob(w) * (1 + remain_length) represents how user can reduce // the total types by choosing this candidate. // Before this simple algorithm, we have been using an SVM-base scoring, // but we stop usign it with the following reasons. // 1) Hard to maintain the ranking. // 2) Hard to control the final results of SVM. // 3) Hard to debug. // 4) Since we used the log(remain_length) as a feature, // the new ranking algorithm and SVM algorithm was essentially // the same. // 5) Since we used the length of value as a feature, we find // inconsistencies between the conversion and the prediction // -- the results of top prediction and the top conversion // (the candidate shown after the space key) may differ. // The new function brings consistent results. If two candidate // have the same reading (key), they should have the same cost bonus // from the length part. This implies that the result is reranked by // the language model probability as long as the key part is the same. // This behavior is baisically the same as the converter. // TODO(team): want find the best parameter instead of kCostFactor. constexpr int kCostFactor = 500; results->at(i).cost = cost - kCostFactor * log(1.0 + std::max<int>(0, key_len - query_len)); // Update the minimum cost for REALTIME candidates that have the same key // length as input_key. if (result.types & REALTIME && result.cost < realtime_cost_min && result.key.size() == input_key.size()) { realtime_cost_min = result.cost; } } // Ensure that the REALTIME_TOP candidate has relatively smaller cost than // those of REALTIME candidates. if (realtime_top_result != nullptr) { realtime_top_result->cost = std::max(0, realtime_cost_min - 10); } } void DictionaryPredictor::<API key>( const Segments &segments, std::vector<Result> *results) const { DCHECK(results); // ranking for mobile int rid = 0; // 0 (BOS) is default int prev_cost = 0; // cost of the last history candidate. if (segments.<API key>() > 0) { const Segment &history_segment = segments.history_segment(segments.<API key>() - 1); if (history_segment.candidates_size() > 0) { rid = history_segment.candidate(0).rid; // use history segment's id prev_cost = history_segment.candidate(0).cost; if (prev_cost == 0) { // if prev_cost is set to be 0 for some reason, use default cost. prev_cost = 5000; } } } const size_t input_key_len = Util::CharsLen(segments.conversion_segment(0).key()); for (Result &result : *results) { int cost = GetLMCost(result, rid); MOZC_WORD_LOG(result, absl::StrCat("GetLMCost: ", cost)); // Demote filtered word here, because they are not filtered for exact match. // Even for exact match, we don't want to show aggressive words with high // ranking. if (suggestion_filter_->IsBadSuggestion(result.value)) { // Cost penalty means for bad suggestion. // 3453 = 500 * log(1000) constexpr int <API key> = 3453; cost += <API key>; MOZC_WORD_LOG(result, absl::StrCat("<API key>: ", cost)); } // Make exact candidates to have higher ranking. // Because for mobile, suggestion is the main candidates and // users expect the candidates for the input key on the candidates. if (result.types & (UNIGRAM | TYPING_CORRECTION)) { const size_t key_len = Util::CharsLen(result.key); if (key_len > input_key_len) { // Cost penalty means that exact candidates are evaluated // 50 times bigger in frequency. // Note that the cost is calculated by cost = -500 * log(prob) // 1956 = 500 * log(50) constexpr int kNotExactPenalty = 1956; cost += kNotExactPenalty; MOZC_WORD_LOG(result, absl::StrCat("Unigram | Typing correction: ", cost)); } } if (result.types & BIGRAM) { // When user inputs "" and there is an entry // "" in the dictionary, we can suggest // "" as a ZeroQuery suggestion. In this case, // We can't calcurate the transition cost between "" // and "". If we ignore the transition cost, // bigram-based suggestion will be overestimated. // Here we use <API key> as an // transition cost between "" and "". Currently, // the cost is basically the same as the cost between // "," and ",". // TODO(taku): Adjust these parameters. // Seems the bigram is overestimated. constexpr int <API key> = 1347; // Promoting bigram candidates. constexpr int kBigramBonus = 800; // ~= 500*ln(5) cost += (<API key> - kBigramBonus - prev_cost); MOZC_WORD_LOG(result, absl::StrCat("Bigram: ", cost)); } if (result.<API key> & Segment::Candidate::USER_DICTIONARY && result.lid != general_symbol_id_) { // Decrease cost for words from user dictionary in order to promote them, // provided that it is not a general symbol (Note: emoticons are mapped to // general symbol). Currently user dictionary words are evaluated 5 times // bigger in frequency, being capped by 1000 (this number is adhoc, so // feel free to adjust). constexpr int <API key> = 804; // 804 = 500 * log(5) constexpr int <API key> = 1000; cost = std::min(cost - <API key>, <API key>); MOZC_WORD_LOG(result, absl::StrCat("User dictionary: ", cost)); } // Note that the cost is defined as -500 * log(prob). // Even after the ad hoc manipulations, cost must remain larger than 0. result.cost = std::max(1, cost); MOZC_WORD_LOG(result, absl::StrCat("SetLMCost: ", result.cost)); } } // This method should be deprecated, as it is unintentionally adding extra // spatial penalty to the candidate. void DictionaryPredictor::<API key>( const Segments &segments, std::vector<Result> *results) const { if (segments.<API key>() == 0) { return; } // Cost penalty 1151 means that expanded candidates are evaluated // 10 times smaller in frequency. // Note that the cost is calcurated by cost = -500 * log(prob) // 1151 = 500 * log(10) constexpr int <API key> = 1151; const std::string &conversion_key = segments.conversion_segment(0).key(); for (size_t i = 0; i < results->size(); ++i) { Result &result = results->at(i); if (result.types & TYPING_CORRECTION) { continue; } if (!absl::StartsWith(result.key, conversion_key)) { result.cost += <API key>; MOZC_WORD_LOG(result, absl::StrCat("KeyExpansionPenalty: ", result.cost)); } } } size_t DictionaryPredictor::<API key>( const std::string &key, const std::string &value) const { std::string hiragana_value; japanese_util::KatakanaToHiragana(value, &hiragana_value); // value is mixed type. return true if key == request_key. if (Util::GetScriptType(hiragana_value) != Util::HIRAGANA) { return Util::CharsLen(key); } // Find the first position of character where miss spell occurs. int position = 0; ConstChar32Iterator key_iter(key); for (ConstChar32Iterator hiragana_iter(hiragana_value); !hiragana_iter.Done() && !key_iter.Done(); hiragana_iter.Next(), key_iter.Next(), ++position) { if (hiragana_iter.Get() != key_iter.Get()) { return position; } } // not find. return the length of key. while (!key_iter.Done()) { ++position; key_iter.Next(); } return position; } void DictionaryPredictor::<API key>( size_t request_key_len, std::vector<Result> *results) const { DCHECK(results); if (results->size() <= 1) { return; } int <API key> = 5; for (size_t i = 0; i < results->size(); ++i) { const Result &result = (*results)[i]; if (!(result.<API key> & Segment::Candidate::SPELLING_CORRECTION)) { continue; } // Only checks at most 5 spelling corrections to avoid the case // like all candidates have SPELLING_CORRECTION. if (--<API key> == 0) { return; } std::vector<size_t> same_key_index, same_value_index; for (size_t j = 0; j < results->size(); ++j) { if (i == j) { continue; } const Result &target_result = (*results)[j]; if (target_result.<API key> & Segment::Candidate::SPELLING_CORRECTION) { continue; } if (target_result.key == result.key) { same_key_index.push_back(j); } if (target_result.value == result.value) { same_value_index.push_back(j); } } // delete same_key_index and same_value_index if (!same_key_index.empty() && !same_value_index.empty()) { results->at(i).removed = true; MOZC_WORD_LOG(results->at(i), "Removed. same_(key|value)_index."); for (size_t k = 0; k < same_key_index.size(); ++k) { results->at(same_key_index[k]).removed = true; MOZC_WORD_LOG(results->at(i), "Removed. same_(key|value)_index."); } } else if (same_key_index.empty() && !same_value_index.empty()) { results->at(i).removed = true; MOZC_WORD_LOG(results->at(i), "Removed. same_value_index."); } else if (!same_key_index.empty() && same_value_index.empty()) { for (size_t k = 0; k < same_key_index.size(); ++k) { results->at(same_key_index[k]).removed = true; MOZC_WORD_LOG(results->at(i), "Removed. same_key_index."); } if (request_key_len <= <API key>(result.key, result.value)) { results->at(i).removed = true; MOZC_WORD_LOG(results->at(i), "Removed. Invalid MissSpelledPosition."); } } } } bool DictionaryPredictor::<API key>( size_t query_len, size_t key_len, int cost, bool is_suggestion, size_t <API key>) const { // Temporal workaround for fixing the problem where longer sentence-like // suggestions are shown when user input is very short. // If <API key> is small enough, we don't perform // special filtering. e.g., "" has only two candidates, so // showing "" is OK. // Also, if the cost is too small (< 5000), we allow to display // long phrases. Examples include "". if (is_suggestion && <API key> >= 10 && key_len >= 8 && cost >= 5000 && query_len <= static_cast<size_t>(0.4 * key_len)) { return true; } return false; } size_t DictionaryPredictor::<API key>( const ConversionRequest &request, const Segments &segments, bool mixed_conversion) const { const Segments::RequestType request_type = segments.request_type(); DCHECK(request_type == Segments::PREDICTION || request_type == Segments::SUGGESTION || request_type == Segments::PARTIAL_PREDICTION || request_type == Segments::PARTIAL_SUGGESTION); if (segments.<API key>() == 0) { return 0; } const bool is_long_key = <API key>(segments); const size_t max_size = <API key>(request, segments, is_long_key); const size_t default_size = <API key>(is_long_key); size_t size = 0; switch (request_type) { case Segments::PREDICTION: size = mixed_conversion ? max_size : default_size; break; case Segments::SUGGESTION: // Fewer candidatats are needed basically. // But on mixed_conversion mode we should behave like as conversion mode. size = mixed_conversion ? default_size : 1; break; case Segments::PARTIAL_PREDICTION: // This is kind of prediction so richer result than PARTIAL_SUGGESTION // is needed. size = max_size; break; case Segments::PARTIAL_SUGGESTION: // PARTIAL_SUGGESTION works like as conversion mode so returning // some candidates is needed. size = default_size; break; default: size = 0; // Never reach here } return std::min(max_size, size); } bool DictionaryPredictor::<API key>( const ConversionRequest &request, const Segments &segments, std::vector<Result> *results) const { DCHECK_EQ(1, segments.<API key>()); Segments tmp_segments = segments; ConversionRequest tmp_request = request; tmp_request.<API key>(20); tmp_request.<API key>(ConversionRequest::PREDICTION_KEY); // Some rewriters cause significant performance loss. So we skip them. tmp_request.<API key>(true); // This method emulates usual converter's behavior so here disable // partial candidates. tmp_request.<API key>(false); if (!converter_-><API key>(tmp_request, &tmp_segments)) { return false; } results->push_back(Result()); Result *result = &results->back(); result->key = segments.conversion_segment(0).key(); result->lid = tmp_segments.conversion_segment(0).candidate(0).lid; result->rid = tmp_segments .conversion_segment(tmp_segments.<API key>() - 1) .candidate(0) .rid; result-><API key>(REALTIME | REALTIME_TOP, Token::NONE); result-><API key> |= Segment::Candidate::<API key>; // Concatenate the top candidates. // Note that since <API key>() runs in conversion mode, the // resulting |tmp_segments| doesn't have <API key>. We need to // construct it manually here. // TODO(noriyukit): This is code duplicate in converter/nbest_generator.cc and // we should refactor code after finding more good design. bool <API key> = true; for (size_t i = 0; i < tmp_segments.<API key>(); ++i) { const Segment &segment = tmp_segments.conversion_segment(i); const Segment::Candidate &candidate = segment.candidate(0); result->value.append(candidate.value); result->wcost += candidate.cost; uint32_t encoded_lengths; if (<API key> && Segment::Candidate::EncodeLengths( candidate.key.size(), candidate.value.size(), candidate.content_key.size(), candidate.content_value.size(), &encoded_lengths)) { result-><API key>.push_back(encoded_lengths); } else { <API key> = false; } } if (!<API key>) { LOG(WARNING) << "Failed to construct inner segment boundary"; result-><API key>.clear(); } return true; } void DictionaryPredictor::<API key>( const ConversionRequest &request, size_t <API key>, Segments *segments, std::vector<Result> *results) const { DCHECK(converter_); DCHECK(<API key>); DCHECK(segments); DCHECK(results); // TODO(noriyukit): Currently, |segments| is abused as a temporary output from // the immutable converter. Therefore, the first segment needs to be mutable. // Fix this bad abuse. Segment *segment = segments-><API key>(0); DCHECK(!segment->key().empty()); // First insert a top conversion result. if (request.<API key>()) { if (!<API key>(request, *segments, results)) { LOG(WARNING) << "Realtime conversion with converter failed"; } } if (<API key> == 0) { return; } // In what follows, add results from immutable converter. // TODO(noriyukit): The |<API key>| used below can be replaced by // |converter_| in principle. There's a problem of ranking when we get // multiple segments, i.e., how to concatenate candidates in each segment. // Currently, immutable converter handles such ranking in prediction mode to // generate single segment results. So we want to share that code. // Preserve the current candidates_size to restore segments at the end of this // method. const size_t <API key> = segment->candidates_size(); const ConversionRequest <API key> = <API key>( request, <API key>, <API key>); if (!<API key>->ConvertForRequest(<API key>, segments) || <API key> >= segment->candidates_size()) { LOG(WARNING) << "Convert failed"; return; } // A little tricky treatment: // Since ImmutableConverter::Convert creates a set of new candidates, // copy them into the array of Results. for (size_t i = <API key>; i < segment->candidates_size(); ++i) { const Segment::Candidate &candidate = segment->candidate(i); results->push_back(Result()); Result *result = &results->back(); result->key = candidate.key; result->value = candidate.value; result->wcost = candidate.wcost; result->lid = candidate.lid; result->rid = candidate.rid; result-><API key> = candidate.<API key>; result-><API key>(REALTIME, Token::NONE); result-><API key> |= candidate.attributes; result->consumed_key_size = candidate.consumed_key_size; } segment->erase_candidates(<API key>, segment->candidates_size() - <API key>); } size_t DictionaryPredictor::<API key>( const Segments &segments) const { DCHECK(segments.request_type() == Segments::PREDICTION || segments.request_type() == Segments::SUGGESTION); if (segments.request_type() == Segments::PREDICTION) { // If PREDICTION, many candidates are needed than SUGGESTION. return <API key>; } return <API key>; } DictionaryPredictor::PredictionType DictionaryPredictor::<API key>( const ConversionRequest &request, const Segments &segments, std::vector<Result> *results) const { DCHECK(results); DCHECK(dictionary_); DCHECK(segments.request_type() == Segments::PREDICTION || segments.request_type() == Segments::SUGGESTION); const size_t cutoff_threshold = <API key>(segments); const size_t prev_results_size = results->size(); <API key>(*dictionary_, "", request, segments, UNIGRAM, cutoff_threshold, Segment::Candidate::SOURCE_INFO_NONE, unknown_id_, results); const size_t <API key> = results->size() - prev_results_size; // If size reaches max_results_size (== cutoff_threshold). // we don't show the candidates, since disambiguation from // 256 candidates is hard. (It may exceed max_results_size, because this is // just a limit for each backend, so total number may be larger) if (<API key> >= cutoff_threshold) { results->resize(prev_results_size); } return UNIGRAM; } DictionaryPredictor::PredictionType DictionaryPredictor::<API key>( const ConversionRequest &request, const Segments &segments, std::vector<Result> *results) const { DCHECK(segments.request_type() == Segments::PREDICTION || segments.request_type() == Segments::SUGGESTION); <API key>(*dictionary_, request, segments, unknown_id_, results); return UNIGRAM; } void DictionaryPredictor::<API key>( const dictionary::DictionaryInterface &dictionary, const ConversionRequest &request, const Segments &segments, int unknown_id, std::vector<Result> *results) { const size_t cutoff_threshold = <API key>; std::vector<Result> raw_result; // No history key <API key>(dictionary, "", request, segments, UNIGRAM, cutoff_threshold, Segment::Candidate::SOURCE_INFO_NONE, unknown_id, &raw_result); // Hereafter, we split "Needed Results" and "(maybe) Unneeded Results." // The algorithm is: // 1) Take the Result with minimum cost. // 2) Remove results which is "redundant" (defined by MaybeRedundant), // from remaining results. // 3) Repeat 1) and 2) five times. // Note: to reduce the number of memory allocation, we swap out the // "redundant" results to the end of the |results| vector. constexpr size_t kDeleteTrialNum = 5; // min_iter is the beginning of the remaining results (inclusive), and // max_iter is the end of the remaining results (exclusive). typedef std::vector<Result>::iterator Iter; Iter min_iter = raw_result.begin(); Iter max_iter = raw_result.end(); for (size_t i = 0; i < kDeleteTrialNum; ++i) { if (min_iter == max_iter) { break; } // Find the Result with minimum cost. Swap it with the beginning element. std::iter_swap(min_iter, std::min_element(min_iter, max_iter, ResultWCostLess())); const Result &reference_result = *min_iter; // Preserve the reference result. ++min_iter; // Traverse all remaining elements and check if each result is redundant. for (Iter iter = min_iter; iter != max_iter;) { // - We do not filter user dictionary word. const bool <API key> = !iter-><API key>(); if (<API key> && MaybeRedundant(reference_result.value, iter->value)) { // Swap out the redundant result. --max_iter; std::iter_swap(iter, max_iter); } else { ++iter; } } } // Then the |raw_result| contains; // [begin, min_iter): reference results in the above loop. // [max_iter, end): (maybe) redundant results. // [min_iter, max_iter): remaining results. // Here, we revive the redundant results up to five in the result cost order. constexpr size_t kDoNotDeleteNum = 5; if (std::distance(max_iter, raw_result.end()) >= kDoNotDeleteNum) { std::partial_sort(max_iter, max_iter + kDoNotDeleteNum, raw_result.end(), ResultWCostLess()); max_iter += kDoNotDeleteNum; } else { max_iter = raw_result.end(); } // Finally output the result. results->insert(results->end(), raw_result.begin(), max_iter); } void DictionaryPredictor::<API key>( const ConversionRequest &request, const Segments &segments, Segment::Candidate::SourceInfo source_info, std::vector<Result> *results) const { DCHECK(results); DCHECK(dictionary_); // TODO(toshiyuki): Support suggestion from the last 2 histories. std::string history_key, history_value; if (!<API key>(segments, &history_key, &history_value)) { return; } <API key>(history_key, history_value, request, segments, source_info, results); } void DictionaryPredictor::<API key>( const std::string &history_key, const std::string &history_value, const ConversionRequest &request, const Segments &segments, Segment::Candidate::SourceInfo source_info, std::vector<Result> *results) const { // Check that history_key/history_value are in the dictionary. FindValueCallback <API key>(history_value); dictionary_->LookupPrefix(history_key, request, &<API key>); // History value is not found in the dictionary. // User may create this the history candidate from T13N or segment // expand/shrinkg operations. if (!<API key>.found()) { return; } const size_t cutoff_threshold = <API key>(segments); const size_t prev_results_size = results->size(); <API key>(*dictionary_, history_key, history_value, request, segments, BIGRAM, cutoff_threshold, source_info, unknown_id_, results); const size_t bigram_results_size = results->size() - prev_results_size; // if size reaches max_results_size, // we don't show the candidates, since disambiguation from // 256 candidates is hard. (It may exceed max_results_size, because this is // just a limit for each backend, so total number may be larger) if (bigram_results_size >= cutoff_threshold) { results->resize(prev_results_size); return; } // Obtain the character type of the last history value. const size_t history_value_size = Util::CharsLen(history_value); if (history_value_size == 0) { return; } const Util::ScriptType history_ctype = Util::GetScriptType(history_value); const Util::ScriptType last_history_ctype = Util::GetScriptType( Util::Utf8SubString(history_value, history_value_size - 1, 1)); for (size_t i = prev_results_size; i < results->size(); ++i) { CheckBigramResult(<API key>.token(), history_ctype, last_history_ctype, request, &(*results)[i]); } } // Filter out irrelevant bigrams. For example, we don't want to // suggest "" from the history "". void DictionaryPredictor::CheckBigramResult( const Token &history_token, const Util::ScriptType history_ctype, const Util::ScriptType last_history_ctype, const ConversionRequest &request, Result *result) const { DCHECK(result); const std::string &history_key = history_token.key; const std::string &history_value = history_token.value; const std::string key(result->key, history_key.size(), result->key.size() - history_key.size()); const std::string value(result->value, history_value.size(), result->value.size() - history_value.size()); // Don't suggest 0-length key/value. if (key.empty() || value.empty()) { result->removed = true; MOZC_WORD_LOG(*result, "Removed. key, value or both are empty."); return; } const Util::ScriptType ctype = Util::GetScriptType(Util::Utf8SubString(value, 0, 1)); if (history_ctype == Util::KANJI && ctype == Util::KATAKANA) { // Do not filter "" MOZC_WORD_LOG(*result, "Valid bigram. Kanji + Katakana pattern."); return; } // If freq("") < freq(""), we don't // need to suggest it. As "" should already be // suggested when user type "". // Note that wcost = -500 * log(prob). if (ctype != Util::KANJI && history_token.cost > result->wcost) { result->removed = true; MOZC_WORD_LOG(*result, "Removed. The prefix's score is lower than the whole."); return; } // If character type doesn't change, this boundary might NOT // be a word boundary. Only use iif the entire key is reasonably long. const size_t key_len = Util::CharsLen(result->key); if (ctype == last_history_ctype && ((ctype == Util::HIRAGANA && key_len <= 9) || (ctype == Util::KATAKANA && key_len <= 5))) { result->removed = true; MOZC_WORD_LOG(*result, "Removed. Short Hiragana (<= 9) or Katakana (<= 5)"); return; } // The suggested key/value pair must exist in the dictionary. // For example, we don't want to suggest "" from // the history "". // If character type is Kanji and the suggestion is not a // <API key>, we relax this condition, as there are // many Kanji-compounds which may not in the dictionary. For example, // we want to suggest "" from the history "". if (ctype == Util::KANJI && Util::CharsLen(value) >= 2) { // Do not filter this. // TODO(toshiyuki): one-length kanji prediciton may be annoying other than // some exceptions, "", "", etc MOZC_WORD_LOG(*result, "Valid bigram. Kanji suffix (>= 2)."); return; } // Check if the word is in the dictionary or not. // For Hiragana words, check if that word is in a key of values. // This is for a situation that // is not in the dictionary, but // is in the dictionary. if (ctype == Util::HIRAGANA) { if (!dictionary_->HasKey(key)) { result->removed = true; MOZC_WORD_LOG(*result, "Removed. No keys are found."); return; } } else { FindValueCallback callback(value); dictionary_->LookupPrefix(key, request, &callback); if (!callback.found()) { result->removed = true; MOZC_WORD_LOG(*result, "Removed. No prefix found."); return; } } MOZC_WORD_LOG(*result, "Valid bigram."); } void DictionaryPredictor::<API key>( const DictionaryInterface &dictionary, const std::string &history_key, const ConversionRequest &request, const Segments &segments, PredictionTypes types, size_t lookup_limit, Segment::Candidate::SourceInfo source_info, int unknown_id_, std::vector<Result> *results) { if (!request.has_composer()) { std::string input_key = history_key; input_key.append(segments.conversion_segment(0).key()); <API key> callback(types, lookup_limit, input_key.size(), nullptr, source_info, unknown_id_, "", <API key>(request), results); dictionary.LookupPredictive(input_key, request, &callback); return; } // If we have ambiguity for the input, get expanded key. // Example1 roman input: for "k", we will get |base|, "" and |expanded|, // "", "", etc // Example2 kana input: for "", we will get |base|, "" and |expanded|, // "", and "". std::string base; std::set<std::string> expanded; request.composer().<API key>(&base, &expanded); std::string input_key; if (expanded.empty()) { input_key.assign(history_key).append(base); <API key> callback(types, lookup_limit, input_key.size(), nullptr, source_info, unknown_id_, "", <API key>(request), results); dictionary.LookupPredictive(input_key, request, &callback); return; } // `<API key>` keeps the original key request before // key expansions. This key is passed to the callback so that it can // identify whether the key is actually expanded or not. const std::string <API key> = <API key>(request) ? history_key + segments.conversion_segment(0).key() : ""; // |expanded| is a very small set, so calling LookupPredictive multiple // times is not so expensive. Also, the number of lookup results is limited // by |lookup_limit|. for (const std::string &expanded_char : expanded) { input_key.assign(history_key).append(base).append(expanded_char); <API key> callback(types, lookup_limit, input_key.size(), nullptr, source_info, unknown_id_, <API key>, <API key>(request), results); dictionary.LookupPredictive(input_key, request, &callback); } } void DictionaryPredictor::<API key>( const DictionaryInterface &dictionary, const std::string &history_key, const std::string &history_value, const ConversionRequest &request, const Segments &segments, PredictionTypes types, size_t lookup_limit, Segment::Candidate::SourceInfo source_info, int unknown_id_, std::vector<Result> *results) const { if (!request.has_composer()) { std::string input_key = history_key; input_key.append(segments.conversion_segment(0).key()); <API key> callback( types, lookup_limit, input_key.size(), nullptr, history_value, source_info, unknown_id_, "", <API key>(request), results); dictionary.LookupPredictive(input_key, request, &callback); return; } // If we have ambiguity for the input, get expanded key. // Example1 roman input: for "k", we will get |base|, "" and |expanded|, // "", "", etc // Example2 kana input: for "", we will get |base|, "" and |expanded|, // "", and "". std::string base; std::set<std::string> expanded; request.composer().<API key>(&base, &expanded); const std::string input_key = history_key + base; const std::string <API key> = <API key>(request) ? history_key + segments.conversion_segment(0).key() : ""; <API key> callback( types, lookup_limit, input_key.size(), expanded.empty() ? nullptr : &expanded, history_value, source_info, unknown_id_, <API key>, <API key>(request), results); dictionary.LookupPredictive(input_key, request, &callback); } void DictionaryPredictor::<API key>( const DictionaryInterface &dictionary, const ConversionRequest &request, const std::string &input_key, PredictionTypes types, size_t lookup_limit, std::vector<Result> *results) const { const size_t prev_results_size = results->size(); if (Util::IsUpperAscii(input_key)) { // For upper case key, look up its lower case version and then transform // the results to upper case. std::string key(input_key); Util::LowerString(&key); <API key> callback(types, lookup_limit, key.size(), nullptr, Segment::Candidate::SOURCE_INFO_NONE, unknown_id_, "", <API key>(request), results); dictionary.LookupPredictive(key, request, &callback); for (size_t i = prev_results_size; i < results->size(); ++i) { Util::UpperString(&(*results)[i].value); } } else if (Util::IsCapitalizedAscii(input_key)) { // For capitalized key, look up its lower case version and then transform // the results to capital. std::string key(input_key); Util::LowerString(&key); <API key> callback(types, lookup_limit, key.size(), nullptr, Segment::Candidate::SOURCE_INFO_NONE, unknown_id_, "", <API key>(request), results); dictionary.LookupPredictive(key, request, &callback); for (size_t i = prev_results_size; i < results->size(); ++i) { Util::CapitalizeString(&(*results)[i].value); } } else { // For other cases (lower and as-is), just look up directly. <API key> callback( types, lookup_limit, input_key.size(), nullptr, Segment::Candidate::SOURCE_INFO_NONE, unknown_id_, "", <API key>(request), results); dictionary.LookupPredictive(input_key, request, &callback); } // If input mode is FULL_ASCII, then convert the results to full-width. if (request.has_composer() && request.composer().GetInputMode() == transliteration::FULL_ASCII) { std::string tmp; for (size_t i = prev_results_size; i < results->size(); ++i) { tmp.assign((*results)[i].value); japanese_util::<API key>(tmp, &(*results)[i].value); } } } void DictionaryPredictor::<API key>( const DictionaryInterface &dictionary, const std::string &history_key, const ConversionRequest &request, const Segments &segments, PredictionTypes types, size_t lookup_limit, std::vector<Result> *results) const { if (!request.has_composer()) { return; } std::vector<composer::TypeCorrectedQuery> queries; request.composer().<API key>(&queries); for (size_t query_index = 0; query_index < queries.size(); ++query_index) { const composer::TypeCorrectedQuery &query = queries[query_index]; const std::string input_key = history_key + query.base; const size_t <API key> = results->size(); <API key> callback( types, lookup_limit, input_key.size(), query.expanded.empty() ? nullptr : &query.expanded, Segment::Candidate::SOURCE_INFO_NONE, unknown_id_, "", <API key>(request), results); dictionary.LookupPredictive(input_key, request, &callback); for (size_t i = <API key>; i < results->size(); ++i) { (*results)[i].wcost += query.cost; } lookup_limit -= results->size() - <API key>; if (lookup_limit <= 0) { break; } } } // static bool DictionaryPredictor::<API key>( const ConversionRequest &request, const std::string &key, const ZeroQueryDict &dict, std::vector<ZeroQueryResult> *results) { const int32_t <API key> = request.request().<API key>(); DCHECK(results); results->clear(); auto range = dict.equal_range(key); if (range.first == range.second) { return false; } for (; range.first != range.second; ++range.first) { const auto &entry = range.first; if (entry.type() != ZERO_QUERY_EMOJI) { results->push_back( std::make_pair(std::string(entry.value()), entry.type())); continue; } if (<API key> & Request::UNICODE_EMOJI && entry.emoji_type() & EMOJI_UNICODE) { results->push_back( std::make_pair(std::string(entry.value()), entry.type())); continue; } if ((<API key> & Request::DOCOMO_EMOJI && entry.emoji_type() & EMOJI_DOCOMO) || (<API key> & Request::SOFTBANK_EMOJI && entry.emoji_type() & EMOJI_SOFTBANK) || (<API key> & Request::KDDI_EMOJI && entry.emoji_type() & EMOJI_KDDI)) { std::string android_pua; Util::Ucs4ToUtf8(entry.emoji_android_pua(), &android_pua); results->push_back(std::make_pair(android_pua, entry.type())); } } return !results->empty(); } // static void DictionaryPredictor::<API key>( const std::vector<ZeroQueryResult> &candidates, uint16_t lid, uint16_t rid, std::vector<Result> *results) { int cost = 0; for (size_t i = 0; i < candidates.size(); ++i) { // Increment cost to show the candidates in order. constexpr int kSuffixPenalty = 10; results->push_back(Result()); Result *result = &results->back(); result-><API key>(SUFFIX, Token::NONE); result-><API key>(candidates[i].second); result->key = candidates[i].first; result->value = candidates[i].first; result->wcost = cost; result->lid = lid; result->rid = rid; cost += kSuffixPenalty; } } // Returns true if we add zero query result. bool DictionaryPredictor::<API key>( const ConversionRequest &request, const Segments &segments, std::vector<Result> *results) const { std::string number_key; if (!GetNumberHistory(segments, &number_key)) { return false; } std::vector<ZeroQueryResult> <API key>; <API key>(request, number_key, <API key>, &<API key>); std::vector<ZeroQueryResult> <API key>; <API key>(request, "default", <API key>, &<API key>); DCHECK(!<API key>.empty()); <API key>(<API key>, <API key>, <API key>, results); <API key>(<API key>, <API key>, <API key>, results); return true; } // Returns true if we add zero query result. bool DictionaryPredictor::<API key>( const ConversionRequest &request, const Segments &segments, std::vector<Result> *results) const { const size_t history_size = segments.<API key>(); if (history_size <= 0) { return false; } const Segment &last_segment = segments.history_segment(history_size - 1); DCHECK_GT(last_segment.candidates_size(), 0); const std::string &history_value = last_segment.candidate(0).value; std::vector<ZeroQueryResult> candidates; if (!<API key>(request, history_value, zero_query_dict_, &candidates)) { return false; } const uint16_t kId = 0; // EOS <API key>(candidates, kId, kId, results); return true; } void DictionaryPredictor::<API key>( const ConversionRequest &request, const Segments &segments, std::vector<Result> *results) const { DCHECK_GT(segments.<API key>(), 0); DCHECK(!segments.conversion_segment(0).key().empty()); // Not zero query // Uses larger cutoff (<API key>) in order to consider // all suffix entries. const size_t cutoff_threshold = <API key>; const std::string kEmptyHistoryKey = ""; <API key>(*suffix_dictionary_, kEmptyHistoryKey, request, segments, SUFFIX, cutoff_threshold, Segment::Candidate::SOURCE_INFO_NONE, unknown_id_, results); } void DictionaryPredictor::<API key>( const ConversionRequest &request, const Segments &segments, std::vector<Result> *results) const { DCHECK_GT(segments.<API key>(), 0); DCHECK(segments.conversion_segment(0).key().empty()); if (<API key>(request, segments, results)) { return; } <API key>(request, segments, results); if (IsLatinInputMode(request)) { // We do not want zero query results from suffix dictionary for Latin // input mode. For example, we do not need "", "" just after "when". return; } // Uses larger cutoff (<API key>) in order to consider // all suffix entries. const size_t cutoff_threshold = <API key>; const std::string kEmptyHistoryKey = ""; <API key>( *suffix_dictionary_, kEmptyHistoryKey, request, segments, SUFFIX, cutoff_threshold, Segment::Candidate::<API key>, unknown_id_, results); } void DictionaryPredictor::<API key>( const ConversionRequest &request, const Segments &segments, std::vector<Result> *results) const { DCHECK(results); DCHECK(dictionary_); const size_t cutoff_threshold = <API key>(segments); const size_t prev_results_size = results->size(); const std::string &input_key = segments.conversion_segment(0).key(); <API key>(*dictionary_, request, input_key, ENGLISH, cutoff_threshold, results); size_t <API key> = results->size() - prev_results_size; if (<API key> >= cutoff_threshold) { results->resize(prev_results_size); return; } } void DictionaryPredictor::<API key>( const ConversionRequest &request, const Segments &segments, std::vector<Result> *results) const { DCHECK(results); DCHECK(dictionary_); if (!request.has_composer()) { return; } const size_t cutoff_threshold = <API key>(segments); const size_t prev_results_size = results->size(); std::string input_key; request.composer().GetRawString(&input_key); <API key>(*dictionary_, request, input_key, ENGLISH, cutoff_threshold, results); size_t <API key> = results->size() - prev_results_size; if (<API key> >= cutoff_threshold) { results->resize(prev_results_size); return; } } void DictionaryPredictor::<API key>( const ConversionRequest &request, const Segments &segments, std::vector<Result> *results) const { DCHECK(results); DCHECK(dictionary_); const size_t prev_results_size = results->size(); if (prev_results_size > 10000) { return; } const size_t cutoff_threshold = <API key>(segments); // Currently, history key is never utilized. const std::string kEmptyHistoryKey = ""; <API key>( *dictionary_, kEmptyHistoryKey, request, segments, TYPING_CORRECTION, cutoff_threshold, results); if (results->size() - prev_results_size >= cutoff_threshold) { results->resize(prev_results_size); return; } } bool DictionaryPredictor::<API key>( const ConversionRequest &request, const Segments &segments) { constexpr size_t kMaxRealtimeKeySize = 300; // 300 bytes in UTF8 const std::string &key = segments.conversion_segment(0).key(); if (key.empty() || key.size() >= kMaxRealtimeKeySize) { // 1) If key is empty, realtime conversion doesn't work. // 2) If the key is too long, we'll hit a performance issue. return false; } return (segments.request_type() == Segments::PARTIAL_SUGGESTION || request.config().<API key>() || <API key>(request.request())); } bool DictionaryPredictor::IsZipCodeRequest(const std::string &key) { if (key.empty()) { return false; } for (ConstChar32Iterator iter(key); !iter.Done(); iter.Next()) { const char32 c = iter.Get(); if (!('0' <= c && c <= '9') && (c != '-')) { return false; } } return true; } } // namespace mozc #undef <API key> #undef MOZC_WORD_LOG
// The LLVM Compiler Infrastructure // This file is distributed under the University of Illinois Open Source #ifndef <API key> #define <API key> #include "lldb/Host/posix/HostThreadPosix.h" namespace lldb_private { class HostThreadMacOSX : public HostThreadPosix { friend class ThreadLauncher; public: HostThreadMacOSX(); HostThreadMacOSX(lldb::thread_t thread); protected: static lldb::thread_result_t <API key>(lldb::thread_arg_t arg); }; } #endif
'use strict'; angular.module('shopnxApp') .config(function ($stateProvider) { $stateProvider .state('checkout', { title: 'Checkout with the items you selected', url: '/checkout', templateUrl: 'app/checkout/checkout.html', controller: 'CheckoutCtrl', authenticate: true }); });
package org.hisp.dhis.email; /** * @author Zubair <rajazubair.asghar@gmail.com> */ public enum EmailResponse { SENT( "success" ), FAILED( "failed" ), ABORTED( "aborted" ), NOT_CONFIGURED( "no configuration found" ); private String responseMessage; EmailResponse( String responseMessage ) { this.responseMessage = responseMessage; } public String getResponseMessage() { return responseMessage; } public void setResponseMessage( String responseMessage ) { this.responseMessage = responseMessage; } }
package cromwell.core.callcaching import org.scalatest.{FlatSpec, Matchers} class HashKeySpec extends FlatSpec with Matchers { "HashKey" should "produce consistent key value" in { val keys = Set( HashKey("command template"), HashKey("backend name"), HashKey("input count"), HashKey("output count"), HashKey("runtime attribute", "failOnStderr"), HashKey(checkForHitOrMiss = false, "runtime attribute", "cpu"), HashKey("runtime attribute", "<API key>"), HashKey("input", "String stringInput"), HashKey("output", "String myOutput"), HashKey("runtime attribute", "docker") ) keys map { _.key } should contain theSameElementsAs Set( "command template", "backend name", "input count", "output count", "runtime attribute: failOnStderr", "runtime attribute: cpu", "runtime attribute: <API key>", "input: String stringInput", "output: String myOutput", "runtime attribute: docker" ) } }
package au.edu.uts.eng.remotelabs.schedserver.reports.intf.types; import java.io.Serializable; import java.util.ArrayList; import java.util.Calendar; import javax.xml.namespace.QName; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import javax.xml.stream.XMLStreamWriter; import org.apache.axiom.om.OMConstants; import org.apache.axiom.om.OMDataSource; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.OMFactory; import org.apache.axiom.om.impl.llom.<API key>; import org.apache.axis2.databinding.ADBBean; import org.apache.axis2.databinding.ADBDataSource; import org.apache.axis2.databinding.ADBException; import org.apache.axis2.databinding.utils.BeanUtil; import org.apache.axis2.databinding.utils.ConverterUtil; import org.apache.axis2.databinding.utils.reader.<API key>; import org.apache.axis2.databinding.utils.writer.<API key>; /** * <API key> bean class. */ public class <API key> implements ADBBean { private static final long serialVersionUID = -<API key>; private static String generatePrefix(final String namespace) { if (namespace.equals("http://remotelabs.eng.uts.edu.au/schedserver/reports")) { return "ns1"; } return BeanUtil.getUniquePrefix(); } protected RequestorType requestor; public RequestorType getRequestor() { return this.requestor; } public void setRequestor(final RequestorType param) { this.requestor = param; } protected QueryFilterType querySelect; public QueryFilterType getQuerySelect() { return this.querySelect; } public void setQuerySelect(final QueryFilterType param) { this.querySelect = param; } protected QueryFilterType queryConstraints; protected boolean <API key> = false; public QueryFilterType getQueryConstraints() { return this.queryConstraints; } public void setQueryConstraints(final QueryFilterType param) { this.queryConstraints = param; this.<API key> = param != null; } protected Calendar startTime; protected boolean startTimeTracker = false; public Calendar getStartTime() { return this.startTime; } public void setStartTime(final Calendar param) { this.startTime = param; this.startTimeTracker = param != null; } protected Calendar endTime; protected boolean endTimeTracker = false; public Calendar getEndTime() { return this.endTime; } public void setEndTime(final Calendar param) { this.endTime = param; this.endTimeTracker = param != null; } protected PaginationType pagination; protected boolean paginationTracker = false; public PaginationType getPagination() { return this.pagination; } public void setPagination(final PaginationType param) { this.pagination = param; this.paginationTracker = param != null; } public static boolean isReaderMTOMAware(final XMLStreamReader reader) { boolean isReaderMTOMAware = false; try { isReaderMTOMAware = Boolean.TRUE.equals(reader.getProperty(OMConstants.<API key>)); } catch (final <API key> e) { isReaderMTOMAware = false; } return isReaderMTOMAware; } public OMElement getOMElement(final QName parentQName, final OMFactory factory) throws ADBException { final OMDataSource dataSource = new ADBDataSource(this, parentQName) { @Override public void serialize(final <API key> xmlWriter) throws XMLStreamException { <API key>.this.serialize(this.parentQName, factory, xmlWriter); } }; return new <API key>(parentQName, factory, dataSource); } @Override public void serialize(final QName parentQName, final OMFactory factory, final <API key> xmlWriter) throws XMLStreamException, ADBException { this.serialize(parentQName, factory, xmlWriter, false); } @Override public void serialize(final QName parentQName, final OMFactory factory, final <API key> xmlWriter, final boolean serializeType) throws XMLStreamException, ADBException { String prefix = parentQName.getPrefix(); String namespace = parentQName.getNamespaceURI(); if ((namespace != null) && (namespace.trim().length() > 0)) { final String writerPrefix = xmlWriter.getPrefix(namespace); if (writerPrefix != null) { xmlWriter.writeStartElement(namespace, parentQName.getLocalPart()); } else { if (prefix == null) { prefix = <API key>.generatePrefix(namespace); } xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } } else { xmlWriter.writeStartElement(parentQName.getLocalPart()); } if (serializeType) { final String namespacePrefix = this.registerPrefix(xmlWriter, "http://remotelabs.eng.uts.edu.au/schedserver/reports"); if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { this.writeAttribute("xsi", "http: + ":<API key>", xmlWriter); } else { this.writeAttribute("xsi", "http: "<API key>", xmlWriter); } } if (this.requestor == null) { throw new ADBException("requestor cannot be null!!"); } this.requestor.serialize(new QName("", "requestor"), factory, xmlWriter); if (this.querySelect == null) { throw new ADBException("querySelect cannot be null!!"); } this.querySelect.serialize(new QName("", "querySelect"), factory, xmlWriter); if (this.<API key>) { if (this.queryConstraints == null) { throw new ADBException("queryConstraints cannot be null!!"); } this.queryConstraints.serialize(new QName("", "queryConstraints"), factory, xmlWriter); } if (this.startTimeTracker) { namespace = ""; if (!namespace.equals("")) { prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = <API key>.generatePrefix(namespace); xmlWriter.writeStartElement(prefix, "startTime", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "startTime"); } } else { xmlWriter.writeStartElement("startTime"); } if (this.startTime == null) { throw new ADBException("startTime cannot be null!!"); } else { xmlWriter.writeCharacters(ConverterUtil.convertToString(this.startTime)); } xmlWriter.writeEndElement(); } if (this.endTimeTracker) { namespace = ""; if (!namespace.equals("")) { prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = <API key>.generatePrefix(namespace); xmlWriter.writeStartElement(prefix, "endTime", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "endTime"); } } else { xmlWriter.writeStartElement("endTime"); } if (this.endTime == null) { throw new ADBException("endTime cannot be null!!"); } else { xmlWriter.writeCharacters(ConverterUtil.convertToString(this.endTime)); } xmlWriter.writeEndElement(); } if (this.paginationTracker) { if (this.pagination == null) { throw new ADBException("pagination cannot be null!!"); } this.pagination.serialize(new QName("", "pagination"), factory, xmlWriter); } xmlWriter.writeEndElement(); } private void writeAttribute(final String prefix, final String namespace, final String attName, final String attValue, final XMLStreamWriter xmlWriter) throws XMLStreamException { if (xmlWriter.getPrefix(namespace) == null) { xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } xmlWriter.writeAttribute(namespace, attName, attValue); } private String registerPrefix(final XMLStreamWriter xmlWriter, final String namespace) throws XMLStreamException { String prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = <API key>.generatePrefix(namespace); while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) { prefix = BeanUtil.getUniquePrefix(); } xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } return prefix; } @Override public XMLStreamReader getPullParser(final QName qName) throws ADBException { final ArrayList<Serializable> elementList = new ArrayList<Serializable>(); elementList.add(new QName("", "requestor")); if (this.requestor == null) { throw new ADBException("requestor cannot be null!!"); } elementList.add(this.requestor); elementList.add(new QName("", "querySelect")); if (this.querySelect == null) { throw new ADBException("querySelect cannot be null!!"); } elementList.add(this.querySelect); if (this.<API key>) { elementList.add(new QName("", "queryConstraints")); if (this.queryConstraints == null) { throw new ADBException("queryConstraints cannot be null!!"); } elementList.add(this.queryConstraints); } if (this.startTimeTracker) { elementList.add(new QName("", "startTime")); if (this.startTime != null) { elementList.add(ConverterUtil.convertToString(this.startTime)); } else { throw new ADBException("startTime cannot be null!!"); } } if (this.endTimeTracker) { elementList.add(new QName("", "endTime")); if (this.endTime != null) { elementList.add(ConverterUtil.convertToString(this.endTime)); } else { throw new ADBException("endTime cannot be null!!"); } } if (this.paginationTracker) { elementList.add(new QName("", "pagination")); if (this.pagination == null) { throw new ADBException("pagination cannot be null!!"); } elementList.add(this.pagination); } return new <API key>(qName, elementList.toArray(), new Object[0]); } public static class Factory { public static <API key> parse(final XMLStreamReader reader) throws Exception { final <API key> object = new <API key>(); try { while (!reader.isStartElement() && !reader.isEndElement()) { reader.next(); } if (reader.getAttributeValue("http: { final String fullTypeName = reader.getAttributeValue("http: "type"); if (fullTypeName != null) { String nsPrefix = null; if (fullTypeName.indexOf(":") > -1) { nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); } nsPrefix = nsPrefix == null ? "" : nsPrefix; final String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); if (!"<API key>".equals(type)) { final String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); return (<API key>) ExtensionMapper.getTypeObject(nsUri, type, reader); } } } reader.next(); while (!reader.isStartElement() && !reader.isEndElement()) { reader.next(); } if (reader.isStartElement() && new QName("", "requestor").equals(reader.getName())) { object.setRequestor(RequestorType.Factory.parse(reader)); reader.next(); } else { throw new ADBException("Unexpected subelement " + reader.getLocalName()); } while (!reader.isStartElement() && !reader.isEndElement()) { reader.next(); } if (reader.isStartElement() && new QName("", "querySelect").equals(reader.getName())) { object.setQuerySelect(QueryFilterType.Factory.parse(reader)); reader.next(); } else { throw new ADBException("Unexpected subelement " + reader.getLocalName()); } while (!reader.isStartElement() && !reader.isEndElement()) { reader.next(); } if (reader.isStartElement() && new QName("", "queryConstraints").equals(reader.getName())) { object.setQueryConstraints(QueryFilterType.Factory.parse(reader)); reader.next(); } while (!reader.isStartElement() && !reader.isEndElement()) { reader.next(); } if (reader.isStartElement() && new QName("", "startTime").equals(reader.getName())) { final String content = reader.getElementText(); object.setStartTime(ConverterUtil.convertToDateTime(content)); reader.next(); } while (!reader.isStartElement() && !reader.isEndElement()) { reader.next(); } if (reader.isStartElement() && new QName("", "endTime").equals(reader.getName())) { final String content = reader.getElementText(); object.setEndTime(ConverterUtil.convertToDateTime(content)); reader.next(); } while (!reader.isStartElement() && !reader.isEndElement()) { reader.next(); } if (reader.isStartElement() && new QName("", "pagination").equals(reader.getName())) { object.setPagination(PaginationType.Factory.parse(reader)); reader.next(); } while (!reader.isStartElement() && !reader.isEndElement()) { reader.next(); } if (reader.isStartElement()) { throw new ADBException("Unexpected subelement " + reader.getLocalName()); } } catch (final XMLStreamException e) { throw new Exception(e); } return object; } } }
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1-b02-fcs // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2010.03.22 at 11:40:59 AM GMT package uk.gov.nationalarchives.droid.report.planets.domain; import java.math.BigDecimal; import java.math.BigInteger; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.datatype.<API key>; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "YearItemType", propOrder = { "year", "numFiles", "totalFileSize" }) @Deprecated public class YearItemType { @XmlElement(required = true) @XmlSchemaType(name = "gYear") protected <API key> year; @XmlElement(required = true) protected BigInteger numFiles; @XmlElement(required = true) protected BigDecimal totalFileSize; /** * Gets the value of the year property. * * @return * possible object is * {@link <API key> } * */ public <API key> getYear() { return year; } /** * Sets the value of the year property. * * @param value * allowed object is * {@link <API key> } * */ public void setYear(<API key> value) { this.year = value; } /** * Gets the value of the numFiles property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getNumFiles() { return numFiles; } /** * Sets the value of the numFiles property. * * @param value * allowed object is * {@link BigInteger } * */ public void setNumFiles(BigInteger value) { this.numFiles = value; } /** * Gets the value of the totalFileSize property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getTotalFileSize() { return totalFileSize; } /** * Sets the value of the totalFileSize property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setTotalFileSize(BigDecimal value) { this.totalFileSize = value; } }
package uk.gov.nationalarchives.droid.command.action; import java.io.PrintWriter; import java.util.Map; import uk.gov.nationalarchives.droid.command.i18n.I18N; import uk.gov.nationalarchives.droid.core.interfaces.signature.<API key>; import uk.gov.nationalarchives.droid.core.interfaces.signature.SignatureFileInfo; import uk.gov.nationalarchives.droid.core.interfaces.signature.SignatureManager; import uk.gov.nationalarchives.droid.core.interfaces.signature.SignatureType; /** * @author rflitcroft * */ public class <API key> implements DroidCommand { private PrintWriter printWriter; private SignatureManager signatureManager; /** * {@inheritDoc} */ @Override public void execute() throws <API key> { try { Map<SignatureType, SignatureFileInfo> sigFileInfos = signatureManager.<API key>(); for (SignatureFileInfo info : sigFileInfos.values()) { printWriter.println(I18N.getResource(I18N.<API key>, info.getType(), info.getVersion(), info.getFile().getName())); } } catch (<API key> e) { throw new <API key>(e); } } /** * @param printWriter the printWriter to set */ public void setPrintWriter(PrintWriter printWriter) { this.printWriter = printWriter; } /** * @param signatureManager the signatureManager to set */ public void setSignatureManager(SignatureManager signatureManager) { this.signatureManager = signatureManager; } }
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.cpp Label Definition File: <API key>.label.xml Template File: sources-sinks-52c.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines * BadSource: calloc Allocate data using calloc() * GoodSource: Allocate data using new * Sinks: * GoodSink: Deallocate data using free() * BadSink : Deallocate data using delete * Flow Variant: 52 Data flow: data passed as an argument from one function to another to another in three different source files * * */ #include "std_testcase.h" namespace <API key> { #ifndef OMITBAD void badSink_c(int64_t * data) { /* POTENTIAL FLAW: Deallocate memory using delete - the source memory allocation function may * require a call to free() to deallocate the memory */ delete data; } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B uses the GoodSource with the BadSink */ void goodG2BSink_c(int64_t * data) { /* POTENTIAL FLAW: Deallocate memory using delete - the source memory allocation function may * require a call to free() to deallocate the memory */ delete data; } /* goodB2G uses the BadSource with the GoodSink */ void goodB2GSink_c(int64_t * data) { /* FIX: Deallocate the memory using free() */ free(data); } #endif /* OMITGOOD */ } /* close namespace */
package com.restfb; import static com.restfb.json.JsonObject.NULL; import static com.restfb.util.ReflectionUtils.<API key>; import static com.restfb.util.ReflectionUtils.<API key>; import static com.restfb.util.ReflectionUtils.isPrimitive; import static com.restfb.util.StringUtils.isBlank; import static com.restfb.util.StringUtils.trimToEmpty; import static java.util.Collections.unmodifiableList; import static java.util.Collections.unmodifiableSet; import static java.util.logging.Level.FINE; import static java.util.logging.Level.FINER; import static java.util.logging.Level.FINEST; import java.lang.reflect.Field; import java.math.BigDecimal; import java.math.BigInteger; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.logging.Logger; import com.restfb.exception.<API key>; import com.restfb.json.JsonArray; import com.restfb.json.JsonException; import com.restfb.json.JsonObject; import com.restfb.types.Post.Comments; import com.restfb.util.ReflectionUtils.FieldWithAnnotation; public class DefaultJsonMapper implements JsonMapper { /** * Logger. */ private static final Logger logger = Logger.getLogger(DefaultJsonMapper.class.getName()); /** * @see com.restfb.JsonMapper#toJavaList(String, Class) */ @Override public <T> List<T> toJavaList(String json, Class<T> type) { json = trimToEmpty(json); if (isBlank(json)) throw new <API key>("JSON is an empty string - can't map it."); if (type == null) throw new <API key>("You must specify the Java type to map to."); if (json.startsWith("{")) { // Sometimes Facebook returns the empty object {} when it really should be // returning an empty list [] (example: do an FQL query for a user's // affiliations - it's a list except when there are none, then it turns // into an object). Check for that special case here. if (isEmptyObject(json)) { if (logger.isLoggable(FINER)) logger.finer("Encountered {} when we should've seen []. " + "Mapping the {} as an empty list and moving on..."); return new ArrayList<T>(); } // Special case: if the only element of this object is an array called // "data", then treat it as a list. The Graph API uses this convention for // connections and in a few other places, e.g. comments on the Post // object. // Doing this simplifies mapping, so we don't have to worry about having a // little placeholder object that only has a "data" value. try { JsonObject jsonObject = new JsonObject(json); String[] fieldNames = JsonObject.getNames(jsonObject); if (fieldNames != null) { boolean <API key> = fieldNames.length == 1 && "data".equals(fieldNames[0]); Object jsonDataObject = jsonObject.get("data"); if (!<API key> && !(jsonDataObject instanceof JsonArray)) throw new <API key>("JSON is an object but is being mapped as a list " + "instead. Offending JSON is '" + json + "'."); json = jsonDataObject.toString(); } } catch (JsonException e) { // Should never get here, but just in case... throw new <API key>("Unable to convert Facebook response " + "JSON to a list of " + type.getName() + " instances. Offending JSON is " + json, e); } } try { List<T> list = new ArrayList<T>(); JsonArray jsonArray = new JsonArray(json); for (int i = 0; i < jsonArray.length(); i++) list.add(toJavaObject(jsonArray.get(i).toString(), type)); return unmodifiableList(list); } catch (<API key> e) { throw e; } catch (Exception e) { throw new <API key>("Unable to convert Facebook response " + "JSON to a list of " + type.getName() + " instances", e); } } /** * @see com.restfb.JsonMapper#toJavaObject(String, Class) */ @Override @SuppressWarnings("unchecked") public <T> T toJavaObject(String json, Class<T> type) { <API key>(json); try { // Are we asked to map to JsonObject? If so, short-circuit right away. if (type.equals(JsonObject.class)) return (T) new JsonObject(json); List<FieldWithAnnotation<Facebook>> <API key> = <API key>(type, Facebook.class); Set<String> <API key> = <API key>(<API key>); // If there are no annotated fields, assume we're mapping to a built-in // type. If this is actually the empty object, just return a new instance // of the corresponding Java type. if (<API key>.size() == 0) if (isEmptyObject(json)) return createInstance(type); else return toPrimitiveJavaType(json, type); // Facebook will sometimes return the string "null". // Check for that and bail early if we find it. if ("null".equals(json)) return null; // Facebook will sometimes return the string "false" to mean null. // Check for that and bail early if we find it. if ("false".equals(json)) { if (logger.isLoggable(FINE)) logger.fine("Encountered 'false' from Facebook when trying to map to " + type.getSimpleName() + " - mapping null instead."); return null; } JsonObject jsonObject = new JsonObject(json); T instance = createInstance(type); if (instance instanceof JsonObject) return (T) jsonObject; // For each Facebook-annotated field on the current Java object, pull data // out of the JSON object and put it in the Java object for (FieldWithAnnotation<Facebook> fieldWithAnnotation : <API key>) { String facebookFieldName = <API key>(fieldWithAnnotation); if (!jsonObject.has(facebookFieldName)) { if (logger.isLoggable(FINER)) logger.finer("No JSON value present for '" + facebookFieldName + "', skipping. JSON is '" + json + "'."); continue; } fieldWithAnnotation.getField().setAccessible(true); // Set the Java field's value. // If we notice that this Facebook field name is mapped more than once, // go into a special mode where we swallow any exceptions that occur // when mapping to the Java field. This is because Facebook will // sometimes return data in different formats for the same field name. // See issues 56 and 90 for examples of this behavior and discussion. if (<API key>.contains(facebookFieldName)) { try { fieldWithAnnotation.getField() .set(instance, toJavaType(fieldWithAnnotation, jsonObject, facebookFieldName)); } catch (<API key> e) { <API key>(facebookFieldName, fieldWithAnnotation, json); } catch (JsonException e) { <API key>(facebookFieldName, fieldWithAnnotation, json); } } else { fieldWithAnnotation.getField().set(instance, toJavaType(fieldWithAnnotation, jsonObject, facebookFieldName)); } } return instance; } catch (<API key> e) { throw e; } catch (Exception e) { throw new <API key>("Unable to map JSON to Java. Offending JSON is '" + json + "'.", e); } } /** * Dumps out a log message when one of a multiple-mapped Facebook field name * JSON-to-Java mapping operation fails. * * @param facebookFieldName * The Facebook field name. * @param fieldWithAnnotation * The Java field to map to and its annotation. * @param json * The JSON that failed to map to the Java field. */ protected void <API key>(String facebookFieldName, FieldWithAnnotation<Facebook> fieldWithAnnotation, String json) { if (!logger.isLoggable(FINER)) return; Field field = fieldWithAnnotation.getField(); if (logger.isLoggable(FINER)) logger.finer("Could not map '" + facebookFieldName + "' to " + field.getDeclaringClass().getSimpleName() + "." + field.getName() + ", but continuing on because '" + facebookFieldName + "' is mapped to multiple fields in " + field.getDeclaringClass().getSimpleName() + ". JSON is " + json); } /** * For a Java field annotated with the {@code Facebook} annotation, figure out * what the corresponding Facebook JSON field name to map to it is. * * @param fieldWithAnnotation * A Java field annotated with the {@code Facebook} annotation. * @return The Facebook JSON field name that should be mapped to this Java * field. */ protected String <API key>(FieldWithAnnotation<Facebook> fieldWithAnnotation) { String facebookFieldName = fieldWithAnnotation.getAnnotation().value(); Field field = fieldWithAnnotation.getField(); // If no Facebook field name was specified in the annotation, assume // it's the same name as the Java field if (isBlank(facebookFieldName)) { if (logger.isLoggable(FINEST)) logger.finest("No explicit Facebook field name found for " + field + ", so defaulting to the field name itself (" + field.getName() + ")"); facebookFieldName = field.getName(); } return facebookFieldName; } /** * Finds any Facebook JSON fields that are mapped to more than 1 Java field. * * @param <API key> * Java fields annotated with the {@code Facebook} annotation. * @return Any Facebook JSON fields that are mapped to more than 1 Java field. */ protected Set<String> <API key>(List<FieldWithAnnotation<Facebook>> <API key>) { Map<String, Integer> <API key> = new HashMap<String, Integer>(); Set<String> <API key> = new HashSet<String>(); // Get a count of Facebook field name occurrences for each // @Facebook-annotated field for (FieldWithAnnotation<Facebook> fieldWithAnnotation : <API key>) { String fieldName = <API key>(fieldWithAnnotation); int occurrenceCount = <API key>.containsKey(fieldName) ? <API key> .get(fieldName) : 0; <API key>.put(fieldName, occurrenceCount + 1); } // Pull out only those field names with multiple mappings for (Entry<String, Integer> entry : <API key>.entrySet()) if (entry.getValue() > 1) <API key>.add(entry.getKey()); return unmodifiableSet(<API key>); } /** * @see com.restfb.JsonMapper#toJson(Object) */ @Override public String toJson(Object object) { // Delegate to recursive method return toJsonInternal(object).toString(); } /** * Is the given {@code json} a valid JSON object? * * @param json * The JSON to check. * @throws <API key> * If {@code json} is not a valid JSON object. */ protected void <API key>(String json) { if (isBlank(json)) throw new <API key>("JSON is an empty string - can't map it."); if (json.startsWith("[")) throw new <API key>("JSON is an array but is being mapped as an object " + "- you should map it as a List instead. Offending JSON is '" + json + "'."); } /** * Recursively marshal the given {@code object} to JSON. * <p> * Used by {@link #toJson(Object)}. * * @param object * The object to marshal. * @return JSON representation of the given {@code object}. * @throws <API key> * If an error occurs while marshaling to JSON. */ protected Object toJsonInternal(Object object) { if (object == null) return NULL; if (object instanceof List<?>) { JsonArray jsonArray = new JsonArray(); for (Object o : (List<?>) object) jsonArray.put(toJsonInternal(o)); return jsonArray; } if (object instanceof Map<?, ?>) { JsonObject jsonObject = new JsonObject(); for (Entry<?, ?> entry : ((Map<?, ?>) object).entrySet()) { if (!(entry.getKey() instanceof String)) throw new <API key>("Your Map keys must be of type " + String.class + " in order to be converted to JSON. Offending map is " + object); try { jsonObject.put((String) entry.getKey(), toJsonInternal(entry.getValue())); } catch (JsonException e) { throw new <API key>("Unable to process value '" + entry.getValue() + "' for key '" + entry.getKey() + "' in Map " + object, e); } } return jsonObject; } if (isPrimitive(object)) return object; if (object instanceof BigInteger) return ((BigInteger) object).longValue(); if (object instanceof BigDecimal) return ((BigDecimal) object).doubleValue(); // We've passed the special-case bits, so let's try to marshal this as a // plain old Javabean... List<FieldWithAnnotation<Facebook>> <API key> = <API key>(object.getClass(), Facebook.class); JsonObject jsonObject = new JsonObject(); Set<String> <API key> = <API key>(<API key>); if (<API key>.size() > 0) throw new <API key>("Unable to convert to JSON because multiple @" + Facebook.class.getSimpleName() + " annotations for the same name are present: " + <API key>); for (FieldWithAnnotation<Facebook> fieldWithAnnotation : <API key>) { String facebookFieldName = <API key>(fieldWithAnnotation); fieldWithAnnotation.getField().setAccessible(true); try { jsonObject.put(facebookFieldName, toJsonInternal(fieldWithAnnotation.getField().get(object))); } catch (Exception e) { throw new <API key>("Unable to process field '" + facebookFieldName + "' for " + object.getClass(), e); } } return jsonObject; } @SuppressWarnings("unchecked") protected <T> T toPrimitiveJavaType(String json, Class<T> type) { if (String.class.equals(type)) { // If the string starts and ends with quotes, remove them, since Facebook // can serve up strings surrounded by quotes. if (json.length() > 1 && json.startsWith("\"") && json.endsWith("\"")) { json = json.replaceFirst("\"", ""); json = json.substring(0, json.length() - 1); } return (T) json; } if (Integer.class.equals(type) || Integer.TYPE.equals(type)) return (T) new Integer(json); if (Boolean.class.equals(type) || Boolean.TYPE.equals(type)) return (T) new Boolean(json); if (Long.class.equals(type) || Long.TYPE.equals(type)) return (T) new Long(json); if (Double.class.equals(type) || Double.TYPE.equals(type)) return (T) new Double(json); if (Float.class.equals(type) || Float.TYPE.equals(type)) return (T) new Float(json); if (BigInteger.class.equals(type)) return (T) new BigInteger(json); if (BigDecimal.class.equals(type)) return (T) new BigDecimal(json); throw new <API key>("Don't know how to map JSON to " + type + ". Are you sure you're mapping to the right class? " + "Offending JSON is '" + json + "'."); } /** * Extracts JSON data for a field according to its {@code Facebook} annotation * and returns it converted to the proper Java type. * * @param fieldWithAnnotation * The field/annotation pair which specifies what Java type to * convert to. * @param jsonObject * "Raw" JSON object to pull data from. * @param facebookFieldName * Specifies what JSON field to pull "raw" data from. * @return A * @throws JsonException * If an error occurs while mapping JSON to Java. * @throws <API key> * If an error occurs while mapping JSON to Java. */ protected Object toJavaType(FieldWithAnnotation<Facebook> fieldWithAnnotation, JsonObject jsonObject, String facebookFieldName) throws JsonException, <API key> { Class<?> type = fieldWithAnnotation.getField().getType(); Object rawValue = jsonObject.get(facebookFieldName); // Short-circuit right off the bat if we've got a null value. if (NULL.equals(rawValue)) return null; if (String.class.equals(type)) { // Special handling here for better error checking. // Since JsonObject.getString() will return literal JSON text even if it's // _not_ a JSON string, we check the marshaled type and bail if needed. // For example, calling JsonObject.getString("results") on the below // JSON... // {"results":[{"name":"Mark Allen"}]} // ... would return the string "[{"name":"Mark Allen"}]" instead of // throwing an error. So we throw the error ourselves. // Per Antonello Naccarato, sometimes FB will return an empty JSON array // instead of an empty string. Look for that here. if (rawValue instanceof JsonArray) if (((JsonArray) rawValue).length() == 0) { if (logger.isLoggable(FINER)) logger.finer("Coercing an empty JSON array " + "to an empty string for " + fieldWithAnnotation); return ""; } // If the user wants a string, _always_ give her a string. // This is useful if, for example, you've got a @Facebook-annotated string // field that you'd like to have a numeric type shoved into. // User beware: this will turn *anything* into a string, which might lead // to results you don't expect. return rawValue.toString(); } if (Integer.class.equals(type) || Integer.TYPE.equals(type)) return new Integer(jsonObject.getInt(facebookFieldName)); if (Boolean.class.equals(type) || Boolean.TYPE.equals(type)) return new Boolean(jsonObject.getBoolean(facebookFieldName)); if (Long.class.equals(type) || Long.TYPE.equals(type)) return new Long(jsonObject.getLong(facebookFieldName)); if (Double.class.equals(type) || Double.TYPE.equals(type)) return new Double(jsonObject.getDouble(facebookFieldName)); if (Float.class.equals(type) || Float.TYPE.equals(type)) return new BigDecimal(jsonObject.getString(facebookFieldName)).floatValue(); if (BigInteger.class.equals(type)) return new BigInteger(jsonObject.getString(facebookFieldName)); if (BigDecimal.class.equals(type)) return new BigDecimal(jsonObject.getString(facebookFieldName)); if (List.class.equals(type)) return toJavaList(rawValue.toString(), <API key>(fieldWithAnnotation.getField())); String rawValueAsString = rawValue.toString(); // Hack for issue 76 where FB will sometimes return a Post's Comments as // "[]" instead of an object type (wtf) if (Comments.class.isAssignableFrom(type) && rawValue instanceof JsonArray) { if (logger.isLoggable(FINE)) logger.fine("Encountered comment array '" + rawValueAsString + "' but expected a " + Comments.class.getSimpleName() + " object instead. Working around that " + "by coercing into an empty " + Comments.class.getSimpleName() + " instance..."); JsonObject <API key> = new JsonObject(); <API key>.put("count", 0); <API key>.put("data", new JsonArray()); rawValueAsString = <API key>.toString(); } // Some other type - recurse into it return toJavaObject(rawValueAsString, type); } /** * Creates a new instance of the given {@code type}. * * @param <T> * Java type to map to. * @param type * Type token. * @return A new instance of {@code type}. * @throws <API key> * If an error occurs when creating a new instance ({@code type} is * inaccessible, doesn't have a public no-arg constructor, etc.) */ protected <T> T createInstance(Class<T> type) { String errorMessage = "Unable to create an instance of " + type + ". Please make sure that it's marked 'public' " + "and, if it's a nested class, is marked 'static'. " + "It should have a public, no-argument constructor."; try { return type.newInstance(); } catch (<API key> e) { throw new <API key>(errorMessage, e); } catch (<API key> e) { throw new <API key>(errorMessage, e); } } /** * Is the given JSON equivalent to the empty object (<code>{}</code>)? * * @param json * The JSON to check. * @return {@code true} if the JSON is equivalent to the empty object, * {@code false} otherwise. */ protected boolean isEmptyObject(String json) { return "{}".equals(json); } }
#ifndef <API key> #define <API key> #pragma once namespace content { // This enum is also used by histograms. Do not change the ordering or remove // items. enum DownloadDangerType { // The download is safe. <API key> = 0, // A dangerous file to the system (e.g.: a pdf or extension from // places other than gallery). <API key>, // Safebrowsing download service shows this URL leads to malicious file // download. <API key>, // SafeBrowsing download service shows this file content as being malicious. <API key>, // The content of this download may be malicious (e.g., extension is exe but // SafeBrowsing has not finished checking the content). <API key>, // Memory space for histograms is determined by the max. // ALWAYS ADD NEW VALUES BEFORE THIS ONE. <API key> }; } #endif // <API key>
// modification, are permitted provided that the following conditions // are met: // documentation and/or other materials provided with the distribution. // * Neither the name of NVIDIA CORPORATION nor the names of its // contributors may be used to endorse or promote products derived // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // 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 <dp/ui/RenderTarget.h> namespace dp { namespace ui { RenderTarget::~RenderTarget() { } bool RenderTarget::beginRendering() { return true; } void RenderTarget::endRendering() { } bool RenderTarget::isStereoEnabled() const { return false; } bool RenderTarget::setStereoTarget( StereoTarget target ) { return target == LEFT; } RenderTarget::StereoTarget RenderTarget::getStereoTarget() const { return LEFT; } } // namespace ui } // namespace dp
import PromiseRouter from '../PromiseRouter'; import * as middleware from "../middlewares"; import { Parse } from "parse/node"; export class PushRouter extends PromiseRouter { mountRoutes() { this.route("POST", "/push", middleware.<API key>, PushRouter.handlePOST); } static handlePOST(req) { const pushController = req.config.pushController; if (!pushController) { throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED, 'Push controller is not set'); } let where = PushRouter.getQueryCondition(req); pushController.sendPush(req.body, where, req.config, req.auth); return Promise.resolve({ response: { 'result': true } }); } /** * Get query condition from the request body. * @param {Object} req A request object * @returns {Object} The query condition, the where field in a query api call */ static getQueryCondition(req) { let body = req.body || {}; let hasWhere = typeof body.where !== 'undefined'; let hasChannels = typeof body.channels !== 'undefined'; let where; if (hasWhere && hasChannels) { throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED, 'Channels and query can not be set at the same time.'); } else if (hasWhere) { where = body.where; } else if (hasChannels) { where = { "channels": { "$in": body.channels } } } else { throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED, 'Channels and query should be set at least one.'); } return where; } } export default PushRouter;
// Enumerate the various item subtypes that are supported by sync. // Each sync object is expected to have an immutable object type. // An object's type is inferred from the type of data it holds. #ifndef <API key> #define <API key> #include <map> #include <set> #include <string> #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "sync/base/sync_export.h" #include "sync/internal_api/public/base/enum_set.h" namespace base { class ListValue; class StringValue; class Value; } namespace sync_pb { class EntitySpecifics; class SyncEntity; } namespace syncer { // TODO(akalin): Move the non-exported functions in this file to a // private header. // A Java counterpart will be generated for this enum. // <API key>: org.chromium.sync // |kModelTypeInfoMap| struct entries are in the same order as their definition // in ModelType enum. Don't forget to update the |kModelTypeInfoMap| struct in // model_type.cc when you make changes in ModelType enum. enum ModelType { // Object type unknown. Objects may transition through // the unknown state during their initial creation, before // their properties are set. After deletion, object types // are generally preserved. UNSPECIFIED, // A permanent folder whose children may be of mixed // datatypes (e.g. the "Google Chrome" folder). TOP_LEVEL_FOLDER, // The model types declared before here are somewhat special, as they // they do not correspond to any browser data model. The remaining types // are bona fide model types; all have a related browser data model and // can be represented in the protocol using a specific Message type in the // EntitySpecifics protocol buffer. // A bookmark folder or a bookmark URL object. BOOKMARKS, <API key> = BOOKMARKS, // Declared 2nd, for debugger prettiness. <API key> = <API key>, // A preference object. PREFERENCES, // A password object. PASSWORDS, // An AutofillProfile Object AUTOFILL_PROFILE, // An autofill object. AUTOFILL, // Credit cards and addresses synced from the user's account. These are // read-only on the client. <API key>, // Usage counts and last use dates for Wallet cards and addresses. This data // is both readable and writable. <API key>, // A themes object. THEMES, // A typed_url object. TYPED_URLS, // An extension object. EXTENSIONS, // An object representing a custom search engine. SEARCH_ENGINES, // An object representing a browser session. SESSIONS, // An app object. APPS, // An app setting from the extension settings API. APP_SETTINGS, // An extension setting from the extension settings API. EXTENSION_SETTINGS, // App notifications. APP_NOTIFICATIONS, // Deprecated. // History delete directives. <API key>, // Synced push notifications. <API key>, // Deprecated. // Synced Notification app info. <API key>, // Deprecated. // Custom spelling dictionary. DICTIONARY, // Favicon images. FAVICON_IMAGES, // Favicon tracking information. FAVICON_TRACKING, // Client-specific metadata, synced before other user types. DEVICE_INFO, // These preferences are synced before other user types and are never // encrypted. <API key>, // Supervised user settings. <API key>, // Supervised users. Every supervised user is a profile that is configured // remotely by this user and can have restrictions applied. SUPERVISED_USERS // and <API key> can not be encrypted. SUPERVISED_USERS, // Supervised user shared settings. Shared settings can be modified both by // the manager and the supervised user. <API key>, // Distilled articles. ARTICLES, // App List items APP_LIST, // WiFi credentials. Each item contains the information for connecting to one // WiFi network. This includes, e.g., network name and password. WIFI_CREDENTIALS, // Supervised user whitelists. Each item contains a CRX ID (like an extension // ID) and a name. <API key>, // Proxy types are excluded from the sync protocol, but are still considered // real user types. By convention, we prefix them with 'PROXY_' to distinguish // them from normal protocol types. // Tab sync. This is a placeholder type, so that Sessions can be implicitly // enabled for history sync and tabs sync. PROXY_TABS, FIRST_PROXY_TYPE = PROXY_TABS, LAST_PROXY_TYPE = PROXY_TABS, <API key> = PROXY_TABS, // An object representing a set of Nigori keys. NIGORI, <API key> = NIGORI, // Flags to enable experimental features. EXPERIMENTS, <API key> = EXPERIMENTS, <API key> = <API key>, // If you are adding a new sync datatype that is exposed to the user via the // sync preferences UI, be sure to update the list in // components/sync_driver/<API key>.h so that the UMA // histograms for sync include your new type. In this case, be sure to also // update the UserSelectableTypes() definition in // sync/syncable/model_type.cc. MODEL_TYPE_COUNT, }; typedef EnumSet<ModelType, <API key>, <API key>> ModelTypeSet; typedef EnumSet<ModelType, UNSPECIFIED, <API key>> FullModelTypeSet; typedef std::map<syncer::ModelType, const char*> ModelTypeNameMap; inline ModelType ModelTypeFromInt(int i) { DCHECK_GE(i, 0); DCHECK_LT(i, MODEL_TYPE_COUNT); return static_cast<ModelType>(i); } // Used by tests outside of sync/. SYNC_EXPORT void <API key>(ModelType datatype, sync_pb::EntitySpecifics* specifics); // Extract the model type of a SyncEntity protocol buffer. ModelType is a // local concept: the enum is not in the protocol. The SyncEntity's ModelType // is inferred from the presence of particular datatype field in the // entity specifics. SYNC_EXPORT_PRIVATE ModelType GetModelType( const sync_pb::SyncEntity& sync_entity); // Extract the model type from an EntitySpecifics field. Note that there // are some ModelTypes (like TOP_LEVEL_FOLDER) that can't be inferred this way; // prefer using GetModelType where possible. SYNC_EXPORT ModelType <API key>( const sync_pb::EntitySpecifics& specifics); // Protocol types are those types that have actual protocol buffer // representations. This distinguishes them from Proxy types, which have no // protocol representation and are never sent to the server. SYNC_EXPORT ModelTypeSet ProtocolTypes(); // These are the normal user-controlled types. This is to distinguish from // ControlTypes which are always enabled. Note that some of these share a // preference flag, so not all of them are individually user-selectable. SYNC_EXPORT ModelTypeSet UserTypes(); // These are the user-selectable data types. SYNC_EXPORT ModelTypeSet UserSelectableTypes(); SYNC_EXPORT bool <API key>(ModelType model_type); SYNC_EXPORT ModelTypeNameMap <API key>(); // This is the subset of UserTypes() that can be encrypted. SYNC_EXPORT_PRIVATE ModelTypeSet <API key>(); // This is the subset of UserTypes() that have priority over other types. These // types are synced before other user types and are never encrypted. SYNC_EXPORT ModelTypeSet PriorityUserTypes(); // Proxy types are placeholder types for handling implicitly enabling real // types. They do not exist at the server, and are simply used for // UI/Configuration logic. SYNC_EXPORT ModelTypeSet ProxyTypes(); // Returns a list of all control types. // The control types are intended to contain metadata nodes that are essential // for the normal operation of the syncer. As such, they have the following // special properties: // - They are downloaded early during SyncBackend initialization. // - They are always enabled. Users may not disable these types. // - Their contents are not encrypted automatically. // - They support custom update application and conflict resolution logic. // - All change processing occurs on the sync thread (GROUP_PASSIVE). SYNC_EXPORT ModelTypeSet ControlTypes(); // Returns true if this is a control type. // See comment above for more information on what makes these types special. SYNC_EXPORT bool IsControlType(ModelType model_type); // Core types are those data types used by sync's core functionality (i.e. not // user data types). These types are always enabled, and include ControlTypes(). // The set of all core types. SYNC_EXPORT ModelTypeSet CoreTypes(); // Those core types that have high priority (includes ControlTypes()). SYNC_EXPORT ModelTypeSet PriorityCoreTypes(); // Determine a model type from the field number of its associated // EntitySpecifics field. Returns UNSPECIFIED if the field number is // not recognized. // If you're putting the result in a ModelTypeSet, you should use the // following pattern: // ModelTypeSet model_types; // // Say we're looping through a list of items, each of which has a // // field number. // for (...) { // int field_number = ...; // ModelType model_type = // <API key>(field_number); // if (!IsRealDataType(model_type)) { // DLOG(WARNING) << "Unknown field number " << field_number; // continue; // model_types.Put(model_type); SYNC_EXPORT_PRIVATE ModelType <API key>( int field_number); // Return the field number of the EntitySpecifics field associated with // a model type. SYNC_EXPORT int <API key>( ModelType model_type); FullModelTypeSet ToFullModelTypeSet(ModelTypeSet in); // TODO(sync): The functions below badly need some cleanup. // Returns a pointer to a string with application lifetime that represents // the name of |model_type|. SYNC_EXPORT const char* ModelTypeToString(ModelType model_type); // Some histograms take an integer parameter that represents a model type. // The mapping from ModelType to integer is defined here. It should match // the mapping from integer to labels defined in histograms.xml. SYNC_EXPORT int <API key>(ModelType model_type); // Handles all model types, and not just real ones. // Caller takes ownership of returned value. SYNC_EXPORT_PRIVATE base::StringValue* ModelTypeToValue(ModelType model_type); // Converts a Value into a ModelType - complement to ModelTypeToValue(). SYNC_EXPORT_PRIVATE ModelType ModelTypeFromValue(const base::Value& value); // Returns the ModelType corresponding to the name |model_type_string|. SYNC_EXPORT ModelType ModelTypeFromString( const std::string& model_type_string); // Returns the comma-separated string representation of |model_types|. SYNC_EXPORT std::string <API key>(ModelTypeSet model_types); // Returns the set of comma-separated model types from |model_type_string|. SYNC_EXPORT ModelTypeSet <API key>( const std::string& model_type_string); SYNC_EXPORT scoped_ptr<base::ListValue> ModelTypeSetToValue( ModelTypeSet model_types); SYNC_EXPORT ModelTypeSet <API key>(const base::ListValue& value); // Returns a string corresponding to the syncable tag for this datatype. SYNC_EXPORT std::string ModelTypeToRootTag(ModelType type); // Convert a real model type to a notification type (used for // subscribing to server-issued notifications). Returns true iff // |model_type| was a real model type and |notification_type| was // filled in. SYNC_EXPORT bool <API key>( ModelType model_type, std::string* notification_type); // Converts a notification type to a real model type. Returns true // iff |notification_type| was the notification type of a real model // type and |model_type| was filled in. SYNC_EXPORT bool <API key>( const std::string& notification_type, ModelType* model_type); // Returns true if |model_type| is a real datatype SYNC_EXPORT bool IsRealDataType(ModelType model_type); // Returns true if |model_type| is a proxy type SYNC_EXPORT bool IsProxyType(ModelType model_type); // Returns true if |model_type| is an act-once type. Act once types drop // entities after applying them. Drops are deletes that are not synced to other // clients. // TODO(haitaol): Make entries of act-once data types immutable. SYNC_EXPORT bool IsActOnceDataType(ModelType model_type); // Returns true if |model_type| requires its root folder to be explicitly SYNC_EXPORT bool <API key>(ModelType model_type); // that type is initially synced. SYNC_EXPORT bool <API key>(ModelType model_type); // Returns true if |model_type| supports parent-child hierarchy or entries. SYNC_EXPORT bool <API key>(ModelType model_type); // Returns true if |model_type| supports ordering of sibling entries. SYNC_EXPORT bool <API key>(ModelType model_type); // Returns set of model types that should be backed up before first sync. SYNC_EXPORT ModelTypeSet BackupTypes(); } // namespace syncer #endif // <API key>
<?php namespace ZendTest\Di\TestAsset; class A { }
module Verifier.SAW.SATQuery ( SATQuery(..) , SATResult(..) , satQueryAsTerm ) where import Control.Monad (foldM) import Data.Map (Map) import Data.Set (Set) import Verifier.SAW.Name import Verifier.SAW.FiniteValue import Verifier.SAW.SharedTerm -- | This datatype represents a satisfiability query that might -- be dispatched to a solver. It carries a series of assertions -- to be made to a solver, together with a collection of -- variables we expect the solver to report models over, -- and a collection of @VarIndex@ values identifying -- subterms that should be considered uninterpreted. -- All the @ExtCns@ values in the query should -- appear either in @satVariables@ or @satUninterp@. -- Constant values for which definitions are provided -- may also appear in @satUninterp@, in which case -- they will be treated as uninterpreted. Otherwise, -- their definitions will be unfolded. -- Solve solvers do not support uninterpreted values -- and will fail if presented a query that requests them. data SATQuery = SATQuery { satVariables :: Map (ExtCns Term) FirstOrderType -- ^ The variables in the query, for which we -- expect the solver to find values in satisfiable -- cases. INVARIANT: The type of the @ExtCns@ keys -- should correspond to the @FirstOrderType@ values. , satUninterp :: Set VarIndex -- ^ A set indicating which variables and constant -- values should be considered uninterpreted by -- the solver. Models will not report values -- for uninterpreted values. , satAsserts :: [Term] -- ^ A collection of assertions. These should -- all be terms of type @Bool@. The overall -- query should be understood as the conjunction -- of these terms. } -- TODO, allow first-order propositions in addition to Boolean terms. -- | The result of a sat query. In the event a model is found, -- return a mapping from the @ExtCns@ variables to values. data SATResult = Unsatisfiable | Satisfiable (ExtCns Term -> IO FirstOrderValue) | Unknown -- | Compute the conjunction of all the assertions -- in this SAT query as a single term of type Bool. satQueryAsTerm :: SharedContext -> SATQuery -> IO Term satQueryAsTerm sc satq = case satAsserts satq of [] -> scBool sc True (x:xs) -> foldM (scAnd sc) x xs -- TODO, we may have to rethink this function -- once we allow first-order statements.
// detail/<API key>.hpp #ifndef <API key> #define <API key> #if defined(_MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) #include <boost/asio/detail/config.hpp> #if !defined(BOOST_WINDOWS) #if !defined(__CYGWIN__) #if !defined(__SYMBIAN32__) #if !defined(<API key>) #include <boost/asio/detail/push_options.hpp> namespace boost { namespace asio { namespace detail { class <API key> { public: // Constructor. BOOST_ASIO_DECL <API key>(); // Destructor. BOOST_ASIO_DECL ~<API key>(); // Interrupt the select call. BOOST_ASIO_DECL void interrupt(); // Reset the select interrupt. Returns true if the call was interrupted. BOOST_ASIO_DECL bool reset(); // Get the read descriptor to be passed to select. int read_descriptor() const { return read_descriptor_; } private: // The read end of a connection used to interrupt the select call. This file // descriptor is passed to select such that when it is time to stop, a single // byte will be written on the other end of the connection and this // descriptor will become readable. int read_descriptor_; // The write end of a connection used to interrupt the select call. A single // byte may be written to this to wake up the select which is waiting for the // other end to become readable. int write_descriptor_; }; } // namespace detail } // namespace asio } // namespace boost #include <boost/asio/detail/pop_options.hpp> #if defined(<API key>) # include <boost/asio/detail/impl/<API key>.ipp> #endif // defined(<API key>) #endif // !defined(<API key>) #endif // !defined(__SYMBIAN32__) #endif // !defined(__CYGWIN__) #endif // !defined(BOOST_WINDOWS) #endif // <API key>
from lib.common import helpers class Module: def __init__(self, mainMenu, params=[]): self.info = { 'Name': '<API key>', 'Author': ['@harmj0y'], 'Description': ("Locks the workstation's display."), 'Background' : False, 'OutputExtension' : None, 'NeedsAdmin' : False, 'OpsecSafe' : False, 'Language' : 'powershell', 'MinLanguageVersion' : '2', 'Comments': [ 'http://poshcode.org/1640' ] } # any options needed by the module, settable during runtime self.options = { # format: # value_name : {description, required, default_value} 'Agent' : { 'Description' : 'Agent to run module on.', 'Required' : True, 'Value' : '' } } # save off a copy of the mainMenu object to access external functionality # like listeners/agent handlers/etc. self.mainMenu = mainMenu for param in params: # parameter format is [Name, Value] option, value = param if option in self.options: self.options[option]['Value'] = value def generate(self): return script
/* MT SCP RV32i configuration */ #include "cache.h" #include "csr.h" #include "hooks.h" #include "registers.h" #define SCP_SRAM_END (<API key> & (~(0x400 - 1))) struct mpu_entry mpu_entries[NR_MPU_ENTRIES] = { /* SRAM (for most code, data) */ {0, SCP_SRAM_END, MPU_ATTR_C | MPU_ATTR_W | MPU_ATTR_R}, /* SRAM (for IPI shared buffer) */ {SCP_SRAM_END, SCP_FW_END, MPU_ATTR_W | MPU_ATTR_R}, /* For AP domain */ #ifdef CHIP_VARIANT_MT8195 {0x60000000, 0x70000000, MPU_ATTR_W | MPU_ATTR_R | MPU_ATTR_P}, #else {0x60000000, 0x70000000, MPU_ATTR_W | MPU_ATTR_R}, #endif /* For SCP sys */ {0x70000000, 0x80000000, MPU_ATTR_W | MPU_ATTR_R}, #ifdef CHIP_VARIANT_MT8195 {0x10000000, 0x11400000, MPU_ATTR_C | MPU_ATTR_W | MPU_ATTR_R}, {<API key>, <API key> + <API key>, MPU_ATTR_W | MPU_ATTR_R}, #else {0x10000000, 0x11400000, MPU_ATTR_W | MPU_ATTR_R}, #endif }; #include "gpio_list.h" #ifdef <API key> static void <API key>(void) { struct panic_data * panic = panic_get_data(); if (panic == NULL && <API key> == 0) return; ccprintf("[Previous Panic]\n"); if (panic) { panic_data_ccprint(panic); } else { ccprintf("No panic data\n"); } ccprintf("Latch PC:%x LR:%x SP:%x\n", <API key>, <API key>, <API key>); } DECLARE_HOOK(HOOK_INIT, <API key>, HOOK_PRIO_DEFAULT); #endif
#ifndef CSSSupportsRule_h #define CSSSupportsRule_h #include "core/css/CSSGroupingRule.h" namespace blink { class CSSRule; class StyleRuleSupports; class CSSSupportsRule FINAL : public CSSGroupingRule { public: static <API key><CSSSupportsRule> create(StyleRuleSupports* rule, CSSStyleSheet* sheet) { return adoptRefWillBeNoop(new CSSSupportsRule(rule, sheet)); } virtual ~CSSSupportsRule() { } virtual CSSRule::Type type() const OVERRIDE { return SUPPORTS_RULE; } virtual String cssText() const OVERRIDE; String conditionText() const; virtual void trace(Visitor* visitor) OVERRIDE { CSSGroupingRule::trace(visitor); } private: CSSSupportsRule(StyleRuleSupports*, CSSStyleSheet*); }; <API key>(CSSSupportsRule, SUPPORTS_RULE); } // namespace blink #endif // CSSSupportsRule_h
define(function(require, exports, module) { "use strict"; var keys = require("./keys"); var useragent = require("./useragent"); exports.addListener = function(elem, type, callback) { if (elem.addEventListener) { return elem.addEventListener(type, callback, false); } if (elem.attachEvent) { var wrapper = function() { callback.call(elem, window.event); }; callback._wrapper = wrapper; elem.attachEvent("on" + type, wrapper); } }; exports.removeListener = function(elem, type, callback) { if (elem.removeEventListener) { return elem.removeEventListener(type, callback, false); } if (elem.detachEvent) { elem.detachEvent("on" + type, callback._wrapper || callback); } }; /* * Prevents propagation and clobbers the default action of the passed event */ exports.stopEvent = function(e) { exports.stopPropagation(e); exports.preventDefault(e); return false; }; exports.stopPropagation = function(e) { if (e.stopPropagation) e.stopPropagation(); else e.cancelBubble = true; }; exports.preventDefault = function(e) { if (e.preventDefault) e.preventDefault(); else e.returnValue = false; }; /* * @return {Number} 0 for left button, 1 for middle button, 2 for right button */ exports.getButton = function(e) { if (e.type == "dblclick") return 0; if (e.type == "contextmenu" || (useragent.isMac && (e.ctrlKey && !e.altKey && !e.shiftKey))) return 2; // DOM Event if (e.preventDefault) { return e.button; } // old IE else { return {1:0, 2:2, 4:1}[e.button]; } }; exports.capture = function(el, eventHandler, <API key>) { function onMouseUp(e) { eventHandler && eventHandler(e); <API key> && <API key>(e); exports.removeListener(document, "mousemove", eventHandler, true); exports.removeListener(document, "mouseup", onMouseUp, true); exports.removeListener(document, "dragstart", onMouseUp, true); } exports.addListener(document, "mousemove", eventHandler, true); exports.addListener(document, "mouseup", onMouseUp, true); exports.addListener(document, "dragstart", onMouseUp, true); return onMouseUp; }; exports.<API key> = function(el, callback) { if ("onmousewheel" in el) { exports.addListener(el, "mousewheel", function(e) { var factor = 8; if (e.wheelDeltaX !== undefined) { e.wheelX = -e.wheelDeltaX / factor; e.wheelY = -e.wheelDeltaY / factor; } else { e.wheelX = 0; e.wheelY = -e.wheelDelta / factor; } callback(e); }); } else if ("onwheel" in el) { exports.addListener(el, "wheel", function(e) { var factor = 0.35; switch (e.deltaMode) { case e.DOM_DELTA_PIXEL: e.wheelX = e.deltaX * factor || 0; e.wheelY = e.deltaY * factor || 0; break; case e.DOM_DELTA_LINE: case e.DOM_DELTA_PAGE: e.wheelX = (e.deltaX || 0) * 5; e.wheelY = (e.deltaY || 0) * 5; break; } callback(e); }); } else { exports.addListener(el, "DOMMouseScroll", function(e) { if (e.axis && e.axis == e.HORIZONTAL_AXIS) { e.wheelX = (e.detail || 0) * 5; e.wheelY = 0; } else { e.wheelX = 0; e.wheelY = (e.detail || 0) * 5; } callback(e); }); } }; exports.<API key> = function(el, timeouts, eventHandler, callbackName) { var clicks = 0; var startX, startY, timer; var eventNames = { 2: "dblclick", 3: "tripleclick", 4: "quadclick" }; exports.addListener(el, "mousedown", function(e) { if (exports.getButton(e) !== 0) { clicks = 0; } else if (e.detail > 1) { clicks++; if (clicks > 4) clicks = 1; } else { clicks = 1; } if (useragent.isIE) { var isNewClick = Math.abs(e.clientX - startX) > 5 || Math.abs(e.clientY - startY) > 5; if (!timer || isNewClick) clicks = 1; if (timer) clearTimeout(timer); timer = setTimeout(function() {timer = null}, timeouts[clicks - 1] || 600); if (clicks == 1) { startX = e.clientX; startY = e.clientY; } } e._clicks = clicks; eventHandler[callbackName]("mousedown", e); if (clicks > 4) clicks = 0; else if (clicks > 1) return eventHandler[callbackName](eventNames[clicks], e); }); if (useragent.isOldIE) { exports.addListener(el, "dblclick", function(e) { clicks = 2; if (timer) clearTimeout(timer); timer = setTimeout(function() {timer = null}, timeouts[clicks - 1] || 600); eventHandler[callbackName]("mousedown", e); eventHandler[callbackName](eventNames[clicks], e); }); } }; var getModifierHash = useragent.isMac && useragent.isOpera && !("KeyboardEvent" in window) ? function(e) { return 0 | (e.metaKey ? 1 : 0) | (e.altKey ? 2 : 0) | (e.shiftKey ? 4 : 0) | (e.ctrlKey ? 8 : 0); } : function(e) { return 0 | (e.ctrlKey ? 1 : 0) | (e.altKey ? 2 : 0) | (e.shiftKey ? 4 : 0) | (e.metaKey ? 8 : 0); }; exports.getModifierString = function(e) { return keys.KEY_MODS[getModifierHash(e)]; }; function <API key>(callback, e, keyCode) { var hashId = getModifierHash(e); if (!useragent.isMac && pressedKeys) { if (pressedKeys[91] || pressedKeys[92]) hashId |= 8; if (pressedKeys.altGr) { if ((3 & hashId) != 3) pressedKeys.altGr = 0; else return; } if (keyCode === 18 || keyCode === 17) { var location = "location" in e ? e.location : e.keyLocation; if (keyCode === 17 && location === 1) { if (pressedKeys[keyCode] == 1) ts = e.timeStamp; } else if (keyCode === 18 && hashId === 3 && location === 2) { var dt = e.timeStamp - ts; if (dt < 50) pressedKeys.altGr = true; } } } if (keyCode in keys.MODIFIER_KEYS) { keyCode = -1; } if (hashId & 8 && (keyCode === 91 || keyCode === 93)) { keyCode = -1; } if (!hashId && keyCode === 13) { var location = "location" in e ? e.location : e.keyLocation; if (location === 3) { callback(e, hashId, -keyCode); if (e.defaultPrevented) return; } } if (useragent.isChromeOS && hashId & 8) { callback(e, hashId, keyCode); if (e.defaultPrevented) return; else hashId &= ~8; } // If there is no hashId and the keyCode is not a function key, then // we don't call the callback as we don't handle a command key here // (it's a normal key/character input). if (!hashId && !(keyCode in keys.FUNCTION_KEYS) && !(keyCode in keys.PRINTABLE_KEYS)) { return false; } return callback(e, hashId, keyCode); } var pressedKeys = null; var ts = 0; exports.<API key> = function(el, callback) { var addListener = exports.addListener; if (useragent.isOldGecko || (useragent.isOpera && !("KeyboardEvent" in window))) { // Old versions of Gecko aka. Firefox < 4.0 didn't repeat the keydown // event if the user pressed the key for a longer time. Instead, the // keydown event was fired once and later on only the keypress event. // To emulate the 'right' keydown behavior, the keyCode of the initial // keyDown event is stored and in the following keypress events the // stores keyCode is used to emulate a keyDown event. var lastKeyDownKeyCode = null; addListener(el, "keydown", function(e) { lastKeyDownKeyCode = e.keyCode; }); addListener(el, "keypress", function(e) { return <API key>(callback, e, lastKeyDownKeyCode); }); } else { var <API key> = null; addListener(el, "keydown", function(e) { pressedKeys[e.keyCode] = (pressedKeys[e.keyCode] || 0) + 1; var result = <API key>(callback, e, e.keyCode); <API key> = e.defaultPrevented; return result; }); addListener(el, "keypress", function(e) { if (<API key> && (e.ctrlKey || e.altKey || e.shiftKey || e.metaKey)) { exports.stopEvent(e); <API key> = null; } }); addListener(el, "keyup", function(e) { pressedKeys[e.keyCode] = null; }); if (!pressedKeys) { pressedKeys = Object.create(null); addListener(window, "focus", function(e) { pressedKeys = Object.create(null); }); } } }; if (window.postMessage && !useragent.isOldIE) { var postMessageId = 1; exports.nextTick = function(callback, win) { win = win || window; var messageName = "<API key>-" + postMessageId; exports.addListener(win, "message", function listener(e) { if (e.data == messageName) { exports.stopPropagation(e); exports.removeListener(win, "message", listener); callback(); } }); win.postMessage(messageName, "*"); }; } exports.nextFrame = window.<API key> || window.<API key> || window.<API key> || window.<API key> || window.<API key>; if (exports.nextFrame) exports.nextFrame = exports.nextFrame.bind(window); else exports.nextFrame = function(callback) { setTimeout(callback, 17); }; });
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.cpp Label Definition File: <API key>.label.xml Template File: sources-sinks-82a.tmpl.cpp */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: connect_socket Read data using a connect socket (client side) * GoodSource: Copy a fixed string into data * Sinks: fprintf * GoodSink: fprintf with "%s" as the second argument and data as the third * BadSink : fprintf with data as the second argument * Flow Variant: 82 Data flow: data passed in a parameter to an virtual method called via a pointer * * */ #include "std_testcase.h" #include "<API key>.h" #ifdef _WIN32 #include <winsock2.h> #include <windows.h> #include <direct.h> #pragma comment(lib, "ws2_32") /* include ws2_32.lib when linking */ #define CLOSE_SOCKET closesocket #else /* NOT _WIN32 */ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #define INVALID_SOCKET -1 #define SOCKET_ERROR -1 #define CLOSE_SOCKET close #define SOCKET int #endif #define TCP_PORT 27015 #define IP_ADDRESS "127.0.0.1" namespace <API key> { #ifndef OMITBAD void bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; { #ifdef _WIN32 WSADATA wsaData; int wsaDataInit = 0; #endif int recvResult; struct sockaddr_in service; char *replace; SOCKET connectSocket = INVALID_SOCKET; size_t dataLen = strlen(data); do { #ifdef _WIN32 if (WSAStartup(MAKEWORD(2,2), &wsaData) != NO_ERROR) { break; } wsaDataInit = 1; #endif /* POTENTIAL FLAW: Read data using a connect socket */ connectSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (connectSocket == INVALID_SOCKET) { break; } memset(&service, 0, sizeof(service)); service.sin_family = AF_INET; service.sin_addr.s_addr = inet_addr(IP_ADDRESS); service.sin_port = htons(TCP_PORT); if (connect(connectSocket, (struct sockaddr*)&service, sizeof(service)) == SOCKET_ERROR) { break; } /* Abort on error or the connection was closed, make sure to recv one * less char than is in the recv_buf in order to append a terminator */ /* Abort on error or the connection was closed */ recvResult = recv(connectSocket, (char *)(data + dataLen), sizeof(char) * (100 - dataLen - 1), 0); if (recvResult == SOCKET_ERROR || recvResult == 0) { break; } /* Append null terminator */ data[dataLen + recvResult / sizeof(char)] = '\0'; /* Eliminate CRLF */ replace = strchr(data, '\r'); if (replace) { *replace = '\0'; } replace = strchr(data, '\n'); if (replace) { *replace = '\0'; } } while (0); if (connectSocket != INVALID_SOCKET) { CLOSE_SOCKET(connectSocket); } #ifdef _WIN32 if (wsaDataInit) { WSACleanup(); } #endif } <API key>* baseObject = new <API key>; baseObject->action(data); delete baseObject; } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B uses the GoodSource with the BadSink */ static void goodG2B() { char * data; char dataBuffer[100] = ""; data = dataBuffer; /* FIX: Use a fixed string that does not contain a format specifier */ strcpy(data, "fixedstringtest"); <API key>* baseObject = new <API key>; baseObject->action(data); delete baseObject; } /* goodB2G uses the BadSource with the GoodSink */ static void goodB2G() { char * data; char dataBuffer[100] = ""; data = dataBuffer; { #ifdef _WIN32 WSADATA wsaData; int wsaDataInit = 0; #endif int recvResult; struct sockaddr_in service; char *replace; SOCKET connectSocket = INVALID_SOCKET; size_t dataLen = strlen(data); do { #ifdef _WIN32 if (WSAStartup(MAKEWORD(2,2), &wsaData) != NO_ERROR) { break; } wsaDataInit = 1; #endif /* POTENTIAL FLAW: Read data using a connect socket */ connectSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (connectSocket == INVALID_SOCKET) { break; } memset(&service, 0, sizeof(service)); service.sin_family = AF_INET; service.sin_addr.s_addr = inet_addr(IP_ADDRESS); service.sin_port = htons(TCP_PORT); if (connect(connectSocket, (struct sockaddr*)&service, sizeof(service)) == SOCKET_ERROR) { break; } /* Abort on error or the connection was closed, make sure to recv one * less char than is in the recv_buf in order to append a terminator */ /* Abort on error or the connection was closed */ recvResult = recv(connectSocket, (char *)(data + dataLen), sizeof(char) * (100 - dataLen - 1), 0); if (recvResult == SOCKET_ERROR || recvResult == 0) { break; } /* Append null terminator */ data[dataLen + recvResult / sizeof(char)] = '\0'; /* Eliminate CRLF */ replace = strchr(data, '\r'); if (replace) { *replace = '\0'; } replace = strchr(data, '\n'); if (replace) { *replace = '\0'; } } while (0); if (connectSocket != INVALID_SOCKET) { CLOSE_SOCKET(connectSocket); } #ifdef _WIN32 if (wsaDataInit) { WSACleanup(); } #endif } <API key>* baseObject = new <API key>; baseObject->action(data); delete baseObject; } void good() { goodG2B(); goodB2G(); } #endif /* OMITGOOD */ } /* close namespace */ /* Below is the main(). It is only used when building this testcase on its own for testing or for building a binary to use in testing binary analysis tools. It is not used when compiling all the testcases as one application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN using namespace <API key>; /* so that we can use good and bad easily */ int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
#include <stdio.h> #include <string> #include "talk/p2p/base/sessionmessages.h" #include "talk/base/logging.h" #include "talk/base/scoped_ptr.h" #include "talk/base/stringutils.h" #include "talk/p2p/base/constants.h" #include "talk/p2p/base/p2ptransport.h" #include "talk/p2p/base/parsing.h" #include "talk/p2p/base/sessionclient.h" #include "talk/p2p/base/sessiondescription.h" #include "talk/p2p/base/transport.h" #include "talk/xmllite/xmlconstants.h" #include "talk/xmpp/constants.h" namespace cricket { ActionType ToActionType(const std::string& type) { if (type == <API key>) return <API key>; if (type == GINGLE_ACTION_INFO) return ACTION_SESSION_INFO; if (type == <API key>) return <API key>; if (type == <API key>) return <API key>; if (type == <API key>) return <API key>; if (type == <API key>) return <API key>; if (type == <API key>) return <API key>; if (type == <API key>) return <API key>; if (type == <API key>) return <API key>; if (type == <API key>) return ACTION_SESSION_INFO; if (type == <API key>) return <API key>; if (type == <API key>) return <API key>; if (type == <API key>) return <API key>; if (type == <API key>) return <API key>; if (type == <API key>) return <API key>; if (type == <API key>) return <API key>; return ACTION_UNKNOWN; } std::string ToJingleString(ActionType type) { switch (type) { case <API key>: return <API key>; case ACTION_SESSION_INFO: return <API key>; case <API key>: return <API key>; // Notice that reject and terminate both go to // "session-terminate", but there is no "session-reject". case <API key>: case <API key>: return <API key>; case <API key>: return <API key>; case <API key>: return <API key>; default: return ""; } } std::string ToGingleString(ActionType type) { switch (type) { case <API key>: return <API key>; case ACTION_SESSION_INFO: return GINGLE_ACTION_INFO; case <API key>: return <API key>; case <API key>: return <API key>; case <API key>: return <API key>; case <API key>: return <API key>; default: return ""; } } bool IsJingleMessage(const buzz::XmlElement* stanza) { const buzz::XmlElement* jingle = stanza->FirstNamed(QN_JINGLE); if (jingle == NULL) return false; return (jingle->HasAttr(buzz::QN_ACTION) && jingle->HasAttr(QN_SID)); } bool IsGingleMessage(const buzz::XmlElement* stanza) { const buzz::XmlElement* session = stanza->FirstNamed(QN_GINGLE_SESSION); if (session == NULL) return false; return (session->HasAttr(buzz::QN_TYPE) && session->HasAttr(buzz::QN_ID) && session->HasAttr(QN_INITIATOR)); } bool IsSessionMessage(const buzz::XmlElement* stanza) { return (stanza->Name() == buzz::QN_IQ && stanza->Attr(buzz::QN_TYPE) == buzz::STR_SET && (IsJingleMessage(stanza) || IsGingleMessage(stanza))); } bool <API key>(const buzz::XmlElement* session, SessionMessage* msg, ParseError* error) { msg->protocol = PROTOCOL_GINGLE; std::string type_string = session->Attr(buzz::QN_TYPE); msg->type = ToActionType(type_string); msg->sid = session->Attr(buzz::QN_ID); msg->initiator = session->Attr(QN_INITIATOR); msg->action_elem = session; if (msg->type == ACTION_UNKNOWN) return BadParse("unknown action: " + type_string, error); return true; } bool <API key>(const buzz::XmlElement* jingle, SessionMessage* msg, ParseError* error) { msg->protocol = PROTOCOL_JINGLE; std::string type_string = jingle->Attr(buzz::QN_ACTION); msg->type = ToActionType(type_string); msg->sid = jingle->Attr(QN_SID); msg->initiator = GetXmlAttr(jingle, QN_INITIATOR, buzz::STR_EMPTY); msg->action_elem = jingle; if (msg->type == ACTION_UNKNOWN) return BadParse("unknown action: " + type_string, error); return true; } bool <API key>(const buzz::XmlElement* jingle, SessionMessage* msg, ParseError* error) { if (!<API key>(jingle, msg, error)) return false; msg->protocol = PROTOCOL_HYBRID; return true; } bool ParseSessionMessage(const buzz::XmlElement* stanza, SessionMessage* msg, ParseError* error) { msg->id = stanza->Attr(buzz::QN_ID); msg->from = stanza->Attr(buzz::QN_FROM); msg->to = stanza->Attr(buzz::QN_TO); msg->stanza = stanza; const buzz::XmlElement* jingle = stanza->FirstNamed(QN_JINGLE); const buzz::XmlElement* session = stanza->FirstNamed(QN_GINGLE_SESSION); if (jingle && session) return <API key>(jingle, msg, error); if (jingle != NULL) return <API key>(jingle, msg, error); if (session != NULL) return <API key>(session, msg, error); return false; } buzz::XmlElement* WriteGingleAction(const SessionMessage& msg, const XmlElements& action_elems) { buzz::XmlElement* session = new buzz::XmlElement(QN_GINGLE_SESSION, true); session->AddAttr(buzz::QN_TYPE, ToGingleString(msg.type)); session->AddAttr(buzz::QN_ID, msg.sid); session->AddAttr(QN_INITIATOR, msg.initiator); AddXmlChildren(session, action_elems); return session; } buzz::XmlElement* WriteJingleAction(const SessionMessage& msg, const XmlElements& action_elems) { buzz::XmlElement* jingle = new buzz::XmlElement(QN_JINGLE, true); jingle->AddAttr(buzz::QN_ACTION, ToJingleString(msg.type)); jingle->AddAttr(QN_SID, msg.sid); if (msg.type == <API key>) { jingle->AddAttr(QN_INITIATOR, msg.initiator); } AddXmlChildren(jingle, action_elems); return jingle; } void WriteSessionMessage(const SessionMessage& msg, const XmlElements& action_elems, buzz::XmlElement* stanza) { stanza->SetAttr(buzz::QN_TO, msg.to); stanza->SetAttr(buzz::QN_TYPE, buzz::STR_SET); if (msg.protocol == PROTOCOL_GINGLE) { stanza->AddElement(WriteGingleAction(msg, action_elems)); } else { stanza->AddElement(WriteJingleAction(msg, action_elems)); } } TransportParser* GetTransportParser(const TransportParserMap& trans_parsers, const std::string& name) { TransportParserMap::const_iterator map = trans_parsers.find(name); if (map == trans_parsers.end()) { return NULL; } else { return map->second; } } bool ParseCandidates(SignalingProtocol protocol, const buzz::XmlElement* candidates_elem, const TransportParserMap& trans_parsers, const std::string& transport_type, Candidates* candidates, ParseError* error) { TransportParser* trans_parser = GetTransportParser(trans_parsers, transport_type); if (trans_parser == NULL) return BadParse("unknown transport type: " + transport_type, error); return trans_parser->ParseCandidates(protocol, candidates_elem, candidates, error); } bool <API key>(const buzz::XmlElement* action_elem, const ContentInfos& contents, const TransportParserMap& trans_parsers, TransportInfos* tinfos, ParseError* error) { TransportInfo tinfo(CN_OTHER, NS_GINGLE_P2P, Candidates()); if (!ParseCandidates(PROTOCOL_GINGLE, action_elem, trans_parsers, NS_GINGLE_P2P, &tinfo.candidates, error)) return false; bool has_audio = <API key>(contents, CN_AUDIO) != NULL; bool has_video = <API key>(contents, CN_VIDEO) != NULL; // If we don't have media, no need to separate the candidates. if (!has_audio && !has_video) { tinfos->push_back(tinfo); return true; } // If we have media, separate the candidates. Create the // TransportInfo here to avoid copying the candidates. TransportInfo audio_tinfo(CN_AUDIO, NS_GINGLE_P2P, Candidates()); TransportInfo video_tinfo(CN_VIDEO, NS_GINGLE_P2P, Candidates()); for (Candidates::iterator cand = tinfo.candidates.begin(); cand != tinfo.candidates.end(); cand++) { if (cand->name() == <API key> || cand->name() == <API key>) { audio_tinfo.candidates.push_back(*cand); } else if (cand->name() == <API key> || cand->name() == <API key>) { video_tinfo.candidates.push_back(*cand); } } if (has_audio) { tinfos->push_back(audio_tinfo); } if (has_video) { tinfos->push_back(video_tinfo); } return true; } bool <API key>(const buzz::XmlElement* trans_elem, const ContentInfo& content, const TransportParserMap& trans_parsers, TransportInfos* tinfos, ParseError* error) { std::string transport_type = trans_elem->Name().Namespace(); TransportInfo tinfo(content.name, transport_type, Candidates()); if (!ParseCandidates(PROTOCOL_JINGLE, trans_elem, trans_parsers, transport_type, &tinfo.candidates, error)) return false; tinfos->push_back(tinfo); return true; } bool <API key>(const buzz::XmlElement* jingle, const ContentInfos& contents, const TransportParserMap trans_parsers, TransportInfos* tinfos, ParseError* error) { for (const buzz::XmlElement* pair_elem = jingle->FirstNamed(QN_JINGLE_CONTENT); pair_elem != NULL; pair_elem = pair_elem->NextNamed(QN_JINGLE_CONTENT)) { std::string content_name; if (!RequireXmlAttr(pair_elem, <API key>, &content_name, error)) return false; const ContentInfo* content = <API key>(contents, content_name); if (!content) return BadParse("Unknown content name: " + content_name, error); const buzz::XmlElement* trans_elem; if (!RequireXmlChild(pair_elem, LN_TRANSPORT, &trans_elem, error)) return false; if (!<API key>(trans_elem, *content, trans_parsers, tinfos, error)) return false; } return true; } buzz::XmlElement* NewTransportElement(const std::string& name) { return new buzz::XmlElement(buzz::QName(name, LN_TRANSPORT), true); } bool WriteCandidates(SignalingProtocol protocol, const std::string& trans_type, const Candidates& candidates, const TransportParserMap& trans_parsers, XmlElements* elems, WriteError* error) { TransportParser* trans_parser = GetTransportParser(trans_parsers, trans_type); if (trans_parser == NULL) return BadWrite("unknown transport type: " + trans_type, error); return trans_parser->WriteCandidates(protocol, candidates, elems, error); } bool <API key>(const TransportInfos& tinfos, const TransportParserMap& trans_parsers, XmlElements* elems, WriteError* error) { for (TransportInfos::const_iterator tinfo = tinfos.begin(); tinfo != tinfos.end(); ++tinfo) { if (!WriteCandidates(PROTOCOL_GINGLE, tinfo->transport_type, tinfo->candidates, trans_parsers, elems, error)) return false; } return true; } bool <API key>(const TransportInfo& tinfo, const TransportParserMap& trans_parsers, XmlElements* elems, WriteError* error) { XmlElements candidate_elems; if (!WriteCandidates(PROTOCOL_JINGLE, tinfo.transport_type, tinfo.candidates, trans_parsers, &candidate_elems, error)) return false; buzz::XmlElement* trans_elem = NewTransportElement(tinfo.transport_type); AddXmlChildren(trans_elem, candidate_elems); elems->push_back(trans_elem); return true; } void <API key>(const std::string name, const XmlElements& pair_elems, XmlElements* elems) { buzz::XmlElement* pair_elem = new buzz::XmlElement(QN_JINGLE_CONTENT); pair_elem->SetAttr(<API key>, name); pair_elem->SetAttr(QN_CREATOR, LN_INITIATOR); AddXmlChildren(pair_elem, pair_elems); elems->push_back(pair_elem); } bool <API key>(const TransportInfos& tinfos, const TransportParserMap& trans_parsers, XmlElements* elems, WriteError* error) { for (TransportInfos::const_iterator tinfo = tinfos.begin(); tinfo != tinfos.end(); ++tinfo) { XmlElements pair_elems; if (!<API key>(*tinfo, trans_parsers, &pair_elems, error)) return false; <API key>(tinfo->content_name, pair_elems, elems); } return true; } ContentParser* GetContentParser(const ContentParserMap& content_parsers, const std::string& type) { ContentParserMap::const_iterator map = content_parsers.find(type); if (map == content_parsers.end()) { return NULL; } else { return map->second; } } bool ParseContentInfo(SignalingProtocol protocol, const std::string& name, const std::string& type, const buzz::XmlElement* elem, const ContentParserMap& parsers, ContentInfos* contents, ParseError* error) { ContentParser* parser = GetContentParser(parsers, type); if (parser == NULL) return BadParse("unknown application content: " + type, error); const ContentDescription* desc; if (!parser->ParseContent(protocol, elem, &desc, error)) return false; contents->push_back(ContentInfo(name, type, desc)); return true; } bool ParseContentType(const buzz::XmlElement* parent_elem, std::string* content_type, const buzz::XmlElement** content_elem, ParseError* error) { if (!RequireXmlChild(parent_elem, LN_DESCRIPTION, content_elem, error)) return false; *content_type = (*content_elem)->Name().Namespace(); return true; } bool <API key>(const buzz::XmlElement* session, const ContentParserMap& content_parsers, ContentInfos* contents, ParseError* error) { std::string content_type; const buzz::XmlElement* content_elem; if (!ParseContentType(session, &content_type, &content_elem, error)) return false; if (content_type == NS_GINGLE_VIDEO) { // A parser parsing audio or video content should look at the // namespace and only parse the codecs relevant to that namespace. // We use this to control which codecs get parsed: first audio, // then video. talk_base::scoped_ptr<buzz::XmlElement> audio_elem( new buzz::XmlElement(<API key>)); CopyXmlChildren(content_elem, audio_elem.get()); if (!ParseContentInfo(PROTOCOL_GINGLE, CN_AUDIO, NS_JINGLE_RTP, audio_elem.get(), content_parsers, contents, error)) return false; if (!ParseContentInfo(PROTOCOL_GINGLE, CN_VIDEO, NS_JINGLE_RTP, content_elem, content_parsers, contents, error)) return false; } else if (content_type == NS_GINGLE_AUDIO) { if (!ParseContentInfo(PROTOCOL_GINGLE, CN_AUDIO, NS_JINGLE_RTP, content_elem, content_parsers, contents, error)) return false; } else { if (!ParseContentInfo(PROTOCOL_GINGLE, CN_OTHER, content_type, content_elem, content_parsers, contents, error)) return false; } return true; } bool <API key>(const buzz::XmlElement* jingle, const ContentParserMap& content_parsers, ContentInfos* contents, ParseError* error) { for (const buzz::XmlElement* pair_elem = jingle->FirstNamed(QN_JINGLE_CONTENT); pair_elem != NULL; pair_elem = pair_elem->NextNamed(QN_JINGLE_CONTENT)) { std::string content_name; if (!RequireXmlAttr(pair_elem, <API key>, &content_name, error)) return false; std::string content_type; const buzz::XmlElement* content_elem; if (!ParseContentType(pair_elem, &content_type, &content_elem, error)) return false; if (!ParseContentInfo(PROTOCOL_JINGLE, content_name, content_type, content_elem, content_parsers, contents, error)) return false; } return true; } bool <API key>(const buzz::XmlElement* jingle, ContentGroups* groups, ParseError* error) { for (const buzz::XmlElement* pair_elem = jingle->FirstNamed(<API key>); pair_elem != NULL; pair_elem = pair_elem->NextNamed(<API key>)) { std::string group_name; if (!RequireXmlAttr(pair_elem, <API key>, &group_name, error)) return false; ContentGroup group(group_name); for (const buzz::XmlElement* child_elem = pair_elem->FirstNamed(QN_JINGLE_CONTENT); child_elem != NULL; child_elem = child_elem->NextNamed(QN_JINGLE_CONTENT)) { std::string content_name; if (!RequireXmlAttr(child_elem, <API key>, &content_name, error)) return false; group.AddContentName(content_name); } groups->push_back(group); } return true; } buzz::XmlElement* WriteContentInfo(SignalingProtocol protocol, const ContentInfo& content, const ContentParserMap& parsers, WriteError* error) { ContentParser* parser = GetContentParser(parsers, content.type); if (parser == NULL) { BadWrite("unknown content type: " + content.type, error); return NULL; } buzz::XmlElement* elem = NULL; if (!parser->WriteContent(protocol, content.description, &elem, error)) return NULL; return elem; } bool <API key>(const ContentInfos& contents, const ContentParserMap& parsers, XmlElements* elems, WriteError* error) { if (contents.size() == 1) { buzz::XmlElement* elem = WriteContentInfo( PROTOCOL_GINGLE, contents.front(), parsers, error); if (!elem) return false; elems->push_back(elem); } else if (contents.size() == 2 && contents.at(0).type == NS_JINGLE_RTP && contents.at(1).type == NS_JINGLE_RTP) { // Special-case audio + video contents so that they are "merged" // into one "video" content. buzz::XmlElement* audio = WriteContentInfo( PROTOCOL_GINGLE, contents.at(0), parsers, error); if (!audio) return false; buzz::XmlElement* video = WriteContentInfo( PROTOCOL_GINGLE, contents.at(1), parsers, error); if (!video) { delete audio; return false; } CopyXmlChildren(audio, video); elems->push_back(video); delete audio; } else { return BadWrite("Gingle protocol may only have one content.", error); } return true; } const TransportInfo* <API key>( const TransportInfos& tinfos, const std::string& content_name) { for (TransportInfos::const_iterator tinfo = tinfos.begin(); tinfo != tinfos.end(); ++tinfo) { if (content_name == tinfo->content_name) { return &*tinfo; } } return NULL; } bool <API key>(const ContentInfos& contents, const ContentParserMap& content_parsers, const TransportInfos& tinfos, const TransportParserMap& trans_parsers, XmlElements* elems, WriteError* error) { for (ContentInfos::const_iterator content = contents.begin(); content != contents.end(); ++content) { const TransportInfo* tinfo = <API key>(tinfos, content->name); if (!tinfo) return BadWrite("No transport for content: " + content->name, error); XmlElements pair_elems; buzz::XmlElement* elem = WriteContentInfo( PROTOCOL_JINGLE, *content, content_parsers, error); if (!elem) return false; pair_elems.push_back(elem); if (!<API key>(*tinfo, trans_parsers, &pair_elems, error)) return false; <API key>(content->name, pair_elems, elems); } return true; } bool <API key>(const ContentInfos& contents, const ContentGroups& groups, XmlElements* elems, WriteError* error) { if (!groups.empty()) { buzz::XmlElement* pair_elem = new buzz::XmlElement(<API key>); pair_elem->SetAttr(<API key>, GROUP_TYPE_BUNDLE); XmlElements pair_elems; for (ContentInfos::const_iterator content = contents.begin(); content != contents.end(); ++content) { buzz::XmlElement* child_elem = new buzz::XmlElement(QN_JINGLE_CONTENT, false); child_elem->SetAttr(<API key>, content->name); pair_elems.push_back(child_elem); } AddXmlChildren(pair_elem, pair_elems); elems->push_back(pair_elem); } return true; } bool ParseContentType(SignalingProtocol protocol, const buzz::XmlElement* action_elem, std::string* content_type, ParseError* error) { const buzz::XmlElement* content_elem; if (protocol == PROTOCOL_GINGLE) { if (!ParseContentType(action_elem, content_type, &content_elem, error)) return false; // Internally, we only use NS_JINGLE_RTP. if (*content_type == NS_GINGLE_AUDIO || *content_type == NS_GINGLE_VIDEO) *content_type = NS_JINGLE_RTP; } else { const buzz::XmlElement* pair_elem = action_elem->FirstNamed(QN_JINGLE_CONTENT); if (pair_elem == NULL) return BadParse("No contents found", error); if (!ParseContentType(pair_elem, content_type, &content_elem, error)) return false; // If there is more than one content type, return an error. for (; pair_elem != NULL; pair_elem = pair_elem->NextNamed(QN_JINGLE_CONTENT)) { std::string content_type2; if (!ParseContentType(pair_elem, &content_type2, &content_elem, error)) return false; if (content_type2 != *content_type) return BadParse("More than one content type found", error); } } return true; } static bool ParseContentMessage( SignalingProtocol protocol, const buzz::XmlElement* action_elem, bool expect_transports, const ContentParserMap& content_parsers, const TransportParserMap& trans_parsers, SessionInitiate* init, ParseError* error) { init->owns_contents = true; if (protocol == PROTOCOL_GINGLE) { if (!<API key>(action_elem, content_parsers, &init->contents, error)) return false; if (expect_transports && !<API key>(action_elem, init->contents, trans_parsers, &init->transports, error)) return false; } else { if (!<API key>(action_elem, content_parsers, &init->contents, error)) return false; if (!<API key>(action_elem, &init->groups, error)) return false; if (expect_transports && !<API key>(action_elem, init->contents, trans_parsers, &init->transports, error)) return false; } return true; } static bool WriteContentMessage( SignalingProtocol protocol, const ContentInfos& contents, const TransportInfos& tinfos, const ContentParserMap& content_parsers, const TransportParserMap& transport_parsers, const ContentGroups& groups, XmlElements* elems, WriteError* error) { if (protocol == PROTOCOL_GINGLE) { if (!<API key>(contents, content_parsers, elems, error)) return false; if (!<API key>(tinfos, transport_parsers, elems, error)) return false; } else { if (!<API key>(contents, content_parsers, tinfos, transport_parsers, elems, error)) return false; if (!<API key>(contents, groups, elems, error)) return false; } return true; } bool <API key>(SignalingProtocol protocol, const buzz::XmlElement* action_elem, const ContentParserMap& content_parsers, const TransportParserMap& trans_parsers, SessionInitiate* init, ParseError* error) { bool expect_transports = true; return ParseContentMessage(protocol, action_elem, expect_transports, content_parsers, trans_parsers, init, error); } bool <API key>(SignalingProtocol protocol, const ContentInfos& contents, const TransportInfos& tinfos, const ContentParserMap& content_parsers, const TransportParserMap& transport_parsers, const ContentGroups& groups, XmlElements* elems, WriteError* error) { return WriteContentMessage(protocol, contents, tinfos, content_parsers, transport_parsers, groups, elems, error); } bool ParseSessionAccept(SignalingProtocol protocol, const buzz::XmlElement* action_elem, const ContentParserMap& content_parsers, const TransportParserMap& transport_parsers, SessionAccept* accept, ParseError* error) { bool expect_transports = true; return ParseContentMessage(protocol, action_elem, expect_transports, content_parsers, transport_parsers, accept, error); } bool WriteSessionAccept(SignalingProtocol protocol, const ContentInfos& contents, const TransportInfos& tinfos, const ContentParserMap& content_parsers, const TransportParserMap& transport_parsers, const ContentGroups& groups, XmlElements* elems, WriteError* error) { return WriteContentMessage(protocol, contents, tinfos, content_parsers, transport_parsers, groups, elems, error); } bool <API key>(SignalingProtocol protocol, const buzz::XmlElement* action_elem, SessionTerminate* term, ParseError* error) { if (protocol == PROTOCOL_GINGLE) { const buzz::XmlElement* reason_elem = action_elem->FirstElement(); if (reason_elem != NULL) { term->reason = reason_elem->Name().LocalPart(); const buzz::XmlElement *debug_elem = reason_elem->FirstElement(); if (debug_elem != NULL) { term->debug_reason = debug_elem->Name().LocalPart(); } } return true; } else { const buzz::XmlElement* reason_elem = action_elem->FirstNamed(QN_JINGLE_REASON); if (reason_elem) { reason_elem = reason_elem->FirstElement(); if (reason_elem) { term->reason = reason_elem->Name().LocalPart(); } } return true; } } void <API key>(SignalingProtocol protocol, const SessionTerminate& term, XmlElements* elems) { if (protocol == PROTOCOL_GINGLE) { elems->push_back(new buzz::XmlElement(buzz::QName(NS_GINGLE, term.reason))); } else { if (!term.reason.empty()) { buzz::XmlElement* reason_elem = new buzz::XmlElement(QN_JINGLE_REASON); reason_elem->AddElement(new buzz::XmlElement( buzz::QName(NS_JINGLE, term.reason))); elems->push_back(reason_elem); } } } bool <API key>(SignalingProtocol protocol, const buzz::XmlElement* action_elem, const ContentParserMap& content_parsers, const TransportParserMap& transport_parsers, DescriptionInfo* description_info, ParseError* error) { bool expect_transports = false; return ParseContentMessage(protocol, action_elem, expect_transports, content_parsers, transport_parsers, description_info, error); } bool ParseTransportInfos(SignalingProtocol protocol, const buzz::XmlElement* action_elem, const ContentInfos& contents, const TransportParserMap& trans_parsers, TransportInfos* tinfos, ParseError* error) { if (protocol == PROTOCOL_GINGLE) { return <API key>( action_elem, contents, trans_parsers, tinfos, error); } else { return <API key>( action_elem, contents, trans_parsers, tinfos, error); } } bool WriteTransportInfos(SignalingProtocol protocol, const TransportInfos& tinfos, const TransportParserMap& trans_parsers, XmlElements* elems, WriteError* error) { if (protocol == PROTOCOL_GINGLE) { return <API key>(tinfos, trans_parsers, elems, error); } else { return <API key>(tinfos, trans_parsers, elems, error); } } bool GetUriTarget(const std::string& prefix, const std::string& str, std::string* after) { size_t pos = str.find(prefix); if (pos == std::string::npos) return false; *after = str.substr(pos + prefix.size(), std::string::npos); return true; } bool FindSessionRedirect(const buzz::XmlElement* stanza, SessionRedirect* redirect) { const buzz::XmlElement* error_elem = GetXmlChild(stanza, LN_ERROR); if (error_elem == NULL) return false; const buzz::XmlElement* redirect_elem = error_elem->FirstNamed(QN_GINGLE_REDIRECT); if (redirect_elem == NULL) redirect_elem = error_elem->FirstNamed(buzz::QN_STANZA_REDIRECT); if (redirect_elem == NULL) return false; if (!GetUriTarget(STR_REDIRECT_PREFIX, redirect_elem->BodyText(), &redirect->target)) return false; return true; } } // namespace cricket
autocommit off; create table t (a int); create view v1 as select * from t where a > 10 with check option; create view v as select * from v1 where a > 5 with cascaded check option; insert into v values (7); rollback;
#ifndef <API key> #define <API key> #include "mitkBaseRenderer.h" #include <MitkCoreExports.h> #include <itkCommand.h> #include <mitkDataStorage.h> #include <<API key>.h> #include <map> #include <utility> class vtkRenderWindow; class vtkLight; class vtkLightKit; class vtkWorldPointPicker; class vtkPointPicker; class vtkCellPicker; class vtkTextActor; class vtkTextProperty; class vtkAssemblyPath; #include <vtkAssemblyPaths.h> #include <vtkSmartPointer.h> namespace mitk { class Mapper; /*! \brief VtkPropRenderer VtkPropRenderer organizes the MITK rendering process. The MITK rendering process is completely integrated into the VTK rendering pipeline. The vtkMitkRenderProp is a custom vtkProp derived class, which implements the rendering interface between MITK and VTK. It redirects render() calls to the VtkPropRenderer, which is responsible for rendering of the datatreenodes. VtkPropRenderer replaces the old OpenGLRenderer. \sa rendering \ingroup rendering */ class MITKCORE_EXPORT VtkPropRenderer : public BaseRenderer { // Workaround for Displaylistbug private: bool didCount; void checkState(); // Workaround END public: mitkClassMacro(VtkPropRenderer, BaseRenderer); mitkNewMacro3Param(VtkPropRenderer, const char *, vtkRenderWindow *, mitk::RenderingManager *); mitkNewMacro4Param(VtkPropRenderer, const char *, vtkRenderWindow *, mitk::RenderingManager *, mitk::BaseRenderer::RenderingMode::Type); typedef std::map<int, Mapper *> MappersMapType; // Render - called by vtkMitkRenderProp, returns the number of props rendered enum RenderType { Opaque, Translucent, Overlay, Volumetric }; int Render(RenderType type); /** \brief This methods contains all method neceassary before a VTK Render() call */ virtual void PrepareRender(); // Active current renderwindow virtual void MakeCurrent(); virtual void SetDataStorage( mitk::DataStorage *storage) override; ///< set the datastorage that will be used for rendering virtual void InitRenderer(vtkRenderWindow *renderwindow) override; virtual void Update(mitk::DataNode *datatreenode); virtual void SetMapperID(const MapperSlotId mapperId) override; // Size virtual void InitSize(int w, int h) override; virtual void Resize(int w, int h) override; // Picking enum PickingMode { WorldPointPicking, PointPicking, CellPicking }; /** \brief Set the picking mode. This method is used to set the picking mode for 3D object picking. The user can select one of the three options WorldPointPicking, PointPicking and CellPicking. The first option uses the zBuffer from graphics rendering, the second uses the 3D points from the closest surface mesh, and the third option uses the cells of that mesh. The last option is the slowest, the first one the fastest. However, the first option cannot use transparent data object and the tolerance of the picked position to the selected point should be considered. PointPicking also need a tolerance around the picking position to select the closest point in the mesh. The CellPicker performs very well, if the foreground surface part (i.e. the surfacepart that is closest to the scene's cameras) needs to be picked. */ itkSetEnumMacro(PickingMode, PickingMode); itkGetEnumMacro(PickingMode, PickingMode); virtual void PickWorldPoint(const Point2D &displayPoint, Point3D &worldPoint) const override; virtual mitk::DataNode *PickObject(const Point2D &displayPosition, Point3D &worldPosition) const override; /** * @brief WriteSimpleText Write a text in a renderwindow. * * Writes some 2D text as overlay. Function returns an unique int Text_ID for each call, which can be used via the <API key>(int text_id) function in order to get a vtkTextProperty. This property enables the setup of font, font size, etc. * * @deprecatedSince{2015_05} Please use mitkTextOverlay2D instead. * See <API key> for an example. */ DEPRECATED(int WriteSimpleText(std::string text, double posX, double posY, double color1 = 0.0, double color2 = 1.0, double color3 = 0.0, float opacity = 1.0)); /** * @brief <API key> an be used in order to get a vtkTextProperty for * a specific text_id. This property enables the setup of font, font size, etc. * @param text_id the id of the text property. * @deprecatedSince{2015_05} Please use mitkTextOverlay2D instead. * See <API key> for an example. */ DEPRECATED(vtkTextProperty *<API key>(int text_id)); /** This method calculates the bounds of the DataStorage (if it contains any * valid data), creates a geometry from these bounds and sets it as world * geometry of the renderer. * * Call this method to re-initialize the renderer to the current DataStorage * (e.g. after loading an additional dataset), to ensure that the view is * aligned correctly. */ virtual bool <API key>() override; /** * \brief Used by vtkPointPicker/vtkPicker. * This will query a list of all objects in MITK and provide every vtk based mapper to the picker. */ void InitPathTraversal(); /** * \brief Used by vtkPointPicker/vtkPicker. * This will query a list of all objects in MITK and provide every vtk based mapper to the picker. */ vtkAssemblyPath *GetNextPath(); int GetNumberOfPaths(); const vtkWorldPointPicker *GetWorldPointPicker() const; const vtkPointPicker *GetPointPicker() const; const vtkCellPicker *GetCellPicker() const; /** * \brief Release vtk-based graphics resources. Called by * vtkMitkRenderProp::<API key>. */ virtual void <API key>(vtkWindow *renWin); MappersMapType GetMappersMap() const; static bool <API key>(); protected: VtkPropRenderer( const char *name = "VtkPropRenderer", vtkRenderWindow *renWin = nullptr, mitk::RenderingManager *rm = nullptr, mitk::BaseRenderer::RenderingMode::Type renderingMode = mitk::BaseRenderer::RenderingMode::Standard); virtual ~VtkPropRenderer(); virtual void Update() override; static void RenderingCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata); virtual void UpdatePaths(); // apply transformations and properties recursively private: vtkSmartPointer<vtkAssemblyPaths> m_Paths; vtkTimeStamp m_PathTime; // prepare all mitk::mappers for rendering void PrepareMapperQueue(); /** \brief Set parallel projection, remove the interactor and the lights of VTK. */ bool <API key>(); bool m_InitNeeded; bool m_ResizeNeeded; MapperSlotId <API key>; // Picking vtkWorldPointPicker *m_WorldPointPicker; vtkPointPicker *m_PointPicker; vtkCellPicker *m_CellPicker; PickingMode m_PickingMode; // Explicit use of SmartPointer to avoid circular #includes itk::SmartPointer<mitk::Mapper> <API key>; vtkLightKit *m_LightKit; // sorted list of mappers MappersMapType m_MappersMap; // rendering of text vtkRenderer *m_TextRenderer; typedef std::map<unsigned int, vtkTextActor *> TextMapType; TextMapType m_TextCollection; }; } // namespace mitk #endif /* <API key> */
import urllib from canvas import util def make_cookie_key(key): return 'after_signup_' + str(key) def _get(request, key): key = make_cookie_key(key) val = request.COOKIES.get(key) if val is not None: val = util.loads(urllib.unquote(val)) return (key, val,) def get_posted_comment(request): ''' Gets a comment waiting to be posted, if one exists. Returns a pair containing the cookie key used to retrieve it and its deserialized JSON. ''' #TODO use dcramer's django-cookies so that we don't rely on having the response object to mutate cookies. # That would make this API much cleaner and isolated. return _get(request, 'post_comment')
/* -- MAGMA (version 1.6.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2015 @author Mark Gates @generated from testing_zunmqr.cpp normal z -> s, Fri Jan 30 19:00:25 2015 */ // includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <assert.h> // includes, project #include "flops.h" #include "magma.h" #include "magma_lapack.h" #include "testings.h" /* //////////////////////////////////////////////////////////////////////////// -- Testing sormqr */ int main( int argc, char** argv ) { TESTING_INIT(); real_Double_t gflops, gpu_perf, gpu_time, cpu_perf, cpu_time; float error, work[1]; float c_neg_one = MAGMA_S_NEG_ONE; magma_int_t ione = 1; magma_int_t mm, m, n, k, size, info; magma_int_t ISEED[4] = {0,0,0,1}; magma_int_t nb, ldc, lda, lwork, lwork_max; float *C, *R, *A, *W, *tau; magma_int_t status = 0; magma_opts opts; parse_opts( argc, argv, &opts ); // need slightly looser bound (60*eps instead of 30*eps) for some tests opts.tolerance = max( 60., opts.tolerance ); float tol = opts.tolerance * lapackf77_slamch("E"); // test all combinations of input parameters magma_side_t side [] = { MagmaLeft, MagmaRight }; magma_trans_t trans[] = { MagmaTrans, MagmaNoTrans }; printf(" M N K side trans CPU GFlop/s (sec) GPU GFlop/s (sec) ||R||_F / ||QC||_F\n"); printf("===============================================================================================\n"); for( int itest = 0; itest < opts.ntest; ++itest ) { for( int iside = 0; iside < 2; ++iside ) { for( int itran = 0; itran < 2; ++itran ) { for( int iter = 0; iter < opts.niter; ++iter ) { m = opts.msize[itest]; n = opts.nsize[itest]; k = opts.ksize[itest]; nb = magma_get_sgeqrf_nb( m ); ldc = m; // A is m x k (left) or n x k (right) mm = (side[iside] == MagmaLeft ? m : n); lda = mm; gflops = FLOPS_SORMQR( m, n, k, side[iside] ) / 1e9; if ( side[iside] == MagmaLeft && m < k ) { printf( "%5d %5d %5d %4c %5c skipping because side=left and m < k\n", (int) m, (int) n, (int) k, lapacke_side_const( side[iside] ), lapacke_trans_const( trans[itran] ) ); continue; } if ( side[iside] == MagmaRight && n < k ) { printf( "%5d %5d %5d %4c %5c skipping because side=right and n < k\n", (int) m, (int) n, (int) k, lapacke_side_const( side[iside] ), lapacke_trans_const( trans[itran] ) ); continue; } // need at least 2*nb*nb for geqrf lwork_max = max( max( m*nb, n*nb ), 2*nb*nb ); TESTING_MALLOC_CPU( C, float, ldc*n ); TESTING_MALLOC_CPU( R, float, ldc*n ); TESTING_MALLOC_CPU( A, float, lda*k ); TESTING_MALLOC_CPU( W, float, lwork_max ); TESTING_MALLOC_CPU( tau, float, k ); // C is full, m x n size = ldc*n; lapackf77_slarnv( &ione, ISEED, &size, C ); lapackf77_slacpy( "Full", &m, &n, C, &ldc, R, &ldc ); size = lda*k; lapackf77_slarnv( &ione, ISEED, &size, A ); // compute QR factorization to get Householder vectors in A, tau magma_sgeqrf( mm, k, A, lda, tau, W, lwork_max, &info ); if (info != 0) printf("magma_sgeqrf returned error %d: %s.\n", (int) info, magma_strerror( info )); cpu_time = magma_wtime(); lapackf77_sormqr( lapack_side_const( side[iside] ), lapack_trans_const( trans[itran] ), &m, &n, &k, A, &lda, tau, C, &ldc, W, &lwork_max, &info ); cpu_time = magma_wtime() - cpu_time; cpu_perf = gflops / cpu_time; if (info != 0) printf("lapackf77_sormqr returned error %d: %s.\n", (int) info, magma_strerror( info )); // query for workspace size lwork = -1; magma_sormqr( side[iside], trans[itran], m, n, k, A, lda, tau, R, ldc, W, lwork, &info ); if (info != 0) printf("magma_sormqr (lwork query) returned error %d: %s.\n", (int) info, magma_strerror( info )); lwork = (magma_int_t) MAGMA_S_REAL( W[0] ); if ( lwork < 0 || lwork > lwork_max ) { printf("optimal lwork %d > lwork_max %d\n", (int) lwork, (int) lwork_max ); lwork = lwork_max; } gpu_time = magma_wtime(); magma_sormqr( side[iside], trans[itran], m, n, k, A, lda, tau, R, ldc, W, lwork, &info ); gpu_time = magma_wtime() - gpu_time; gpu_perf = gflops / gpu_time; if (info != 0) printf("magma_sormqr returned error %d: %s.\n", (int) info, magma_strerror( info )); error = lapackf77_slange( "Fro", &m, &n, C, &ldc, work ); size = ldc*n; blasf77_saxpy( &size, &c_neg_one, C, &ione, R, &ione ); error = lapackf77_slange( "Fro", &m, &n, R, &ldc, work ) / error; printf( "%5d %5d %5d %4c %5c %7.2f (%7.2f) %7.2f (%7.2f) %8.2e %s\n", (int) m, (int) n, (int) k, lapacke_side_const( side[iside] ), lapacke_trans_const( trans[itran] ), cpu_perf, cpu_time, gpu_perf, gpu_time, error, (error < tol ? "ok" : "failed") ); status += ! (error < tol); TESTING_FREE_CPU( C ); TESTING_FREE_CPU( R ); TESTING_FREE_CPU( A ); TESTING_FREE_CPU( W ); TESTING_FREE_CPU( tau ); fflush( stdout ); } if ( opts.niter > 1 ) { printf( "\n" ); } }} // end iside, itran printf( "\n" ); } TESTING_FINALIZE(); return status; }