oif-qml-1.0.7/CMakeLists.txt0000644000000000000000000000141312004105261013737 0ustar 00000000000000project(oif-qml) cmake_minimum_required(VERSION 2.8) # Build flags set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -fvisibility=hidden") # Dependencies include(FindPkgConfig) find_package(Qt4 REQUIRED) find_package(PkgConfig REQUIRED) find_package(Doxygen) pkg_check_modules(GEIS REQUIRED libgeis) include_directories( ${QT_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR} ${QT_QTDECLARATIVE_INCLUDE_DIR} ${GEIS_INCLUDE_DIRS} ) # Source add_subdirectory(src) # Distribution settings set(PROJECT_VERSION "1.0.7") set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${PROJECT_VERSION}) add_custom_target(dist COMMAND bzr export --root=${ARCHIVE_NAME} ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.gz WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) oif-qml-1.0.7/COPYING0000644000000000000000000000134012004105261012231 0ustar 00000000000000oif-qml: a QML plugin for providing Open Input Framework gesture events Copyright (C) 2011 Canonical, Ltd. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . oif-qml-1.0.7/Doxyfile.in0000644000000000000000000021646112004105261013325 0ustar 00000000000000# Doxyfile 1.7.3 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project # # All text after a hash (#) is considered a comment and will be ignored # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (" ") #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # This tag specifies the encoding used for all characters in the config file # that follow. The default is UTF-8 which is also the encoding used for all # text before the first occurrence of this tag. Doxygen uses libiconv (or the # iconv built into libc) for the transcoding. See # http://www.gnu.org/software/libiconv for the list of possible encodings. DOXYFILE_ENCODING = UTF-8 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. PROJECT_NAME = oif-qml # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or # if some version control system is used. PROJECT_NUMBER = 1.0 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer # a quick idea about the purpose of the project. Keep the description short. PROJECT_BRIEF = "A QML plugin for the Open Input Framework gesture stack" # With the PROJECT_LOGO tag one can specify an logo or icon that is # included in the documentation. The maximum height of the logo should not # exceed 55 pixels and the maximum width should not exceed 200 pixels. # Doxygen will copy the logo to the output directory. PROJECT_LOGO = # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. # If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. OUTPUT_DIRECTORY = # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create # 4096 sub-directories (in 2 levels) under the output directory of each output # format and will distribute the generated files over these directories. # Enabling this option can be useful when feeding doxygen a huge amount of # source files, where putting all generated files in the same directory would # otherwise cause performance problems for the file system. CREATE_SUBDIRS = NO # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # The default language is English, other supported languages are: # Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, # Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, # Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English # messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, # Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, # Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. OUTPUT_LANGUAGE = English # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will # include brief member descriptions after the members that are listed in # the file and class documentation (similar to JavaDoc). # Set to NO to disable this. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend # the brief description of a member or function before the detailed description. # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. REPEAT_BRIEF = YES # This tag implements a quasi-intelligent brief description abbreviator # that is used to form the text in various listings. Each string # in this list, if found as the leading text of the brief description, will be # stripped from the text and the result after processing the whole list, is # used as the annotated text. Otherwise, the brief description is used as-is. # If left blank, the following values are used ("$name" is automatically # replaced with the name of the entity): "The $name class" "The $name widget" # "The $name file" "is" "provides" "specifies" "contains" # "represents" "a" "an" "the" ABBREVIATE_BRIEF = "The $name class" \ "The $name widget" \ "The $name file" \ is \ provides \ specifies \ contains \ represents \ a \ an \ the # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # Doxygen will generate a detailed section even if there is only a brief # description. ALWAYS_DETAILED_SEC = YES # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all # inherited members of a class in the documentation of that class as if those # members were ordinary class members. Constructors, destructors and assignment # operators of the base classes will not be shown. INLINE_INHERITED_MEMB = YES # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full # path before files name in the file list and in the header files. If set # to NO the shortest path that makes the file name unique will be used. FULL_PATH_NAMES = YES # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag # can be used to strip a user-defined part of the path. Stripping is # only done if one of the specified strings matches the left-hand part of # the path. The tag can be used to show relative paths in the file list. # If left blank the directory from which doxygen is run is used as the # path to strip. STRIP_FROM_PATH = # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of # the path mentioned in the documentation of a class, which tells # the reader which header file to include in order to use a class. # If left blank only the name of the header file containing the class # definition is used. Otherwise one should specify the include paths that # are normally passed to the compiler using the -I flag. STRIP_FROM_INC_PATH = # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter # (but less readable) file names. This can be useful if your file system # doesn't support long names like on DOS, Mac, or CD-ROM. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen # will interpret the first line (until the first dot) of a JavaDoc-style # comment as the brief description. If set to NO, the JavaDoc # comments will behave just like regular Qt-style comments # (thus requiring an explicit @brief command for a brief description.) JAVADOC_AUTOBRIEF = YES # If the QT_AUTOBRIEF tag is set to YES then Doxygen will # interpret the first line (until the first dot) of a Qt-style # comment as the brief description. If set to NO, the comments # will behave just like regular Qt-style comments (thus requiring # an explicit \brief command for a brief description.) QT_AUTOBRIEF = NO # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen # treat a multi-line C++ special comment block (i.e. a block of //! or /// # comments) as a brief description. This used to be the default behaviour. # The new default is to treat a multi-line C++ comment block as a detailed # description. Set this tag to YES if you prefer the old behaviour instead. MULTILINE_CPP_IS_BRIEF = NO # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented # member inherits the documentation from any documented member that it # re-implements. INHERIT_DOCS = NO # If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce # a new page for each member. If set to NO, the documentation of a member will # be part of the file/class/namespace that contains it. SEPARATE_MEMBER_PAGES = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. # Doxygen uses this value to replace tabs by spaces in code fragments. TAB_SIZE = 8 # This tag can be used to specify a number of aliases that acts # as commands in the documentation. An alias has the form "name=value". # For example adding "sideeffect=\par Side Effects:\n" will allow you to # put the command \sideeffect (or @sideeffect) in the documentation, which # will result in a user-defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. ALIASES = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C # sources only. Doxygen will then generate output that is more tailored for C. # For instance, some of the names that are used will be different. The list # of all members will be omitted, etc. OPTIMIZE_OUTPUT_FOR_C = NO # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java # sources only. Doxygen will then generate output that is more tailored for # Java. For instance, namespaces will be presented as packages, qualified # scopes will look different, etc. OPTIMIZE_OUTPUT_JAVA = NO # Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran # sources only. Doxygen will then generate output that is more tailored for # Fortran. OPTIMIZE_FOR_FORTRAN = NO # Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL # sources. Doxygen will then generate output that is tailored for # VHDL. OPTIMIZE_OUTPUT_VHDL = NO # Doxygen selects the parser to use depending on the extension of the files it # parses. With this tag you can assign which parser to use for a given extension. # Doxygen has a built-in mapping, but you can override or extend it using this # tag. The format is ext=language, where ext is a file extension, and language # is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, # C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make # doxygen treat .inc files as Fortran files (default is PHP), and .f files as C # (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions # you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. EXTENSION_MAPPING = # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want # to include (a tag file for) the STL sources as input, then you should # set this tag to YES in order to let doxygen match functions declarations and # definitions whose arguments contain STL classes (e.g. func(std::string); v.s. # func(std::string) {}). This also makes the inheritance and collaboration # diagrams that involve STL classes more complete and accurate. BUILTIN_STL_SUPPORT = NO # If you use Microsoft's C++/CLI language, you should set this option to YES to # enable parsing support. CPP_CLI_SUPPORT = NO # Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. # Doxygen will parse them like normal C++ but will assume all classes use public # instead of private inheritance when no explicit protection keyword is present. SIP_SUPPORT = NO # For Microsoft's IDL there are propget and propput attributes to indicate getter # and setter methods for a property. Setting this option to YES (the default) # will make doxygen replace the get and set methods by a property in the # documentation. This will only work if the methods are indeed getting or # setting a simple type. If this is not the case, or you want to show the # methods anyway, you should set this option to NO. IDL_PROPERTY_SUPPORT = YES # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES, then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. DISTRIBUTE_GROUP_DOC = NO # Set the SUBGROUPING tag to YES (the default) to allow class member groups of # the same type (for instance a group of public functions) to be put as a # subgroup of that type (e.g. under the Public Functions section). Set it to # NO to prevent subgrouping. Alternatively, this can be done per class using # the \nosubgrouping command. SUBGROUPING = YES # When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum # is documented as struct, union, or enum with the name of the typedef. So # typedef struct TypeS {} TypeT, will appear in the documentation as a struct # with name TypeT. When disabled the typedef will appear as a member of a file, # namespace, or class. And the struct will be named TypeS. This can typically # be useful for C code in case the coding convention dictates that all compound # types are typedef'ed and only the typedef is referenced, never the tag name. TYPEDEF_HIDES_STRUCT = NO # The SYMBOL_CACHE_SIZE determines the size of the internal cache use to # determine which symbols to keep in memory and which to flush to disk. # When the cache is full, less often used symbols will be written to disk. # For small to medium size projects (<1000 input files) the default value is # probably good enough. For larger projects a too small cache size can cause # doxygen to be busy swapping symbols to and from disk most of the time # causing a significant performance penalty. # If the system has enough physical memory increasing the cache will improve the # performance by keeping more symbols in memory. Note that the value works on # a logarithmic scale so increasing the size by one will roughly double the # memory usage. The cache size is given by this formula: # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, # corresponding to a cache size of 2^16 = 65536 symbols SYMBOL_CACHE_SIZE = 0 #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in # documentation are documented, even if no documentation was available. # Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES EXTRACT_ALL = NO # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = NO # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. EXTRACT_STATIC = NO # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) # defined locally in source files will be included in the documentation. # If set to NO only classes defined in header files are included. EXTRACT_LOCAL_CLASSES = NO # This flag is only useful for Objective-C code. When set to YES local # methods, which are defined in the implementation section but not in # the interface are included in the documentation. # If set to NO (the default) only methods in the interface are included. EXTRACT_LOCAL_METHODS = NO # If this flag is set to YES, the members of anonymous namespaces will be # extracted and appear in the documentation as a namespace called # 'anonymous_namespace{file}', where file will be replaced with the base # name of the file that contains the anonymous namespace. By default # anonymous namespaces are hidden. EXTRACT_ANON_NSPACES = NO # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all # undocumented members of documented classes, files or namespaces. # If set to NO (the default) these members will be included in the # various overviews, but no documentation section is generated. # This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_MEMBERS = YES # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. # If set to NO (the default) these classes will be included in the various # overviews. This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_CLASSES = YES # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all # friend (class|struct|union) declarations. # If set to NO (the default) these declarations will be included in the # documentation. HIDE_FRIEND_COMPOUNDS = YES # If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any # documentation blocks found inside the body of a function. # If set to NO (the default) these blocks will be appended to the # function's detailed documentation block. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation # that is typed after a \internal command is included. If the tag is set # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. INTERNAL_DOCS = NO # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower-case letters. If set to YES upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # and Mac users are advised to set this option to NO. CASE_SENSE_NAMES = NO # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen # will show members with their full class and namespace scopes in the # documentation. If set to YES the scope will be hidden. HIDE_SCOPE_NAMES = NO # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen # will put a list of the files that are included by a file in the documentation # of that file. SHOW_INCLUDE_FILES = NO # If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen # will list include files with double quotes in the documentation # rather than with sharp brackets. FORCE_LOCAL_INCLUDES = NO # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] # is inserted in the documentation for inline members. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen # will sort the (detailed) documentation of file and class members # alphabetically by member name. If set to NO the members will appear in # declaration order. SORT_MEMBER_DOCS = YES # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the # brief documentation of file, namespace and class members alphabetically # by member name. If set to NO (the default) the members will appear in # declaration order. SORT_BRIEF_DOCS = NO # If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen # will sort the (brief and detailed) documentation of class members so that # constructors and destructors are listed first. If set to NO (the default) # the constructors will appear in the respective orders defined by # SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. # This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO # and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. SORT_MEMBERS_CTORS_1ST = NO # If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the # hierarchy of group names into alphabetical order. If set to NO (the default) # the group names will appear in their defined order. SORT_GROUP_NAMES = NO # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be # sorted by fully-qualified names, including namespaces. If set to # NO (the default), the class list will be sorted only by class name, # not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. # Note: This option applies only to the class list, not to the # alphabetical list. SORT_BY_SCOPE_NAME = NO # If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to # do proper type resolution of all parameters of a function it will reject a # match between the prototype and the implementation of a member function even # if there is only one candidate or it is obvious which candidate to choose # by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen # will still accept a match between prototype and implementation in such cases. STRICT_PROTO_MATCHING = NO # The GENERATE_TODOLIST tag can be used to enable (YES) or # disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. GENERATE_TODOLIST = NO # The GENERATE_TESTLIST tag can be used to enable (YES) or # disable (NO) the test list. This list is created by putting \test # commands in the documentation. GENERATE_TESTLIST = NO # The GENERATE_BUGLIST tag can be used to enable (YES) or # disable (NO) the bug list. This list is created by putting \bug # commands in the documentation. GENERATE_BUGLIST = NO # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or # disable (NO) the deprecated list. This list is created by putting # \deprecated commands in the documentation. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional # documentation sections, marked by \if sectionname ... \endif. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines # the initial value of a variable or macro consists of for it to appear in # the documentation. If the initializer consists of more lines than specified # here it will be hidden. Use a value of 0 to hide initializers completely. # The appearance of the initializer of individual variables and macros in the # documentation can be controlled using \showinitializer or \hideinitializer # command in the documentation regardless of this setting. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated # at the bottom of the documentation of classes and structs. If set to YES the # list will mention the files that were used to generate the documentation. SHOW_USED_FILES = NO # If the sources in your project are distributed over multiple directories # then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy # in the documentation. The default is NO. SHOW_DIRECTORIES = NO # Set the SHOW_FILES tag to NO to disable the generation of the Files page. # This will remove the Files entry from the Quick Index and from the # Folder Tree View (if specified). The default is YES. SHOW_FILES = NO # Set the SHOW_NAMESPACES tag to NO to disable the generation of the # Namespaces page. This will remove the Namespaces entry from the Quick Index # and from the Folder Tree View (if specified). The default is YES. SHOW_NAMESPACES = NO # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from # the version control system). Doxygen will invoke the program by executing (via # popen()) the command , where is the value of # the FILE_VERSION_FILTER tag, and is the name of an input file # provided by doxygen. Whatever the program writes to standard output # is used as the file version. See the manual for examples. FILE_VERSION_FILTER = # The LAYOUT_FILE tag can be used to specify a layout file which will be parsed # by doxygen. The layout file controls the global structure of the generated # output files in an output format independent way. The create the layout file # that represents doxygen's defaults, run doxygen with the -l option. # You can optionally specify a file name after the option, if omitted # DoxygenLayout.xml will be used as the name of the layout file. LAYOUT_FILE = #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated # by doxygen. Possible values are YES and NO. If left blank NO is used. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated by doxygen. Possible values are YES and NO. If left blank # NO is used. WARNINGS = YES # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings # for undocumented members. If EXTRACT_ALL is set to YES then this flag will # automatically be disabled. WARN_IF_UNDOCUMENTED = YES # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some # parameters in a documented function, or documenting parameters that # don't exist or using markup commands wrongly. WARN_IF_DOC_ERROR = YES # The WARN_NO_PARAMDOC option can be enabled to get warnings for # functions that are documented, but have no documentation for their parameters # or return value. If set to NO (the default) doxygen will only warn about # wrong or incomplete parameter documentation, but not about the absence of # documentation. WARN_NO_PARAMDOC = NO # The WARN_FORMAT tag determines the format of the warning messages that # doxygen can produce. The string should contain the $file, $line, and $text # tags, which will be replaced by the file and line number from which the # warning originated and the warning text. Optionally the format may contain # $version, which will be replaced by the version of the file (if it could # be obtained via FILE_VERSION_FILTER) WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning # and error messages should be written. If left blank the output is written # to stderr. WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag can be used to specify the files and/or directories that contain # documented source files. You may enter file names like "myfile.cpp" or # directories like "/usr/src/myproject". Separate the files or directories # with spaces. INPUT = @CMAKE_SOURCE_DIR@/src # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is # also the default input encoding. Doxygen uses libiconv (or the iconv built # into libc) for the transcoding. See http://www.gnu.org/software/libiconv for # the list of possible encodings. INPUT_ENCODING = UTF-8 # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank the following patterns are tested: # *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh # *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py # *.f90 *.f *.for *.vhd *.vhdl FILE_PATTERNS = *.c \ *.cc \ *.cxx \ *.cpp \ *.c++ \ *.d \ *.java \ *.ii \ *.ixx \ *.ipp \ *.i++ \ *.inl \ *.h \ *.hh \ *.hxx \ *.hpp \ *.h++ \ *.idl \ *.odl \ *.cs \ *.php \ *.php3 \ *.inc \ *.m \ *.mm \ *.dox \ *.py \ *.f90 \ *.f \ *.for \ *.vhd \ *.vhdl # The RECURSIVE tag can be used to turn specify whether or not subdirectories # should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. RECURSIVE = NO # The EXCLUDE tag can be used to specify files and/or directories that should # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded # from the input. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. Note that the wildcards are matched # against the file with absolute path, so to exclude all test directories # for example use the pattern */test/* EXCLUDE_PATTERNS = # The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names # (namespaces, classes, functions, etc.) that should be excluded from the # output. The symbol name can be a fully qualified name, a word, or if the # wildcard * is used, a substring. Examples: ANamespace, AClass, # AClass::ANamespace, ANamespace::*Test EXCLUDE_SYMBOLS = # The EXAMPLE_PATH tag can be used to specify one or more files or # directories that contain example code fragments that are included (see # the \include command). EXAMPLE_PATH = # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. EXAMPLE_PATTERNS = * # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude # commands irrespective of the value of the RECURSIVE tag. # Possible values are YES and NO. If left blank NO is used. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or # directories that contain image that are included in the documentation (see # the \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command , where # is the value of the INPUT_FILTER tag, and is the name of an # input file. Doxygen will then use the output that the filter program writes # to standard output. If FILTER_PATTERNS is specified, this tag will be # ignored. INPUT_FILTER = @CMAKE_SOURCE_DIR@/qmlize_doxygen # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern # basis. Doxygen will compare the file name with each pattern and apply the # filter if there is a match. The filters are a list of the form: # pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further # info on how filters are used. If FILTER_PATTERNS is empty or if # non of the patterns match the file name, INPUT_FILTER is applied. FILTER_PATTERNS = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will be used to filter the input files when producing source # files to browse (i.e. when SOURCE_BROWSER is set to YES). FILTER_SOURCE_FILES = NO # The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file # pattern. A pattern will override the setting for FILTER_PATTERN (if any) # and it is also possible to disable source filtering for a specific pattern # using *.ext= (so without naming a filter). This option only has effect when # FILTER_SOURCE_FILES is enabled. FILTER_SOURCE_PATTERNS = #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will # be generated. Documented entities will be cross-referenced with these sources. # Note: To get rid of all source code in the generated output, make sure also # VERBATIM_HEADERS is set to NO. SOURCE_BROWSER = NO # Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct # doxygen to hide any special comment blocks from generated source code # fragments. Normal C and C++ comments will always remain visible. STRIP_CODE_COMMENTS = YES # If the REFERENCED_BY_RELATION tag is set to YES # then for each documented function all documented # functions referencing it will be listed. REFERENCED_BY_RELATION = NO # If the REFERENCES_RELATION tag is set to YES # then for each documented function all documented entities # called/used by that function will be listed. REFERENCES_RELATION = NO # If the REFERENCES_LINK_SOURCE tag is set to YES (the default) # and SOURCE_BROWSER tag is set to YES, then the hyperlinks from # functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will # link to the source code. Otherwise they will link to the documentation. REFERENCES_LINK_SOURCE = YES # If the USE_HTAGS tag is set to YES then the references to source code # will point to the HTML generated by the htags(1) tool instead of doxygen # built-in source browser. The htags tool is part of GNU's global source # tagging system (see http://www.gnu.org/software/global/global.html). You # will need version 4.8.6 or higher. USE_HTAGS = NO # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen # will generate a verbatim copy of the header file for each class for # which an include is specified. Set to NO to disable this. VERBATIM_HEADERS = NO #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index # of all compounds will be generated. Enable this if the project # contains a lot of classes, structs, unions or interfaces. ALPHABETICAL_INDEX = NO # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns # in which this list will be split (can be a number in the range [1..20]) COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all # classes will be put under the same header in the alphabetical index. # The IGNORE_PREFIX tag can be used to specify one or more prefixes that # should be ignored while generating the index headers. IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES (the default) Doxygen will # generate HTML output. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `html' will be used as the default path. HTML_OUTPUT = html # The HTML_FILE_EXTENSION tag can be used to specify the file extension for # each generated HTML page (for example: .htm,.php,.asp). If it is left blank # doxygen will generate files with .html extension. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a personal HTML header for # each generated HTML page. If it is left blank doxygen will generate a # standard header. HTML_HEADER = # The HTML_FOOTER tag can be used to specify a personal HTML footer for # each generated HTML page. If it is left blank doxygen will generate a # standard footer. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading # style sheet that is used by each HTML page. It can be used to # fine-tune the look of the HTML output. If the tag is left blank doxygen # will generate a default style sheet. Note that doxygen will try to copy # the style sheet file to the HTML output directory, so don't put your own # stylesheet in the HTML output directory as well, or it will be erased! HTML_STYLESHEET = # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. # Doxygen will adjust the colors in the stylesheet and background images # according to this color. Hue is specified as an angle on a colorwheel, # see http://en.wikipedia.org/wiki/Hue for more information. # For instance the value 0 represents red, 60 is yellow, 120 is green, # 180 is cyan, 240 is blue, 300 purple, and 360 is red again. # The allowed range is 0 to 359. HTML_COLORSTYLE_HUE = 220 # The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of # the colors in the HTML output. For a value of 0 the output will use # grayscales only. A value of 255 will produce the most vivid colors. HTML_COLORSTYLE_SAT = 100 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to # the luminance component of the colors in the HTML output. Values below # 100 gradually make the output lighter, whereas values above 100 make # the output darker. The value divided by 100 is the actual gamma applied, # so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, # and 100 does not change the gamma. HTML_COLORSTYLE_GAMMA = 80 # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML # page will contain the date and time when the page was generated. Setting # this to NO can help when comparing the output of multiple runs. HTML_TIMESTAMP = YES # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, # files or namespaces will be aligned in HTML using tables. If set to # NO a bullet list will be used. HTML_ALIGN_MEMBERS = YES # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML # documentation will contain sections that can be hidden and shown after the # page has loaded. For this to work a browser that supports # JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox # Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). HTML_DYNAMIC_SECTIONS = NO # If the GENERATE_DOCSET tag is set to YES, additional index files # will be generated that can be used as input for Apple's Xcode 3 # integrated development environment, introduced with OSX 10.5 (Leopard). # To create a documentation set, doxygen will generate a Makefile in the # HTML output directory. Running make will produce the docset in that # directory and running "make install" will install the docset in # ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find # it at startup. # See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html # for more information. GENERATE_DOCSET = NO # When GENERATE_DOCSET tag is set to YES, this tag determines the name of the # feed. A documentation feed provides an umbrella under which multiple # documentation sets from a single provider (such as a company or product suite) # can be grouped. DOCSET_FEEDNAME = "Doxygen generated docs" # When GENERATE_DOCSET tag is set to YES, this tag specifies a string that # should uniquely identify the documentation set bundle. This should be a # reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen # will append .docset to the name. DOCSET_BUNDLE_ID = org.doxygen.Project # When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify # the documentation publisher. This should be a reverse domain-name style # string, e.g. com.mycompany.MyDocSet.documentation. DOCSET_PUBLISHER_ID = org.doxygen.Publisher # The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. DOCSET_PUBLISHER_NAME = Publisher # If the GENERATE_HTMLHELP tag is set to YES, additional index files # will be generated that can be used as input for tools like the # Microsoft HTML help workshop to generate a compiled HTML help file (.chm) # of the generated HTML documentation. GENERATE_HTMLHELP = NO # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can # be used to specify the file name of the resulting .chm file. You # can add a path in front of the file if the result should not be # written to the html output directory. CHM_FILE = # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can # be used to specify the location (absolute path including file name) of # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run # the HTML help compiler on the generated index.hhp. HHC_LOCATION = # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag # controls if a separate .chi index file is generated (YES) or that # it should be included in the master .chm file (NO). GENERATE_CHI = NO # If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING # is used to encode HtmlHelp index (hhk), content (hhc) and project file # content. CHM_INDEX_ENCODING = # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag # controls whether a binary table of contents is generated (YES) or a # normal table of contents (NO) in the .chm file. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members # to the contents of the HTML help documentation and to the tree view. TOC_EXPAND = NO # If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and # QHP_VIRTUAL_FOLDER are set, an additional index file will be generated # that can be used as input for Qt's qhelpgenerator to generate a # Qt Compressed Help (.qch) of the generated HTML documentation. GENERATE_QHP = YES # If the QHG_LOCATION tag is specified, the QCH_FILE tag can # be used to specify the file name of the resulting .qch file. # The path specified is relative to the HTML output folder. QCH_FILE = ../qch/oif-qml.qch # The QHP_NAMESPACE tag specifies the namespace to use when generating # Qt Help Project output. For more information please see # http://doc.trolltech.com/qthelpproject.html#namespace QHP_NAMESPACE = com.canonical.oif.oif-qml # The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating # Qt Help Project output. For more information please see # http://doc.trolltech.com/qthelpproject.html#virtual-folders QHP_VIRTUAL_FOLDER = doc # If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to # add. For more information please see # http://doc.trolltech.com/qthelpproject.html#custom-filters QHP_CUST_FILTER_NAME = # The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the # custom filter to add. For more information please see # # Qt Help Project / Custom Filters. QHP_CUST_FILTER_ATTRS = # The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this # project's # filter section matches. # # Qt Help Project / Filter Attributes. QHP_SECT_FILTER_ATTRS = # If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can # be used to specify the location of Qt's qhelpgenerator. # If non-empty doxygen will try to run qhelpgenerator on the generated # .qhp file. QHG_LOCATION = qhelpgenerator # If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files # will be generated, which together with the HTML files, form an Eclipse help # plugin. To install this plugin and make it available under the help contents # menu in Eclipse, the contents of the directory containing the HTML and XML # files needs to be copied into the plugins directory of eclipse. The name of # the directory within the plugins directory should be the same as # the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before # the help appears. GENERATE_ECLIPSEHELP = NO # A unique identifier for the eclipse help plugin. When installing the plugin # the directory name containing the HTML and XML files should also have # this name. ECLIPSE_DOC_ID = org.doxygen.Project # The DISABLE_INDEX tag can be used to turn on/off the condensed index at # top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. DISABLE_INDEX = YES # This tag can be used to set the number of enum values (range [0,1..20]) # that doxygen will group on one line in the generated HTML documentation. # Note that a value of 0 will completely suppress the enum values from # appearing in the overview section. ENUM_VALUES_PER_LINE = 0 # The GENERATE_TREEVIEW tag is used to specify whether a tree-like index # structure should be generated to display hierarchical information. # If the tag value is set to YES, a side panel will be generated # containing a tree-like index structure (just like the one that # is generated for HTML Help). For this to work a browser that supports # JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). # Windows users are probably better off using the HTML help feature. GENERATE_TREEVIEW = YES # By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, # and Class Hierarchy pages using a tree view instead of an ordered list. USE_INLINE_TREES = NO # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be # used to set the initial width (in pixels) of the frame in which the tree # is shown. TREEVIEW_WIDTH = 250 # When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open # links to external symbols imported via tag files in a separate window. EXT_LINKS_IN_WINDOW = NO # Use this tag to change the font size of Latex formulas included # as images in the HTML documentation. The default is 10. Note that # when you change the font size after a successful doxygen run you need # to manually remove any form_*.png images from the HTML output directory # to force them to be regenerated. FORMULA_FONTSIZE = 10 # Use the FORMULA_TRANPARENT tag to determine whether or not the images # generated for formulas are transparent PNGs. Transparent PNGs are # not supported properly for IE 6.0, but are supported on all modern browsers. # Note that when changing this option you need to delete any form_*.png files # in the HTML output before the changes have effect. FORMULA_TRANSPARENT = YES # Enable the USE_MATHJAX option to render LaTeX formulas using MathJax # (see http://www.mathjax.org) which uses client side Javascript for the # rendering instead of using prerendered bitmaps. Use this if you do not # have LaTeX installed or if you want to formulas look prettier in the HTML # output. When enabled you also need to install MathJax separately and # configure the path to it using the MATHJAX_RELPATH option. USE_MATHJAX = NO # When MathJax is enabled you need to specify the location relative to the # HTML output directory using the MATHJAX_RELPATH option. The destination # directory should contain the MathJax.js script. For instance, if the mathjax # directory is located at the same level as the HTML output directory, then # MATHJAX_RELPATH should be ../mathjax. The default value points to the # mathjax.org site, so you can quickly see the result without installing # MathJax, but it is strongly recommended to install a local copy of MathJax # before deployment. MATHJAX_RELPATH = http://www.mathjax.org/mathjax # When the SEARCHENGINE tag is enabled doxygen will generate a search box # for the HTML output. The underlying search engine uses javascript # and DHTML and should work on any modern browser. Note that when using # HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets # (GENERATE_DOCSET) there is already a search function so this one should # typically be disabled. For large projects the javascript based search engine # can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. SEARCHENGINE = NO # When the SERVER_BASED_SEARCH tag is enabled the search engine will be # implemented using a PHP enabled web server instead of at the web client # using Javascript. Doxygen will generate the search PHP script and index # file to put on the web server. The advantage of the server # based approach is that it scales better to large projects and allows # full text search. The disadvantages are that it is more difficult to setup # and does not have live searching capabilities. SERVER_BASED_SEARCH = NO #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. GENERATE_LATEX = NO # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `latex' will be used as the default path. LATEX_OUTPUT = latex # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be # invoked. If left blank `latex' will be used as the default command name. # Note that when enabling USE_PDFLATEX this option is only used for # generating bitmaps for formulas in the HTML output, but not in the # Makefile that is written to the output directory. LATEX_CMD_NAME = latex # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to # generate index for LaTeX. If left blank `makeindex' will be used as the # default command name. MAKEINDEX_CMD_NAME = makeindex # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact # LaTeX documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_LATEX = NO # The PAPER_TYPE tag can be used to set the paper type that is used # by the printer. Possible values are: a4, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4 # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX # packages that should be included in the LaTeX output. EXTRA_PACKAGES = # The LATEX_HEADER tag can be used to specify a personal LaTeX header for # the generated latex document. The header should contain everything until # the first chapter. If it is left blank doxygen will generate a # standard header. Notice: only use this tag if you know what you are doing! LATEX_HEADER = # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated # is prepared for conversion to pdf (using ps2pdf). The pdf file will # contain links (just like the HTML output) instead of page references # This makes the output suitable for online browsing using a pdf viewer. PDF_HYPERLINKS = YES # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of # plain latex in the generated Makefile. Set this option to YES to get a # higher quality PDF documentation. USE_PDFLATEX = YES # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. # command to the generated LaTeX files. This will instruct LaTeX to keep # running if errors occur, instead of asking the user for help. # This option is also used when generating formulas in HTML. LATEX_BATCHMODE = NO # If LATEX_HIDE_INDICES is set to YES then doxygen will not # include the index chapters (such as File Index, Compound Index, etc.) # in the output. LATEX_HIDE_INDICES = NO # If LATEX_SOURCE_CODE is set to YES then doxygen will include # source code with syntax highlighting in the LaTeX output. # Note that which sources are shown also depends on other settings # such as SOURCE_BROWSER. LATEX_SOURCE_CODE = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output # The RTF output is optimized for Word 97 and may not look very pretty with # other RTF readers or editors. GENERATE_RTF = NO # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `rtf' will be used as the default path. RTF_OUTPUT = rtf # If the COMPACT_RTF tag is set to YES Doxygen generates more compact # RTF documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_RTF = NO # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated # will contain hyperlink fields. The RTF file will # contain links (just like the HTML output) instead of page references. # This makes the output suitable for online browsing using WORD or other # programs which support those fields. # Note: wordpad (write) and others do not support links. RTF_HYPERLINKS = NO # Load stylesheet definitions from file. Syntax is similar to doxygen's # config file, i.e. a series of assignments. You only have to provide # replacements, missing definitions are set to their default value. RTF_STYLESHEET_FILE = # Set optional variables used in the generation of an rtf document. # Syntax is similar to doxygen's config file. RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- # If the GENERATE_MAN tag is set to YES (the default) Doxygen will # generate man pages GENERATE_MAN = YES # The MAN_OUTPUT tag is used to specify where the man pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `man' will be used as the default path. MAN_OUTPUT = man # The MAN_EXTENSION tag determines the extension that is added to # the generated man pages (default is the subroutine's section .3) MAN_EXTENSION = .3 # If the MAN_LINKS tag is set to YES and Doxygen generates man output, # then it will generate one additional man file for each entity # documented in the real man page(s). These additional files # only source the real man page, but without them the man command # would be unable to find the correct page. The default is NO. MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- # If the GENERATE_XML tag is set to YES Doxygen will # generate an XML file that captures the structure of # the code including all documentation. GENERATE_XML = NO # The XML_OUTPUT tag is used to specify where the XML pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `xml' will be used as the default path. XML_OUTPUT = xml # The XML_SCHEMA tag can be used to specify an XML schema, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_SCHEMA = # The XML_DTD tag can be used to specify an XML DTD, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_DTD = # If the XML_PROGRAMLISTING tag is set to YES Doxygen will # dump the program listings (including syntax highlighting # and cross-referencing information) to the XML output. Note that # enabling this will significantly increase the size of the XML output. XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- # If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will # generate an AutoGen Definitions (see autogen.sf.net) file # that captures the structure of the code including all # documentation. Note that this feature is still experimental # and incomplete at the moment. GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- # If the GENERATE_PERLMOD tag is set to YES Doxygen will # generate a Perl module file that captures the structure of # the code including all documentation. Note that this # feature is still experimental and incomplete at the # moment. GENERATE_PERLMOD = NO # If the PERLMOD_LATEX tag is set to YES Doxygen will generate # the necessary Makefile rules, Perl scripts and LaTeX code to be able # to generate PDF and DVI output from the Perl module output. PERLMOD_LATEX = NO # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be # nicely formatted so it can be parsed by a human reader. This is useful # if you want to understand what is going on. On the other hand, if this # tag is set to NO the size of the Perl module output will be much smaller # and Perl will parse it just the same. PERLMOD_PRETTY = YES # The names of the make variables in the generated doxyrules.make file # are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. # This is useful so different doxyrules.make files included by the same # Makefile don't overwrite each other's variables. PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will # evaluate all C-preprocessor directives found in the sources and include # files. ENABLE_PREPROCESSING = YES # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro # names in the source code. If set to NO (the default) only conditional # compilation will be performed. Macro expansion can be done in a controlled # way by setting EXPAND_ONLY_PREDEF to YES. MACRO_EXPANSION = YES # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES # then the macro expansion is limited to the macros specified with the # PREDEFINED and EXPAND_AS_DEFINED tags. EXPAND_ONLY_PREDEF = YES # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # in the INCLUDE_PATH (see below) will be search if a #include is found. SEARCH_INCLUDES = YES # The INCLUDE_PATH tag can be used to specify one or more directories that # contain include files that are not input files but should be processed by # the preprocessor. INCLUDE_PATH = # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard # patterns (like *.h and *.hpp) to filter out the header-files in the # directories. If left blank, the patterns specified with FILE_PATTERNS will # be used. INCLUDE_FILE_PATTERNS = # The PREDEFINED tag can be used to specify one or more macro names that # are defined before the preprocessor is started (similar to the -D option of # gcc). The argument of the tag is a list of macros of the form: name # or name=definition (no spaces). If the definition and the = are # omitted =1 is assumed. To prevent a macro definition from being # undefined via #undef or recursively expanded use the := operator # instead of the = operator. PREDEFINED = QDeclarativeListProperty=list \ QVariantMap=variant \ QPointF=point # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. # The macro definition that is found in the sources will be used. # Use the PREDEFINED tag if you want to use a different macro definition that # overrules the definition found in the source code. EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then # doxygen's preprocessor will remove all references to function-like macros # that are alone on a line, have an all uppercase name, and do not end with a # semicolon, because these will confuse the parser if not removed. SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- # The TAGFILES option can be used to specify one or more tagfiles. # Optionally an initial location of the external documentation # can be added for each tagfile. The format of a tag file without # this location is as follows: # TAGFILES = file1 file2 ... # Adding location for the tag files is done as follows: # TAGFILES = file1=loc1 "file2 = loc2" ... # where "loc1" and "loc2" can be relative or absolute paths or # URLs. If a location is present for each tag, the installdox tool # does not have to be run to correct the links. # Note that each tag file must have a unique name # (where the name does NOT include the path) # If a tag file is not located in the directory in which doxygen # is run, you must also specify the path to the tagfile here. TAGFILES = # When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. GENERATE_TAGFILE = # If the ALLEXTERNALS tag is set to YES all external classes will be listed # in the class index. If set to NO only the inherited external classes # will be listed. ALLEXTERNALS = NO # If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed # in the modules index. If set to NO, only the current project's groups will # be listed. EXTERNAL_GROUPS = YES # The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base # or super classes. Setting the tag to NO turns the diagrams off. Note that # this option also works with HAVE_DOT disabled, but it is recommended to # install and use dot, since it yields more powerful graphs. CLASS_DIAGRAMS = NO # You can define message sequence charts within doxygen comments using the \msc # command. Doxygen will then run the mscgen tool (see # http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the # documentation. The MSCGEN_PATH tag allows you to specify the directory where # the mscgen tool resides. If left empty the tool is assumed to be found in the # default search path. MSCGEN_PATH = # If set to YES, the inheritance and collaboration graphs will hide # inheritance and usage relations if the target is undocumented # or is not a class. HIDE_UNDOC_RELATIONS = YES # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is # available from the path. This tool is part of Graphviz, a graph visualization # toolkit from AT&T and Lucent Bell Labs. The other options in this section # have no effect if this option is set to NO (the default) HAVE_DOT = NO # The DOT_NUM_THREADS specifies the number of dot invocations doxygen is # allowed to run in parallel. When set to 0 (the default) doxygen will # base this on the number of processors available in the system. You can set it # explicitly to a value larger than 0 to get control over the balance # between CPU load and processing speed. DOT_NUM_THREADS = 0 # By default doxygen will write a font called Helvetica to the output # directory and reference it in all dot files that doxygen generates. # When you want a differently looking font you can specify the font name # using DOT_FONTNAME. You need to make sure dot is able to find the font, # which can be done by putting it in a standard location or by setting the # DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory # containing the font. DOT_FONTNAME = Helvetica # The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. # The default size is 10pt. DOT_FONTSIZE = 10 # By default doxygen will tell dot to use the output directory to look for the # FreeSans.ttf font (which doxygen will put there itself). If you specify a # different font using DOT_FONTNAME you can set the path where dot # can find it using this tag. DOT_FONTPATH = # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect inheritance relations. Setting this tag to YES will force the # the CLASS_DIAGRAMS tag to NO. CLASS_GRAPH = YES # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect implementation dependencies (inheritance, containment, and # class references variables) of the class with other documented classes. COLLABORATION_GRAPH = YES # If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen # will generate a graph for groups, showing the direct groups dependencies GROUP_GRAPHS = YES # If the UML_LOOK tag is set to YES doxygen will generate inheritance and # collaboration diagrams in a style similar to the OMG's Unified Modeling # Language. UML_LOOK = NO # If set to YES, the inheritance and collaboration graphs will show the # relations between templates and their instances. TEMPLATE_RELATIONS = NO # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT # tags are set to YES then doxygen will generate a graph for each documented # file showing the direct and indirect include dependencies of the file with # other documented files. INCLUDE_GRAPH = YES # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and # HAVE_DOT tags are set to YES then doxygen will generate a graph for each # documented header file showing the documented files that directly or # indirectly include this file. INCLUDED_BY_GRAPH = YES # If the CALL_GRAPH and HAVE_DOT options are set to YES then # doxygen will generate a call dependency graph for every global function # or class method. Note that enabling this option will significantly increase # the time of a run. So in most cases it will be better to enable call graphs # for selected functions only using the \callgraph command. CALL_GRAPH = NO # If the CALLER_GRAPH and HAVE_DOT tags are set to YES then # doxygen will generate a caller dependency graph for every global function # or class method. Note that enabling this option will significantly increase # the time of a run. So in most cases it will be better to enable caller # graphs for selected functions only using the \callergraph command. CALLER_GRAPH = NO # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen # will generate a graphical hierarchy of all classes instead of a textual one. GRAPHICAL_HIERARCHY = YES # If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES # then doxygen will show the dependencies a directory has on other directories # in a graphical way. The dependency relations are determined by the #include # relations between the files in the directories. DIRECTORY_GRAPH = YES # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images # generated by dot. Possible values are png, svg, gif or svg. # If left blank png will be used. DOT_IMAGE_FORMAT = png # The tag DOT_PATH can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found in the path. DOT_PATH = # The DOTFILE_DIRS tag can be used to specify one or more directories that # contain dot files that are included in the documentation (see the # \dotfile command). DOTFILE_DIRS = # The MSCFILE_DIRS tag can be used to specify one or more directories that # contain msc files that are included in the documentation (see the # \mscfile command). MSCFILE_DIRS = # The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of # nodes that will be shown in the graph. If the number of nodes in a graph # becomes larger than this value, doxygen will truncate the graph, which is # visualized by representing a node as a red box. Note that doxygen if the # number of direct children of the root node in a graph is already larger than # DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note # that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. DOT_GRAPH_MAX_NODES = 50 # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the # graphs generated by dot. A depth value of 3 means that only nodes reachable # from the root by following a path via at most 3 edges will be shown. Nodes # that lay further from the root node will be omitted. Note that setting this # option to 1 or 2 may greatly reduce the computation time needed for large # code bases. Also note that the size of a graph can be further restricted by # DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. MAX_DOT_GRAPH_DEPTH = 0 # Set the DOT_TRANSPARENT tag to YES to generate images with a transparent # background. This is disabled by default, because dot on Windows does not # seem to support this out of the box. Warning: Depending on the platform used, # enabling this option may lead to badly anti-aliased labels on the edges of # a graph (i.e. they become hard to read). DOT_TRANSPARENT = NO # Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output # files in one run (i.e. multiple -o and -T options on the command line). This # makes dot run faster, but since only newer versions of dot (>1.8.10) # support this, this feature is disabled by default. DOT_MULTI_TARGETS = NO # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will # generate a legend page explaining the meaning of the various boxes and # arrows in the dot generated graphs. GENERATE_LEGEND = YES # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will # remove the intermediate dot files that are used to generate # the various graphs. DOT_CLEANUP = YES oif-qml-1.0.7/LICENSE.gpl30000644000000000000000000010451312004105261013055 0ustar 00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . oif-qml-1.0.7/LICENSE.lgpl30000644000000000000000000001674312004105261013240 0ustar 00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. oif-qml-1.0.7/examples/0000755000000000000000000000000012004105261013016 5ustar 00000000000000oif-qml-1.0.7/formatting/0000755000000000000000000000000012004105261013352 5ustar 00000000000000oif-qml-1.0.7/qmlize_doxygen0000755000000000000000000000052012004105261014161 0ustar 00000000000000#!/bin/sh # Remove the pointer ('*') from GestureEvent in signals cat $1 | sed -e 's/GestureEvent\s*\*\s*/GestureEvent /g' \ -e 's/gestureStart/onGestureStart/g' \ -e 's/gestureUpdate/onGestureUpdate/g' \ -e 's/gestureEnd/onGestureEnd/g' \ -e 's/gestureOccurred/onGestureOccurred/g' oif-qml-1.0.7/src/0000755000000000000000000000000012004105261011767 5ustar 00000000000000oif-qml-1.0.7/examples/camera/0000755000000000000000000000000012004105261014246 5ustar 00000000000000oif-qml-1.0.7/examples/eventprinter/0000755000000000000000000000000012004105261015543 5ustar 00000000000000oif-qml-1.0.7/examples/turbine/0000755000000000000000000000000012004105261014466 5ustar 00000000000000oif-qml-1.0.7/examples/camera/README0000644000000000000000000000033512004105261015127 0ustar 00000000000000The camera example displays video from a webcam connected to the computer. performing a two finger rotation rotates the image along a vertical axis. If you don't have a working webcam you will see a blank, white window. oif-qml-1.0.7/examples/camera/camera.qml0000644000000000000000000000100612004105261016206 0ustar 00000000000000import QtQuick 1.0 import QtMultimediaKit 1.1 import oif 1.0 Item { width: 500 height: 500 Camera { id: camera anchors.fill: parent property real angle: rotate.active ? rotate.angle.current*360 : angle transform: Rotation { origin.x: camera.width/2; origin.y: camera.height/2; axis { x: 0; y: 1; z: 0 } angle: camera.angle} } OIFRotateArea { id: rotate anchors.fill: parent subscription { touches.start: 2 } } } oif-qml-1.0.7/examples/eventprinter/README0000644000000000000000000000023612004105261016424 0ustar 00000000000000The eventprinter example shows how to print all the details available from a gesture event. Gesture, touch, and device properties are printed to the console. oif-qml-1.0.7/examples/eventprinter/eventprinter.qml0000644000000000000000000001127212004105261021006 0ustar 00000000000000import QtQuick 1.0 import oif 1.0 Rectangle { width: 500 height: 500 function printTouches(touches) { for (var i = 0, len = touches.length; i < len; i++) { var touch = touches[i] console.log("\tTouch (" + touch.id + "):") console.log("\t\tlocation: (" + touch.location.x + ", " + touch.location.y + ")") console.log("\t\tAttributes:") for (var attribute in touch.attributes) console.log("\t\t\t" + attribute + ": " + touch.attributes[attribute]) } } function printDevice(device) { console.log("\tDevice (" + device.id + "):") console.log("\t\tType: " + device.type) console.log("\t\tX Axis:") console.log("\t\t\tMin: " + device.x.min) console.log("\t\t\tMax: " + device.x.max) console.log("\t\t\tResolution: " + device.x.resolution) console.log("\t\tY Axis:") console.log("\t\t\tMin: " + device.y.min) console.log("\t\t\tMax: " + device.y.max) console.log("\t\t\tResolution: " + device.y.resolution) console.log("\t\tAttributes:") for (var attribute in device.attributes) console.log("\t\t\t" + attribute + ": " + device.attributes[attribute]) } function printGestureEvent(gesture, state) { console.log(state + " (" + gesture.id + "):") console.log("\tAttributes:") for (var attribute in gesture.attributes) console.log("\t\t" + attribute + ": " + gesture.attributes[attribute]) printTouches(gesture.touches) printDevice(gesture.device) console.log("") } OIFDragArea { anchors.fill: parent subscription { touches.start: 2 } onGestureStart: printGestureEvent(gesture, "Start") onGestureUpdate: printGestureEvent(gesture, "Update") onGestureEnd: printGestureEvent(gesture, "End") onFocusChanged: console.log("Drag Focus: (" + focus.x + ", " + focus.y + ")\n") centroid.onInitialChanged: console.log("Drag Centroid: (" + centroid.initial.x + ", " + centroid.initial.y + ")\n") centroid.onCurrentChanged: console.log("Drag Centroid: (" + centroid.current.x + ", " + centroid.current.y + ")\n") } OIFPinchArea { anchors.fill: parent subscription { touches.start: 2 } onGestureStart: printGestureEvent(gesture, "Start") onGestureUpdate: printGestureEvent(gesture, "Update") onGestureEnd: printGestureEvent(gesture, "End") onFocusChanged: console.log("Pinch Focus: (" + focus.x + ", " + focus.y + ")\n") centroid.onInitialChanged: console.log("Pinch Initial Centroid: (" + centroid.initial.x + ", " + centroid.initial.y + ")\n") centroid.onCurrentChanged: console.log("Pinch Centroid: (" + centroid.current.x + ", " + centroid.current.y + ")\n") radius.onInitialChanged: console.log("Pinch Initial Radius: " + radius.initial + "\n") radius.onCurrentChanged: console.log("Pinch Radius: " + radius.current + "\n") } OIFRotateArea { anchors.fill: parent subscription { touches.start: 2 } onGestureStart: printGestureEvent(gesture, "Start") onGestureUpdate: printGestureEvent(gesture, "Update") onGestureEnd: printGestureEvent(gesture, "End") onFocusChanged: console.log("Rotate Focus: (" + focus.x + ", " + focus.y + ")\n") centroid.onInitialChanged: console.log("Rotate Initial Centroid: (" + centroid.initial.x + ", " + centroid.initial.y + ")\n") centroid.onCurrentChanged: console.log("Rotate Centroid: (" + centroid.current.x + ", " + centroid.current.y + ")\n") angle.onInitialChanged: console.log("Rotate Initial Angle: " + angle.initial + "\n") angle.onCurrentChanged: console.log("Rotate Angle: " + angle.current + "\n") } OIFTapArea { anchors.fill: parent subscription { touches.start: 2 } onGestureOccurred: printGestureEvent(gesture, "Tap") onFocusChanged: console.log("Tap Focus: (" + focus.x + ", " + focus.y + ")\n") centroid.onInitialChanged: console.log("Tap Initial Centroid: (" + centroid.initial.x + ", " + centroid.initial.y + ")\n") centroid.onCurrentChanged: console.log("Tap Centroid: (" + centroid.current.x + ", " + centroid.current.y + ")\n") } } oif-qml-1.0.7/examples/turbine/README0000644000000000000000000000044112004105261015345 0ustar 00000000000000The turbine example shows how rotation and angular velocity can be used to animate a scene. Rotate with two fingers to spin the blades of the wind turbine. The turbine will continue at the same speed as the last angular velocity when the rotation gesture ends, slowing down with friction. oif-qml-1.0.7/examples/turbine/blade.png0000644000000000000000000000374012004105261016247 0ustar 00000000000000‰PNG  IHDRû./°úsBIT|dˆ pHYs × ×B(›xtEXtSoftwarewww.inkscape.org›î<]IDATxœíÝ]oÛTÇñ¯›¶íJ×®CBÄÅ„ —{j»fi; \qÇ €;/€{Ä /Á¬M›¬mú°¶Hˆ‰+@<”Ûc3¶™ë¸‰“&±Ïéï#Ùµ“îLÿäüNíØq\×EDDöž .ôÀþ6µ Ëo¹ÐzÒVó9Žã„¸ Üò—áõè²Ù}íþÝ7k~»Z¿\žžþ#¶ 8 {sÍÌ̆€ƒþ²‘õ¾ºÜŽã¤Ý…v&[@˜*SSSÖ{¢Â^D$#fgg»€à(p¯¿ ÖìîT:k0Ë&ÿsÀ “““;†¾Â^D¤ÍŠÅbÛƒ;º, ðÎC&ïÏ …ØP׋JD¤ Åbq?^8ßã/ƒõ£T‡ùݵ~—!a";ÈHýž¾ÎÇíÔ_ö""¾¹¹¹!ªÃ;ny„:ÞJ iB‡kçOçóùªú¡°ÛÌÏÏïñÎi‡—ƒxç½£a´ž4ú»šØ¥õüxdbbb[¸ë0¾ˆdJ©TêÂû«y§°Žn«Úç8ÎþÎ÷Ü š˜-AýžÞoTØ‹HSJ¥RÞ¥[}@°î8NÌö¸mÁzìƒÀAÇq%RJ4°ÂkDÂ^‡ñE W.—sÀ> 7²¬·mwB·^ Ç­7uÈ[abÕ3³¦ÇÇÇgƒºK¥ÒqàPèn‚õf÷¹~»iÑmIÓòmù|^3ÔËåè¶rþ]µÂwÞÊ5¸lÇsz¨ÂIºjŸÿÿµ–ÂÄ\ª]ª^þ{§T*} <•^2'< ˆ$8ŽÓÎIG`’“¥pLúœ]Ó€d.ÕÎlª_Û=9::ú @·ã8áÝI¼s…9¿µæêm,ÕÎlªŸ]Tφ= |þ9û………>àEà%à ,¾_rÖèÅk6ÕÏ.ª§¹T»X_:uêÄ|@oqq± 8<ŽüOøë#°mTOs©væÚãµ{ìäÉ“Ÿ%þ4þÒÒÒ}xÁ x ÒúÛÑCiÜQMµ3—jgËêùæ‰'ηäÒ»J¥2BõàAy?š d‚e/à=Gõ³‹êi.Ãj÷ùñãÇíÈuöËˡ©ž „›>#†½€¥ÕÓ\ª¹2Z»3qS•••#Ôž Ü•B·¤ŽŒ¾¨%ÕÎ\ª]:TÏéL„}=«««áÉ@ôûŸƒå-ºîZvO’¹T;»¨žfkQý^1"ì“X[[ëÆûÖªè÷HÇM tÚ E|ì¢zšMõ3Wµ{Çš°oÄ¥K—¨=Öu´ 4™Mõ3—jgå=öI­¯¯çðŽ$™èhAJ4 ™Kµ³‹ê™Y[ ûÙØØ þ郣Àat´ c4øØEõ4›ò&5+ì;lss³ Æ;Ep8´<³-Xêj„Q˜˜Mã™]TÏ–ùQao€Ë—/÷QBž4 á}¡´˜Þ/vQ=Í¥Ú5$ùírÅ›››9àµ'ÑmûRé¬åôþ2—jg.Õ®Š> 'ž$?­0DGvEï=³©~v±¼ž(ì¥)ëëëÝx¡Ÿä´Bð¸ÞT:k(½7í¢zšË‚Ú½­°—Žñïoœ^8´C‹î;Jg ¤÷²¹T;sR»gö’ikkk½Ôž ÄíB—7n£÷¹¹T;»¤PÏÀQ…½Xguuµ ï3Nöä‡5ØEõ4[ê÷êéÓ§ßRØ‹øVVVúIvj!ÜSélŠ4f˜Mõ3Wµ›ÎŽŽþ«°Ù…ååån’þ hÃ@wýí)æRí¬ò®ëº/ÝPØ‹tX¥RqðŽ4:I0þû4ÞØEõÌœ›@xclll3¼Ca/bˆ¥¥¥ý4~5ƒÑ÷CÐød6Õ¯#¾Ê~«Œßˆ{Â^Äb‹‹‹9¼«$ô¤ÑßFiü2—j—˜ ü| |ã·`ýÓ3gÎ|—ä—(ìE¤ÊÂÂBpO„z“„ðþLÝAc›],®ç-à{¶‡xxýÛ‰‰‰¿wû(ìE¤%.^¼½'B’£ ™¹'‚ÆBse¸v.ð ð£ß¾g{ |—ÏçÿmwGö"’šr¹wO„¸IÂp¨ î«ÆJ»ì²ž·€+xþwÂ<ڶΞ={sw=m …½ˆ§T*uã…þpËŽ|GƒÆV#ýl¹® íh _) ·Sëeö"²§ÌÏÏ÷ÑÜ$arиÛq[Ôþ+üàj¡P°²8 {‘æææºð¿™# ýIÿɉÜÂ;~e‡öSøçÉÉÉ?Rêgf(ìEDÚ¬X,öÒø$aïó 5/ƒ´h ÿ˜ Þ¡ý:55eÔaô´)ìED2lvvv€æŽ&ÜMzcümà7¿]~¦NOOOÿ•FG÷ …½ˆˆ…fffrxGvœ¸®»ÓdÁ®ûí·È²Þ¶ëÀsçÎ)\2ä?_ý›’ˆ2IEND®B`‚oif-qml-1.0.7/examples/turbine/cloud.png0000644000000000000000000000321712004105261016305 0ustar 00000000000000‰PNG  IHDR—W w×ÍsRGB®ÎébKGDÿÿÿ ½§“ pHYsööÐX½.tIMEÛ OÿEžIDATxÚíˆe‡ŸýÞwê©¥é™jz˜(JA†‘’F¢‘TŠT’D©”X(Š$þQX–H™fEZdf&&f¦y©çÝùóô»ý1³±ÜíÝíÞÎÞíÏÃîÞŒs{Ÿy|ß™wÞwÞŽ»PŒÕ@ÿðµ_¸¤z_ \šÂ¥h_[ÿì,p8hf-ˆ´ˆ LÃÉÀ]¡P7•Ýôë/û½‰ÅÌ¥QËåî}€§€‡ayôÕâa‰¶Øl3³óÒªä «¼G€EÀ ȳ¨6˜Ù1É•¿bݬF`®qàk`©™’\ù%Ö,`PQè×aI¶ÜÌþ‘\=+U9ð 0§ÈrnÞÖ˜Y\ru¿X€uÀÄ"Î{'0ßÌ$W÷‰Õ7¬>n/Ìÿž0³Åþ‡ZˆÕ x¯DĸøÔÝSÉ•ûs¬uÀÔ½ Ú¼`f$Wôr­fPÚæ™ÙQU‹Ñ‰5Gb0øÜÝïWÉXc­@/¹õ?q`%°¢Xš+b= V_`;Á gÑ–À3fÖ¤j1s–K¬¹øÌÝk%Wf¥Ö4à!ùÓ)#€mî¾Ê݇ªZì\¬*`70DîdÄe‚vÀÍã’«­\ …r%+N»€o€ƒ@½™-i¹Ü}HJoù9ÍÀI žàÖÒï¡x‡{ºãbwɵxPtï…9p 8Êö+pÈÌþ-¹ÜýVàKë¼áo‚.Ùßš™²\o3uLó’úP²:3;YPr¹û@‚Á :ŽyM<<'~Ÿ`Éå(vZžã/ý¸Ä*˜VƒIáÒàîëÌìD^–\a»Ö>àZ»‚ä"ð&°ÖÌ®te¹l¡Ÿ*± š*àe‚ãòM®É:>EÁ`«»/ ;ôlµèî1àpŽMÑ]]¾dfi5-åªäª•XEI °ÑÝßu÷Êž’KUbq3¨s÷þ=!×xå_ôÜ |â[®¡Ê¾$lv÷kºS.õÙ*†kݽ,çr…ÏÒ ÌKЉÀâî(¹j”uI2ÏݧäZ®1ʹdYâî¹”kš2.Y†ss"—»? ܧŒKšçܽ:2¹Ü}¼»Lp£S”6ýÆ^f'—»ßäîk†æß­\EÈÐÅ×î>2¬[g¢Î€¢-—€Úò ¥š.,Á4Aéq X l0³óÙì¨Ý'ºû,à  Ly=ÂóªíÀf3»ÅN;|<¥»Ož& GY qàpø GÃwfv)ê_”–0î>„`dö`‚ù«k’Þúê˜õM@p&|M¼oïs}T%S$r¥!_àz W¸”·óZ‘bIµÎRüoËäsºÛt´>F0‡Meøýª’þ¾ÊVë’?—gßÕPf‚Ž›M­–ÆVëÎ$ sÖÌ®ä«õÿ×Ö–)°áiIEND®B`‚oif-qml-1.0.7/examples/turbine/turbine.png0000644000000000000000000021242112004105261016646 0ustar 00000000000000‰PNG  IHDR7ÑâsRGB®ÎébKGDÿÿÿ ½§“ pHYsÊ&ó?tIMEÛ + 7{¶Ú IDATxÚì½y”\gu/úûÎTSWõ¤4¶l Ø’ Rbóâ¶Ml ˜!¤uyŒábÌÅ~ɺ¬{ßz]}oÞJÞ[É"Ï$xˆ!„ÐÊ%€ &,Ûd­É–dKj©[=O5Ÿá{øì“]_Ÿê®ž¤–TßZ½Tꮪ3}{ïßž~[H)Q[ _B!•›(„‡–?þ8vîÜ Ë²àyÇ®ë(•JÐ4 Žã@)åŒú\„Ð4-ø—^Óÿu]/{Ÿ¦i( ð<صkvïÞœ ,Ç¡ëäÿß³g„0 žç͸/Žã÷Æu]H)ƒ÷ñß]{ZÓ4H)‹Åày<ÏC4…ëºB ¯¯/ÚÞÞ^xÛÛÞìWá?`­&Æ‹[2dÇI)å 7Ü€ãÇã§?ý)<σëº0 B˜¦lTÃ0 l3/ò|B„6†çyÁñ\×…çy°, ±X ÿþïÿŽÞÞÞ@躺º–ó¾!N#NNœ8(:?þ^® øïù_tíW‰!‚¦½&Ê®ëBÓ4D"8Ž×uqá´¶¶~鯚XbT@ {ì1 aß¾}èëë =¸x<lvÓ4áå}¡‹¬& :ý¸®X.,¶m#•JáСC€mÛ¶mY7nOOO Μ9Ó4ƒs"Cï-•JÁ߸"#ÇQ!Ÿ«ÁúsÔG÷î—®ëÅêÕ«±{÷îèþá†jEQs–WCÀç>÷9lÙ²­­­hll„®ëeŠÅb€–ÒÒF¡ÍBfš&„eJ‰(›Íâ-oyË È¾Ô÷…”Íž={ ëzpŽ\˜À¶íP7@E5W P$)Ã0àº.LÓ \¼ÉÉI444à¾ûîÃîÝ»õ®®.—\Øš;pÖ¾ð âë_ÿúŒ‡¨ë:¤”0M3ðë8^ ¿[u58êPNJ‰T*…_ýêWK†Jf»7¤H1Ú¶œ»ëº°m;€¸Žã”¡)ey¯6c¦ÆvÈ ý‹Åpüøñ5û÷ïO}ãßÐÅ,²†–È ‹¨–ôŸø ÃÀ{ßû^ضH$©…B¡Ì^*A£8·üRÊÀo¤ßiš( ÐÝrË-ËüÅ/~¸+tN$ìt.<¦A® }ž#ƒ«1ÈÝŠ72…'Nœ0zzz<)¥G{•£€ZL` ƒƒrŽ(„À£>ŠÎÎN àÈ‘#°m;ˆØD§.,ã²Ùic8ŽÇqP*•P*• ¥ þ%6S$ ,ËsÏ=Wñ;«UTétzÆ{÷ìÙdLx0¿æ–ß¶í2eÁÑÀÕ´ ÃÜzMÿ·, Žã “É@×uœ8qÂJ§Ó)n¨øž­)‹èH)qäÈŒáž{îÁž={P*•kH €[:Ó4ȼÐcÓ÷qß›„ûÚ¥R)°2RJìÝ»·Lèy´¾Z%ÐÝÝ|æ+_ùJà¿’/Ïa-YxBô5V²TnÓådýi¯†<]×aY …J¥NŸ>ݾwïÞx:.¥ÓiMÌ¡­kîÀ2Ãî/=“o~ó›ˆÅbB ¡¡¡ úR YqÙ_ˆ[ÀëøÿI1OI±ÏóP,qöìY|èC ο»»;ˆìW‹F¤”øÎw¾ƒæææ2ëºnàŸOK]pø5)zN䯑ÿO®žã8ˆF£kÏœ9sþùçŸ}á _(dôgU.5Q]^ëÏ¢Z|óòË/ÃqäóùÀ/÷—çž{ °,+PD$ð|8«nt^mÇl‹qOrªMG”‹æ¥¼È£:Sà~ÿÀÀN:…\.4%‘ò²mù|>P ´é£Ñh ô¥kæ¨@ b^®Š€_ Ïpfš&lÛF¡P@ãž={¦X ‹AFMWæ:qâDQQêííM¤ÓiŒŒŒ ¡¡¦i¤$T5F%Á‹‚°>~î§Ú¶]0$_w°©–Ú0 ´´´`xxSSSxþùç‘J¥Íf¡iŠÅ"{Üó¼;u]Okš¶ƒ„Ÿj%LÓD4ýD4}”ª*Iá„)…˨J‹R³D¨BJ€®©T*attSSS{öìÉnÛ¶mɬw ¬p„ÐÝÝ­§Óiã+_ùJ¼½½}L×õ€=FÍ/Eš—æYÚ ¼Æ@¯ —|~‚±CCC8zô(r¹b±\×5"‘H«aïB|JÓ´í""tÀa¦i"‘HÀ0 Ô×׋D"1Í\Nè@e‚¢ßQ§'¹Z°qãÆºn¸!ñB~ Ы)+@à9¬ãÝ^RJm÷îÝúøøx¬¾¾~²½½½,UHÂO)6niæK¦æ¦é5wè5¡b±!:TÉÒÃó<¡ëúµ†a|Rq—a› ÃHr´Áϲú¨ùè£Æ~øá\KK‹‰D‚ <êÏ'ö ÞXIø¸_ú³Ÿý wÞygY´š¢óðÔSO5kš¶ÀGMÓ|»išÉ0—¬ý|ÑÈlÌcÄCH?Ùl ¸öÚkÅ .¡Âž§ ×ÑhtÆì‰ÉÉIÀ~ðƒ†Ç{l €TÝÃå8ÏZÀe¼xàï'?ùI¾T*ųÙì¤mÛA™1Ymb#ª&}È}iÇqðë_ÿšCþh±X¼Áqœ÷9Žó^Ïó6Ògº†¡‰ÅXÍJçHî·¤†a X,Â0 är9Œµ¶¶6­ëÏK釔W,ÛX,Oçr9œ‹MÝÝÝ¢§§gÙ­t \>È@ó-CÐF¨àÀÆã?žèèèH®]»¶âœº‹šÔMÊ}sÞˆ´oß>är9=‹]ïºîû#‘Ƚ†alB$ÕÖæÅää«ùœÚ~LÞqœ@á¹®‹b±ˆB¡€B¡€T*…M›6]24ÀQ•Š ‰Àó< ôõõ½®¯¯o$“Éd¾øÅ/Ú„¸å_ŠTàe‡ÂXQ9f2±Üpi9¯g>±€°Í ¥”étÚ=}út¡¯¯Ïݹsgë¦M›†ü*;‹Å€­ˆ³ SKpX¿š’Éäÿò!’|pN:¢–î.µÕ{ï‘PÙ‘Éßv]™L¶m—5+]ÌÅY¡xé5= )eÌL$/ýüç?>ýôÓv¥àßrîíìîîÝÝÝe“}*)„ËÉ¿Ö\ïÀŸBˆžž¹qãÆÒ‡>ô¡üš5kò/¾øâ*²”´!ióÑÆ$«ôÌ3ÏÌèêÓuñx|£eY¦i&c±Xàfðž‚ÅÿrX]:bÝÍçó\jw€Ó½³lËú©©)lÞ¼¹ã¥—^j}â‰'b%5pÑÎs¥ÊŽb9‡Â+QÌ2{@o7Ÿó› 10÷@µúÞ½{“---Ú©S§Æ’ÉdHã,¤ž|òI´¶¶"•JÙlö/5Mû ¥Ý"‘,ËZ”°/)Ìç¼!)—Ëášk®A{{»X®c‡Ubª ôw¢”§,ÎÑ£G×oذ!ÛÕÕ5-„pÈà¥Óé‹Îžºb‘@…Í/Ã*ëTÁ¹TçKJ‹ÎƒþM§Óžú7néìÿ\´PD¡¾OáíÝ»7ów÷wŽ®ëÈçóANªóxN<ÇÐÐPüüùóÿïèèèG3™ Ã@2™eª¹­•ªgk™^*KöCMOË@¸’S85~år9d2 O]¸p!+„¸äóÓV$PŠc(Ýßß¿^JysSSÓob±X?§«y±¡~š™ç¹éÔš››õ7âܹsbrrRÐW¯^­oß¾] ;v,¦ëzL¡Åãq'‹åóù|.“É”Ž?>]__´··“¿¿.‰  …R4…ã8xê©§u]^Ó´ÇÅe8W o)›zTKlÛ6ŠÅb l­­­èèè ISÎ÷ZÕêG•ºÍ¶mär9ÔÕÕá¹çžKÝwß}ù;vØ»víÒ·mÛ&Óé´·œÁ¿Ë*0¦vïÞmÝ~ûí†a|.‰ìÌf³¯ …ïÙ¶ýÄw¿ûÝ“RÊÜ¥R³ûèoÝÝÝú‘#G´D"Ñ”L&7X](ê-Ë2¥”–ÂòcxxøF)åýBˆ.)e ãÔ󤔃†aü¤T*}whhhÿ±cÇú»ººÜ0× Š1aUiáj¾wpp0¡ëz½iš«\ëºîõRÊ]×½^×õužçÅüïÒ¥”ºÚ¼Ã-—šßç…8~ŠLJ)…J° lŽ€çy¥ýû÷kÏ=÷œ‹Å¤ëº‚€(˜¦–÷.…å_n4À¿Ïqœ` O6›Åºuë°víZ±Xž…0Ö&®Ì¨F‚÷-P£aÈd2ÓOŸ>èééÉÂç\)†×¸X  ’Ï.¥,‹xÓÍY-„x·âcº®¿±T* Ã0$»ÙÒuÝÕ®ë~È4Í·777ÿª³³óçÎ{zß¾}/I)K@p‹ š <ÎSà3ÜBþ\?<<Ü"„Xïºî&!ÄVÃ0^ç8Î Bˆ×u“a›‰4lìX%ß™çúýü¿¨ä‡ój†©išð…‚6*Aÿ…æÓ"`KéÐ=älÌT…·ØÙÊ›Ãj+x)0µ>Ÿ;w™L¦Ý0ŒÉt:=ÕÓÓ#æct®(w€š_(¨Å¢þªï¯õ÷÷ß‹Å>–ÏçßeF€G^Ó4ɄœRjš¦5†ñVMÓîJ$‡n»í¶ÿñäääþÞÞÞ=·°ê+%¨Vv~•Òäädc¡PXgÛöf˲6I)¯Óuýu: Ãh÷<Ϥ²]ÿ_éç…”Rc Ep¥°Ð=Qés´9iÃæóyiY– ECðŸ–Ú㾡¹±u'(õ¹o±( l|;O“† Náï3 CCCp]׺ûî»Ç·lÙâ|⟸d±«K®ÈÚû?‚[av£åÈÈÈVMÓ>hÆûÇÙdY¤”’ at<ÏÓ}x«ûpËõí“'OFŠÅb[*•Ú‰D®p­bs,ëÐ4mƒ¢Éu],;Áu* ¥ÍDçËÉ3ùFæÖ¥ZÂÐÙöïS×4 SSS˜šš*›b«F²+ µÂ­õ\Dê:™¦ùªXìâÕ~T¥H(€ê08ûÑÉ“'ñðõÿøÿXؼys±»»[pQÊ€WdL@Ù3" ×E"‘»®û×uoôûÙÏÖíܹsƒeY7K)oB\¯iÚz)e³”²Ñ0ŒçÐó7˜ô<þf’ …¦ÔÔ½–·®ë˜˜˜ÀOúÓ€â‹îYØ Àåôß—Cð&¢b±T ^wÝu"‹Í›KAM5òûC1)è¤`Ïó011)%.\¸€OúÓ¥S-zÙ#t:µø7"P ÝÝÝúÃ?ü!Ä9ŽóÎR©”ôË[=Ò¶mÝu]a†°,ËsG¸®+t]—>ºð<Ï r횦Iž¹BB ©U«V%ØùxétBñÃþкñÆWišÖÑÐÐpÓw¾ó›lÛ~=€uº®7!b®ë\\× &»ø–^0Á“þyòñ\×Õ<Ïš¦IM{mJ´ëºÒ?窱»ªÔj=µ¶¾Ò÷š¦‰b±Œj¢ô+U¨ðœ8)ZWWWuL@½F•è„kÕ‰@®ë¢P(Àu]Œãï|'žþy´´´€@ww·ØµkW@ vU"t#úúúÖ˜¦ù˲îw]w«an±XÔ=Ïóü‡'mÛÖȯöžç ÿ¡Ó4¥"Ò·|‚"暦½dÆÇúûû÷××××9ŽÓ‰D6š¦¹Ý0Œ›J¥Òë„5MÓ¥”ºúúú²®¿‹Í_ª@G<ð<¥R ®ë¢µµ6lœYÍžð–äJð_U”¤ øÈ¶L&]×ÑÚÚŠ_ýêWøÌg>Y)¥3ß Ôe‰Šb*¼–Œ¯_¿þÍ‘Hä!MÓîö>Ž466âï|g™²"P©øíŠtüFŸ÷Ó¸é¿ÓÑÑñ~ÏóÞëy^ ÐXàF(©2§ÕȯæÂǃiJ`Mø›½%þ±iš‚ºR7*䡦 ”`›Vi>ž ËgûXðo>„fóáÃø÷5MC"‘úñyаZy!V{.¦c`5¥Y êá”ç”$ëœL&wqa ›á¨¾æô_TvL¯ÕÎÅ|>k®¹gϞųÏ>‹Ý»w« 4uÅ"¦á<ʃ²‹õr¹Üš‰‰‰ûMÓ|€ë?@F™ƒÐMÁ7Æ0–.\s»®« !<ŸÃž`zÙq+n¨BY) ]I TØ¥ˆV/$ºL&‹ÅËåfEjpl¾Â¯fø} ó¿Õªó©($¤x€ÍÍÍ#ñ\(‹Òyü¼yO…Èçó°m£££øÁ~€|?úÑÐÛÛ{YA[2w€þášîäÉ“‘X,v·aÿÅ0Œ»<Ï‹ø¾ýk#S=OS…„¬5Êò"5ò­úÍ\ÀýÔ!¤”œ,‹ÔW€¹øë+Íý«F9ðë¸Óvù¨ïh4T²ñã’{ÂëÞRz˳sQ™…Ý7ž­¨¶iIE MMMhkkü{¸OD$ÜEà°Ÿ“”ø)j!ËåÏç±k×.H)ÇÑÙÙ‰ÎÎÎekºÜÜÑÝÝžžžà¯¾újG"‘ø#˲Þëºîÿ¦{>ì¦ZŠ©0uH&te)EÄ£¹º…¡°j6h˜õ®fˆÇ\©½ÙÎc9¯>ŒÇ㨫«ÃÔÔTPÉD**»ùUº?*¢¨„* þlʈ3›¦‰7ŠD"Q±Ì—+8š™À¦ã8H$G©T‚ã88tèžxâ 8p°{÷nìÚµë²øPC±T[j—Ý·o_SÿGS©Ô¿êºþYÏóÖ !¤o}ͶmÏu]Á§Ëò±Ôj¥‡m*dUKl úÓÔ×u…mÛ‚² Žã”ÅøO¥ßÓyÑß¹‚R?£¾'lDØ¥(¤ñ<ñxÉd²,Ö¡º8|´Y5”Ý•PS˜u¬„.fs=fKy–J%LOO×â8Ît}ĤDlC„ˆ,ËB<¬|±X bB¹\‘H###èëëÃîÝ»ñ®w½ G @ww7ººº °¥wÙ§OŸ>Åb7Çb± …Â.)eD×uéyž$d©ÏqÁö›$ ú‡nð” û?Õ#„¦áæ²Æ•ba›“¿÷bÀû…*ºG¯¾ú*žþyضÐu«÷u¥§IPaíŸh4úƒ7½éMïàðž#¢+§ ‰®ëhjjÂÉ“'¡iºººÂ\ËP—óJA3Ü0<ö»2¢Kޱ¯D"Ð4ímÛ¾Öÿ5÷hº®S-¾x­Ü_j*é%§®t“ÃVÐïè5}¾RðP­ÕŸ fV‰¯”¾Z‰Ëó<´´´ "ŸÏ—¹Zó,§˜ë¹xž‡L&ašP7WXT]UXÕÂâõ”ûÇ‘H$066XP¨¬æ3ço¡Eœ8$“É“z5MC*•*e³Ùt¡Pø6‡ç†a ŸÏ#‹á…^Àƒ>úÜ«1ÕþýrD¡Át:£G Öí§ù¯5)¥·k×.ýoÿöooI¥RŸô<ï>Û¶ëÀ0 Ï0 ×¶mÝó<ÝÏ„©T›O޼RJKQ3ºËª  ©ëR¤ó–Ó-ÐuëÖ­CYP5Œ ¥Rí±y±’å­TÅŸãäädP«V­ÂË/¿ü7ŽãüÃ7Þ(5MÃ+¯¼‚µk×âÞ{ï ¾ç¶ÛnÃ'?ùÉ–:N/x"Ò•²„eTw€7ÁHøþ÷¿ß¶cÇŽû#‘Ȥ”[\×5 ÃdÅmÛ–x­Às]W§‡Ï…‰ûq ¢sYùT§]-œ ^&“ÁÏ~ö3LOO#m°aJ`)`%²”Ù”‹º'ˆ2¬P(Ÿ­¯¯Çøøm²4 IDATø·Oœ8ñþ;î¸Ã€‡zhÎ|¡û²gBH6¤¯(ä‘#G¬|>Û­·Þú%Ó4ÿO×;Žc†!}ßKú#¯4òÁÇ‘a€Gй2X äån‚ÍŸíçrŽêÎ÷‘2N&“X·n]@+FÐz¶ŒÅ*U©U{ª[HPŸ¬ÿäädÉ—R"‰ —ËÙ®ë~ò†nð*!¶°ìLع]ÍkF`ÐW þ$!„Ü´nݺMLL<`YV³Ã=!„fÛ6§”v1 C3 ÃsG‹¨Ï5kn¾îÁ\µàWûR­qGGNœ8)eP«ÖTS]ÍýžmFA § ®ëº˜˜˜€_í¼'‘H@1>22rÏÉ“'ÇW¯^ MÓÐÜÜ\{ЋU>äwùzùå—oB| ÀM†aÀq©išëiH)¥ÆÆ]I¿JOøc²55—Z€.4>P[s#ZõõõØ´iŽ?;……¹m³)õ÷jÓÔlŸ¡>¤cûMa^.—ûçÏŸßïyΟ?Û¶kJ`)ÜuŽ”R¶´´¼SJ¹Ý'é®ë ×u Û¶…ã8‚ 9ïº+‹ü{–Z^-{¶è¸ûP‰E+Ýcr}øºöÚkÑÜܸOÄŒ&à<8Ÿ¾u&ß\%¶žç!›Íbrr…B¡¬K¦¦&H)ÿ°½½ý‘;vE?ƒƒƒ3â5d¸% ®W^y¥Þ¶íx-;€b±X–Ëçm´ÌïÓˆeµšÔZmaFê“«Y…ÐjEe˜€ñ¿ÑïS©®¿þú Ÿ,0qô-‘…!¿¹"ÿÅbÈf³¡{§±±ýýýk…ß²,ËK$hkk ®}ïÞ½µÍ´Xw@q „xmÛ¯Óu`½à“nùÃV7 /䨭™BÅ,•ÜŸ0…æ““ŸÏ+,É·çÖ?¬¾BÓ4¬Y³7Üp^xá… òN|ù‘HÅbqFùp5Ãjë¨d—Ƈ‘ÿÏÏ×/òyqllìÞ·¼å-ýô{ê B¡P˜Ñ̳Pж« ¨½Î‘Hä· Ãh#¨ÈëÍiÔ5W¼;m6Úìšå3Fé‡à-¿×j*•7HñêH®xFX/=϶mÛÐÑÑR©0óPÀ7ØÌ^Wó×u‘ËåËåf(¾o¢Ñèi×u»œ7M†aLÉëׯG[[šššÊîWmß- pÖ“½{÷Ö]wÝuoB$+åøUNÕu–eÍèþ«­p?h¾xZ“_Ô4& 3ùî¼Ù‡·m» þ“Wëß9WþM7Ý„\.‡¡¡¡€<“+š°¸Ä|¨ÎÔßÓ:72(J¯È!MÓþ{>ŸÿùŽw¼£ŒVœ»4Éd¯¼ò 4MÃÆ+Æjk%À‘@*•ZïyÞv!„ ®=nÁÔxoò©Åª€`¾pѽâV Ñ€‘’ eKB‰DåKÊÚ4ͲN@ú|¥ÀœëºhnnÆÞðìß¿?àë3 #`î] K Ñ‹ÅbлÀ¯K¡ ?èºî=ŽãŒÀ»Þõ®ÀÅ) eôÞ×^{-V¯^ÖÖVÔÕÕÕŠ€–"&ëׯß`ƒŸC.£É®ù\‹wHð9}u©T „#ŸÏL6Žã ›ÍÁ;²ž–e!‹Á4MD£QÄb±€=ˆ&á’àåºa]’Žã`Íš5¸é¦›ð /`||SSSˆÅbŒ(_Kª …lÛF¥Á+º®Ÿvç#Fà=ïyr¹\ÐÍGI6›…¦iq[Ô”Á•€B8pÀX·nÝMÓVù¾¤P}¹Ë鿆ʪRîc‡Õ¼ó”\d樲Ûd³YšQüŒcrrÙlÙl6–‹Å2K¯Ã0Œ@ ÔÕÕ¡®®«V­BKK ‘L&‘L&‘H$‰D‰DÊZˆ9gÂ5×\ƒH$‚cÇŽá•W^!Ÿ¼Œ†«š¬ÎA­¿4&[eÓ4í?yžw€ŒÅbX½z5„H$˜žžF"‘@, ZÉ5* 8~ü8LÓÄý÷ßൾ€ÚªB>ÂzŽ;ÖÑØØø%)åÛHNÇÅýÐ:Ö|ÖÒ×JM*䃇ÑQ“ óïRÇýv¢©¢¨w6›Åèè(.\¸€‘‘LLL`ttÓÓÓ°“e$!÷€†„†èx&!ÞJ­ë:,Ë ‚Ï‹D"D"úúz´µµ¡±±ÍÍͨ¯¯iLOOãèÑ£8~üxP¤Ãyp‚—Ùz …²Ùl ÀxÀXyoFq—eY¿¢Œ„çy¸ûî»qòäIÜ|óÍe.‡JúR*•DZcÇôööâK_ú„Òzè¡OÙ¶ýÿ!¢0äÓoé!/tpåÅP\Hiž€ÊÃÏýan}i£ít4-KÅõÔÔTÀ;öìY `||Ùl6à½ãÈ‚:‰Ç!KOz$DÜ']éõýêlµ¨F…²Þó¼»ëº˜žžF&“Áèè(FFFpîÜ9\¸pƒƒƒ˜žžžAF0œš—rÜÜ—ç4Xêè+nµy?~]]êëëÑÔÔXa6±ÌêÚ¶ññqŒŽŽ „†”9]+ï(t]7èÚkkkí·ÞŠ-[¶`ll £££A ŽgxÚ’+ËJ¨ëúÿ”R¦¥”^2™D¡PÀÛßþö2¥—Íf‘H$*f"èZˆ8UÓ4lÞ¼€ã8W!èEst]ïB\Ï}7•]§ÐJD|bŒ:`Ò¶í _ËåJ¥‰D0>>lö .`xxCCCB>ŸÒpÛùk]×Çd"‘Hp\®T†%.ða˜h4ж¶6477>þ~N³ÆƒsÍÍÍhhh@©TÂèè(ÆÆÆ‚Ò\® \×E,ƒëºÈçó2Äw¿û]¬Y³wÞy':::099‰IÑ5ò<~˜`ÒG¥”ÿ}–ž·àf(u¦ªà=ÏÙ3gðž÷¼O>ù$vìØ„ÖVuJ@«««»À&^|D¾¬{µ‹„’6$M­%ùL&DâÉâ麎ÿøÇ8yòd°#ª*Ó4‘J¥‚ GÁ6жq'Íú æÔ‘•äJh6wJ-ìihh@GGCgèqw@-I¦ßY–…ööv¤R)\¸pÁ9½6ò躸äõõõáÛßþ6~û··Ýv4MÃéÓ§CgETRRÊ~Ïó>¥iÚ¿ ˜¦‰R©Àÿ¹Εæ5Ð5"ñcÇpðàÁš;0%°wï^mÛ¶mmžçÕñ]×]ÏóŒK-üò†EþÕMBŸÉdËåÍfQ(ÏçƒI²´\×Åðð0âñxP‚jš&âñ8t]"ìô;¢­N$ ´›®ëXµjšššpâĉ &_¥HW3ª¢£ëhkkÃúõëƒY‚ay~õ;8: ¦ Ó4«½nÝ:X–…¡¡!¹~l(kP0d²Ù,ž~úiôõõámo{®»î:yøða‘ÏçA|ÿaçgYJ¥Ò€ßpŠú6lØ€7¼á Îñ{Å'õ÷÷ã÷~ï÷°gÏžZcÑ<•€·eË–ç4M{Àm†axžçéŽãhaZw!‹[1µ¿€¯J>R‰‚ <±Ðd³ÙÀ§yõœÈTi£Ú¶mÛJ¥pòäI˜¦‰úúú ‚O8üø>­Zp-¹\###Xµj¶nÝŠ—^z)p#x쀭ÂFpY–…µk×¢­­­,7N±5©*utYz N655!“É ŸÏ—e%èûÈ%ðǽÃó<$“I‹Eœ8q=ö˜|ë[ߊßýÝß•/¼ðFFFD<Ÿ{ñóøGÛÚÚ>222rJJ‰ºº:X–…›nº ù|>Ppe9ÃLFÔÕÕÉJ©QþýT/@hàÌ™3زe Ž;†ÎÎÎ÷¶¶˜“É”¾fC \˜K¥’É$ššš°jÕª GNþ<'º$˧–ÿ‹E¯aJ)‘Éd‚XaZU*Ñh×\s ÚÚÚD™õýê€Ô0…IãµxÙ1Aÿl6[VÎg9báV–Ž›ÍfÅ©S§°jÕ*Ü{ï½bݺu8qâİ”2J´òš¦eþF×õÿ499yîºë.LNNâo|cP Á[6›…eYA•b%å¯*N ”Ÿ={7ÜpCMÌ…«»oß¾nܸñzÛ¶Öu=jš¦ãº®¡NÑ™‹&L ª"Õ Áa³ìØò çMÖž|z‘fcÍËfÎq5LpåCÃh4|¿Vãƒ.¸5¶, Ùl°aÃ8Žƒ¾¾¾#ÔT¥JÀ7¢¹¹9è ª8Ró]|ê2¿ÿ•RhäÖP:ÓqD£ÑÀÒF£Qhš&óù¼ü×ýWÙÑÑ¡ßqÇ“þÛ“O>Åb+•JGÛÚÚþçðððQ×uqË-· ¾¾'OžÄu×]WöÜ3™LP– ˜ÍMäA_Ž _zé%lÙ²wÜqÇUÏ(\µ;àAww÷Ä»ßýîhjjÚjÆ{J¥’F7™|Æj¦Ö¨³H ¸ r«CŠƒ"ÕÄ1OðžÚNù(juSðRÕj(­Ô Oóåóù©¨›N‰¨æ°)3Ífa::: iZ0í†#Š˜Ó¨°ŽŽ444x­âŽ”ÕËÏ7CÂ3”['§Tf¥®P ŠÚ¶¸Ì­¦iŠ©©)<õÔS¸öÚkŸ½þúëÿÎw¾S×ÖÖöëH$òË 6;::#ÍfÑÑÑQV¡IY‰›nº©*Ø^iô™a( H$Èd2{(„ªÃ>wµ+„eÃ\†ÇÇÇo,•J8Žófø¼¼J+,¤Þ`uL?ZQg•Ùf³Ù€bšó„ͱÓòa¥Ás).n%ùÛJ›‡Î#~L)%êëë‘L&ñÒK/©5Uè¢Ñ(®½öZÔ××ßKüª…V§ óL}¯ÚjÌ9è~ a`` âó£*D¢ú¢‹ã8ôl¤mÛÂ0 oçÎýÅ_üÅWÓé´×ÚÚ*W¯^íòçOeÇuuuDFtIòº ÕxÌ•ædtÝTÕÜÜŒmÛ¶¡P(`ÕªU3”~m…Ô 0Úqñ_ÿë}ùóŸÿü#Ñht“bM…”Ïìð}QŽ h#qëN‘{JKñÍË­±êûVêfS!<’ÙRs¦óúøJñÛP:NMMAÍ›7£T*axxxFOÿêÕ«ÑØØ8£'LV kU7…+Qþ\*±qwGMêº „b±˜ûñü*€ÒÑ£GõŽŽO¥7+‹0M¹\nFéoµêýå×CÁOzvŽã`rrCCCÈf³øÖ·¾…OúÓ5©ŸM øã ºººäK/½TÊår?r]÷ëuuu°h>‰Ÿ:’¦i ÚB–\¤ÒTꈛžžÆääd`ñyÕZ˜¿§N(ƒº•6Ï|ËšçšX4Û1ÃþÆ-°¦i˜˜˜@4Åë^÷:”J¥ª&¥&gëY˜ËJªJ2l[µ™¦<¤ÿZ¸®+i̛뺀ô‘ôÙ˜qçúÞ°÷óÀZ©T ªã†††ÐÞÞŽmÛ¶áØ±cˆF£ˆÇãA°“[ÎùVIÎ5$3¬Uºm˜ ¥RÉRJâ5Rz¶m‹R©$„ãÉdò‹[·níÅkiˆ¢Îýçþç²´&U!ò'§9'” ÞÏj‘ }?½&Çñ›ßü†a”QÕ–‚¸K ¥”ÝÝÝ"NkÎÞ½{ñýïÿH©Tú3)e¡PІ††´—_~Y>|Xþò—¿û÷ïÇ¡C‡ä‰'ä… Íf=×u…Jy5‘@ònD¿rH¥RØ´iÊ,µo!k®ÈzØ3P§‘õ¶m[Ú¶-K¥’çÇT<Û¶5îÄÙB¡N¥RþÅ/~q:ð%ý,ÓØØX¡²üjŽ_e^LcÕRP…"]c±XÄèè(‰^ÿú×ÏFzµ/²òù„ßüæ7î¼óÎ2™Ì'~ñ‹_è}}}«"‘HÜŠKµvÜßü"¬1f±¼ö—‹ @o¢ò\^µÇk 8û0·Ø*s°â·Ïà|Të#x]}ÇØØΞ=¸¼º’¢ÿ¥RI–J%Q,…ŸaðlÛ~Ö󼿊D"ïÝ»×áû†”Òû—ù—2åFKMÜ…Ô[AÝ\iÎWùQšlÑ}oiiÁØØ`ïÞ½ ÷÷jW¡lÃétZS@oo¯`êÀÿxýõ׿ÐÞÞž:yòäM™Læ]‰Db["‘º®{¥RIc¹ö ÈˆG÷9ö«]}(Jþ)ÈBœþ¹\†a ®®.¨Ú«D ²ØÅa¶J Ëùè‡Ü¿‚R£#ÇqúmÛþ_±Xìïžzê©#ÌpRI3—1“’¡ë,•JeíÔ‹]ÜÝ *œÐ$ŸÏ£¥¥kÖ¬ @ »Â¢t:í©Š¡««K9rDäóù ›7oþѱcǾ{Ë-·ü¹ëºŸúÛ±±±ñB¡ †a“Q a¤ÝØØøîH$RGõå¶mK‡mŽãÌ(R¼²Üî{WB j Z[0!ëEPëÔéE~E œœœ”RJÍxBˆÃ0~˜L&¿yþüù_Ù™Ó‘‘ïÊ3|có Îï¹j&€S}qØÍ‹t¦§§qòäIDz¬7nÜ÷º×½î{o}ë[÷˜V#þõ'˜¯*…JûBJ)þóŸ_Óßßÿ*·øÿŸ›››¯%:Ÿ½7˜jtµ- `‘% kãoЬRõ¢Z ¥vV&“ÉÜ­·Þúý[n¹åo¶nÝz@ {ww7 In`µûB!Òé´VWW7tÍ5×Ìè³PK‰ys¶QæÕ*[ÎFEÁX)%N:…׿þõÁhó«Qøí¨¿§§G=zTà?ª µ¯}ík}?þø_ŽvppðgSSSº_drÅ×ÌzÓýÔÏ’¨õõ ûsù²¼n€w*ŸÏÿËÖ­[ŸPB辘Sàå<¤åOþäOŠTÁv¼CTÍ„‘®,$.Cˆ‹P099‰W_}WóZ”;Àð¼P†‚ÂôËûï¿ÿúX,ö‘†††¦R©µÑhôª-Òà™Fˆ‹ÏTÎ-sx A¥N#…€E¥išÂ†aÛ¶üÄ'>ñ/üyÜçÏ’Ãÿ0W!lðÏíÞ½{FPR-¢×œÆîÊÎv_Ša3 \×Ekk+ÚÛÛqæÌÜrË-¡íèWÃ]`±AOù•§nŽ¿ÿû¿?6==øÈ¹sçžœ˜˜(úVÁõÂÃk#ÏÊ §ÿ5žBz¯qœ]1·|2¬7¾ÒÜCJõ-0ééºî™¦)ùlÃ0ʺ»»;Ôâ«)äj€7Èåre1‹°&"µ%{¶éEÕ ®P=ÏC$ G8*¥ëæ.P ÌϺiªõgCëêêBoo¯ øÀ:Z[[?‹Å>ÚÜÜÜn𦿠·BPk²4 CÐØ¦p]×Õt]¿¬ŸŸoH|‚~:uÆÆåýd%ÕgV `\ð*%k&Çùãüã_ ôÊ%4…BñÃþPNMMAB9|òë^Ìâ£ßh<´µµ¡¡¡ûöíî]»®Ê‰E…F\Jé ÖD ¥<³~ýúÿû¾ûî{1—ËýI[[Û Ñh4bY–,‹°,Kú-ªžã8ä› Ë²ty…<R‘HDr¥Æ«?_‚×0ËÈ‹´ˆ4ÖÏBèš¦Å¸Õæý"K¼ä¡C‡Z²Ùì0/R§E-$2׊D"ã3Ý—R©„W_}5[¦rÖê–píÚµKWë úúúò_þò—w~¼¿¿ÿ§¦¦¦òù¼ h®¦iÒu]]!4Mi¯˜Æ $€Â0[Ò|b•þÆPƒ´,K.µÕ¯;Â÷¾÷½Ij"¢ a<çXHÑP¥€,ef4MC$A,ÃáÇÑÕÕŒ,›¯²­)9Vww7·r„„B ¿õ­oÊårŸø£ááá}™LF !k2r}×@ض0]îJÀó<éÃ`ÁKA Â]þZ×uA“¤”àc4L`—ZøéÂww8ÁçàÃLyòb6rÄ144„ÉÉIüùŸÿ9öìÙ3£Ý¹æÌãy#$¥ä—ªðR*£iÿð¡}èP.—{°©©é} )…Ù–[ÏËñéH.†a ú0XÐæ\*+4 ¼ì\¬b±ØHÏÇWÚK† ”ïи–e!—ËÍh*"bU5¾¡Ž€Ÿ¯K¤r9–J¥2%T*•088ˆx<Žáááš;°Š`Æ&à‹ýÚSÓMßøÆ7~súôéÿÞ××÷߆††Nf2©½Æ[ÑJ‡^ zVðÏ…®ë‚RUþµK†*Zó…ĸÕå}¬ O7 #Bd2œbn)Áï¹ûî»5²Ê”¿çRü¼ ˜wA.ä>¨³yE¦®ë˜˜˜Àðð0öíÛwÕ•/ à¹R– ‚eªÊÈMRŽìܹóÑM›6½¸víÚ‡ëëëï­««³t]—¾+ ü”¤Ð4„G©‰ÿ>硦ZaüGÞ›—— ÿûAim ܱ¨´ð<¯Lù„›R!I¡:Ž# È9Ù1…ã8RQBL!NK)_öõ©#.\~ÒµÞ IDATøß“Éä'W­Zu],Ó¤”.M×uÏïz“†axRJ]AuÂgÀ `¦ÿ°¹²¢×Ò4MÁ‚âbÑ4Íó•)†2Ú'̧ðƒN²,á[¹¼eY£º®išv*ŸÏŠF£¿{Ų¬áûï¿ü«_ýê †a¼ÉuÝÍ´jZH1ñú¡gù\ÐNnÝuÝDoo¯  Äæ²báóçÏÇÖ­[—çM>!Š—”tÙµ/”7’Ϻ$¤Á_:t­­­¸ZʈC™…Â,ýr§æÂ¾ÿ¯ÿú¯G;;;ÿvóæÍ‡]×ýd}}ý[‰DÊ0 éyžÀ£Àšã8RÓ4éÃ^Á‚aàŒiêÆR cŽh|áÒ˜(˜µõ4M+š¦YÒ4­‰Dìh4êÄãñ\<w’Éä”aç¢Ñè¯ãñø]×_J$çÛÚÚ²ê=}ì±ÇÔÑf¯ÖÝQ[o«±†a‰–eÕ9r$ÚÕÕU «óXŽgÿðÃç¿ÿýïþ9¯䊀\•Rm!%ļ_\v0>>ŽöövìÛ·ÿöoÿz¯¯X% Fpà û<¬ù¼ÜˆJßMu^:ÞûéOúåÁÁÁC«««ÛœL&)­&4MóèÐŽãhdÍé||¸þa=)¥F4é®ëÒÀÕÀÚ‹EWJ9)¥œBŒH)G¤”ñX¬_1]WW7ÞØØ8µzõêÜêÕ«s ¹ÉÉÉR}}ýD2™< WéÚè¶¹®Û`YVÔ€K:‡¥ŒG0×B¨?FamݺU{æË©ü©ÏŸ”’mÛA(±.ó  /°ZìqÕy’DKÖßß7½éMDooo6¼’ÁR -ù]êééAOO&¥ìßµk×ÿçºî ¶mÿ±mÛÿ[*•2 ÃpK¥’nš¦§rªuóÜ?§@Sˆ=ÏË!Æ]×½`Ûö€A)åiÃ0ÎMOO&“É …Ba<‹M¶··gŽ9"?õ©O͈Ú%“Éj¡A°t¡i©Jƒ[Ô6Tõµl¬kP9ïÅD€ÉdRŒŽŽJ×uašfèÄæÙæ?,&cÂï·®ëˆÅbÈårÅZKK n»í¶«#& –ˆ*•}rž7X2:²9¿£šïïîîFOOð‘AÀ?ö±Ñuýá|>ÿ¡¦¦¦Æºº:×u]ÍqŠPî]êº.È=pÇ0U*•&¤”N !Nض}®T*B zž7266–)ìÞ½»P黺ºB£è|Œ›ÚCÁïuww·†ƒÇQÈrD§Õ"CIšçyuRÊHˆð‹åŠ Ð1üqxž‡B¡Ì#P‚<3°P°*Luø*…_|k׮œO>yÕ˺Å.V,`–Më1 —úÒÓé´·~ýú>Ã0þêÂ… /Ú¶ý@©Tzc"‘Bé8ñãç5Mvg¸X,žBœpçt*•:=>>ÞoƘišÓ§OŸvr¹œM} Õ¸.a¯C\(OU„ü3ÇãÈd2qó‘ŒV­PW+,(Æ3Âu4®]»Ö {Ëýœ'&&ǃiÇaãÉx t¡J²Òøu>Zóù<‰vîÜyu(ž»_®ßbò½R!ºººDooï«;wî|lçÎûǹ¿P(Ü’H$ú³ÙìËuuu§…'Ïž=Û_(FW¯^=~ôèQ{÷îÝÞBϯBª+ôzçò§C®+ti5v®¿“‹ÄǸ«#Öu]:C)Ô[ —ËÐw~øÃ½½½’·SJ¡B"Žx´®ÅIKHðÊ@¢Y—RCr3™ >Œn¸RJ¤Óiôôô\qÅD¢ÂØíeé"[*É`ªðƒ‡ÆÞ½{»ŠÏ,»òšÏÚ½{÷Û³Ùì_ØLýôê°à?Rcœ^ŒÓ‡qKIžÊmU%ÀËpýcÊd2]ŸùÌgN͆z–á9BJ)¿ûÝïlÀ¶m×GîA$ þOEFôžÅTXòûGÿrè[n¹ÀððpY‡á|‘ØJ_ÚŲêKiAº»»i\š'„O?ý´Ë¹!­¸.ÕõضB[&© é"+ÖX*•2Ãb;Ë}o„¢¿¿¿Ž“rUŽŠ‹–èØe R´tŒÁÁAtvvâ™gž™¬¼’–v¹_€ZzL‹h¯+ùì+ÕØ¶Ý$„¨_îrh•Ú\ñ• Ã0"—ê><øàƒ ¨ª8; ¹/Æ2«™>ª¯¯‡½÷Þú™+10¸¢@˜€‡M™­ài¥]›ï{'„ÒeKÙ@4W Qi+vÔærƸâ+ƒîœ‰ˆG«)L.¹%®ë¢¹¹oxÃÊî¡Ê¼tU •Æ fý}⾬æ§%÷VÒuo¿÷ÇX^bÄQ1Xæ/˶íÄÅ|檲ٸq£Éy'ÃHHU—€3/VÐ嚦 Ïó355A‹q%ãSs.Œæ 8>å¹§X|ïb¤¸»üNBÉ­ál“pÔúBQWRʘa- RÒ–3EL4õ4ÏpçÎŽJ5ιx³ç'T©Ëgtûùg‰ÎŒ*i9ŽƒÑÑQœ>}A†àJs ŒjØJD³½¾œšiš^¡P±Ê»oÃY!~} ðê,Bn-ÕŠAÒEÙlVãS©ýÚ ¢_òk&Eí»wš”Ò{ì±ÇJ¥Ê2¼9ŠJ{)k0aäG~ý*©)¹T¶L³O:…‰‰‰+rˆ©†ÚºÔJÀ³m[W-Ö||}•7@U¼­¸åXSSSjZ6 T§J8xð`„OHRS™$Ì||Y˜»0_7IeZ¢T-·¯¯›6m–-[ðè£^qÁš¸Ä+–ÅÈT‹¥Zþ0×@S¦*…°áŸŠPƦ§§×wwwG|ËL¸h»=Nk<òH‘Ÿ+ù(iF%¡jÙ3QȪق£G"•JaÇŽórÅjJ ¶æ„Ŷm'¥”UjÍØ|ý{¾y¹°«®gÔa¿7mÛnnmm5.–[¥Æ8£µ'TâÁõq°˜SV•¤ª€mÛF?Ž9‚ŽŽŽ+n.AM \ÂÕÝÝ-lÛNj¯­Ön¾V,Ì¥¨æ{<Ïób±X1™LÊ0Ÿ}¹ã:u9rDã=P­Àl™ƒ…*R8je&'&5M«V­ÂÀÀ@ ÔÖÒ¬žži†éó,x«J#¬Ñ†§ÁÔ÷ûìHuÑh”€¸)B%MèÐÒé´ÇP]¥ [ä¹TTª†a³gÏ®¹æš+*@XS—x©v),LØ,>JóåºnÜó¼5###T5LƒZN$À§ûY À… Zˆß€²|ºp¥ŠBU ç«x×"OÒ”$)%8€÷½ï}øà?XSµµ8+È^KJ…©5ù†³„•62ýŸüjµæ=DP„išÖªU«ˆàT\¬ª8ªñ öj!„xöÙg'iŒ='Uë(¸åÝ Qšüsœ™^Ó1t]ÇÆqèС+ Ô”À%^>=𬔿›Kè¹¢±m[†áqÁ¼ÍCbfQ„èíí-åóù2ᤲÞÙØ†xz±Ú!¦aJ¶R±–“““Èçó¸ë®»ÐÙÙ9#Cs9.£&†—ø–G¨i6?•6üBýÞ BÐ8<<U…ô"`'FË꨾Ÿ‚„|do:âè§Úkc,âhÌç  ~ÿâ‹/"‘H`ëÖ­3¦jH ¶æµüT“äãÉÃzÖÃ&òVšG0›åãÑôkÚT("ÜBc™ë*õsøÄ1pSY/Õõó^V¬ «¹'³ kjâ (“É`õêÕp½½½óV¸5%P[ÁJ§Ó&€8|rŸ5ÙS7­jõ+M,®ôzmä0Æ^MÓ´úúz’ Í—Oïb41Z‡²~‘‘‘2·…Іèúè¾Ð4§°«ÅÀt!,Ë î›®ë(‹BàäÉ“èïïGÿ ÷£†j«êõ•¯|%!„h ! US-¸˜ –.4 CÆãñ²qa—Ä?z-()àþûïÒs¡'×€[þ°jB560EÀ]N{®ë:¨ÓqttuuuÀÞ½{C]‹š¨­9×õ×_o˯®ëžçyZ5tÿÕø¸a ÄuÝ>ó¾+ÿ3‘ñññœ‘¼^ÔM#ÑèÜ£Ñ("‘È ®nË¥Z42§ ]×WO$èìì¬ÅjkÁL !Š|3ƒX\娡ÚIDƒ±ÉÉÉ”z.—ŠK‚Îsݺu3F“óöaU9°‘öK2¼–+ñÉEŽã```kÖ¬ìÚµ«Ì©)Úªje2ൾ}¸®«-føH%BU!}ôY‹ÅÊ,òJ¸GÛ·o ¹êña¦|„ýRúç>ŽÏ}îs5$P[ó_¶mklüàOGšo¬Z\4[MAX¡/8fkk«Š\JeÀýrŠ PF@ –ªeÄa¥Ô‹A$*Ã1ïܹshllÄ+¯¼‚Ûo¿}Q•‹5%p®±±1¡®æĪ9TâùžÄÔÔTs:ž1¤öR)Zmmm0MsÆp3W)P¸aäÂÏ«釂”RJäóy´··ã/ÿò/—5>QSWàjllÔü\¸T6®¬fƒÎwD÷l>«ëº–”².äX}7«ÇܱcG ‹p¾Aµb6eX⊅,!Eà88€íÛ·ãøñãÁ|‚š;P[U­‘‘‘¸®ëõœæþ”¥ùXʰ¿ñ8[€ŒÑxy¦iòH·¸”H@=Çl6Ìà‚΃„\ðÃ\‚E(¥ ”ŽkÛ6lÛF¡PÀsÏ=‡mÛ¶ÕƒµUýÒu½Îó¼”®ëb¡Â¡nÖ0¦*¹ù-MÓ’Éd’Z|½•Ä2ýÆ7¾1  ›¾ÄQ@%ä´(AaµäPEc±XD&“Á—¾ô%ÄãñÐ*š¨­ÐÕÔÔ$Hµ‚¯fåTaW»ãæp-â…B¡å«_ýjäbN ª Ü„zÛ·oŸÁ7ÈžmÛ3x ,E³¹"4J¹-Ë‚aF6›ÅÇ?þq´´´T‹©)Ú •y‹%üòj… wvvº+mjµ5Ÿ?>øaP¹®˜1›q)ï"à‚}æÌ466¢T*-øYÔ”ÀU¶"‘ˆç|"¹8cÍæòyc±˜V(´0«| 4c𺧧Bìß¿?B50¨f‚ƒKqßxk3Ëå088˜œœ¼¬º kJà®b±¨1H+5M[îþýJ¯%€H>Ÿ_uîܹ(Ÿât© QXésooo8¹œG Œ¢|±Š R|…O-², ÓÓÓxñÅÑÕÕ…öööš¨­Ùý]Zº®KŸÑV_ŽdÕž–”¦iZ–e EW†åBÍéÁy†€WÒ{— (Ϭ¬pˆPH]]ÆÇÇÑßßÏþóóFd5%p®L&cJ)Mª  òÝ‹½Qñ6lØŒs»” @=4Qy=óÌ33ÒTËÏùJ¥R™RX !)¯NT˳©^À²¬`ZÑÐÐΜ9SCµUêÒë©©©z×u›üX@Y‡ÜBý{U€ªT(Ò÷«ëÇÑh+äžqGy©T*N¹¯T#°XþÁJ‘~Êÿ¨4 £££hnn.S^‹¡^SWèŠÅb1Ó4#<â<ŸM¢VÐ…ÕÊÏGaxž—:{ö,QŒÉ• üa÷#›Í–ÕïSj‹ÌæF,4Ž¢þžúÈ-1M¥R Žã`Æ ˜œœ ÞKŽš;P[aBì-†ù†¿ ¦©E4³Q麮·¶¶^òÆ¡¹»ßýnD"‘2Ú5µ€H%Uǘ/ÅåñïäÃL…øå/‰ññq ¯hPS—xyž'<ÏÓúùÙ¬”úz¶¾Vä‹EÝŸ†‹8‹p¾×œH$Bݧ°y<6°”¬À¼­˜O/¢µqãF<øàƒÁÿ/û¼¯£&Š—P¿F5.Ù—¬p§ªÅGt©$#.«ä#aùû\×m(•JÍN/ç²Å"¸ãŽ;ðío;ˆÔ‡Á}u¼9÷ñ—B¸®”{žÇó<äóyœ8q/¿ü2Òét-&P[á˲,—+Ÿk°êgÖ8Û\BurÊ,_¡Ä-ËJ¦ÓicE¡!Òé4¤”H$Ó5pöaN§¦¢ƒ¥¸,""åÕ‹”)°, ccc¸ùæ›qäÈH)qûí·¯È%5%p —ã8š”R¨~æRº*çlÊDáišLºÔiÂJ‹&ŽŽÄ£*ìWiÉøT¶¢ùÆ'LÓ„ëº0 £¬§€b£££pÓÓÓPFHZSµEV#溮ÁÚ`ƒªAnå«!ԬĢ3ÏlƒašæŠê¨tB|øÃ.ëæã½ªâ ›É¸P·€>G¼J‘ß6]×qöìYÜzë­øÁ~€t:]6‚½¦®âEæy^çy1Ö•&|ˆ.«âÙwçkVá{š\×mëìì4V²; º;ªß¯‘ª÷‘+‹Å,š~Ä㼚‘îëøø8‰î»ï¾¨­rÁ’RF4M3¹Ÿª¶Â.¥õœK¸ Ã0,ËŠ±ÈJEü”Þüæ7£T*• ]ŠªÔX´˜Ëã ‰s pRRMÓpàÀ¬Y³¦bwaM \Å‹²ä øÙ`ü×< C%W~ÍÇãE𼑀jáÛÚÚ`ÛöŒñcTÝ®–bÍæ^¡iš^Kkööö.çs¬)Ë øVL.õâj,«¯ŒÓÓÓ»ví2ä 'Êã…Qù|~†kËxñÐR‘òãq÷ƒÿð±ê¹\¯ýëñ¦7½iÅ¥ kJà¹þk© ýlµêË©üïär¹¦öövBÚJWÝÝÝxàÿgï[c$;ªûOUÝ{»{Þ³¯Ÿë± xqˆB¼Ba‚‚2+ ùàÅRˆ°>À—HÓó9 ‘Y‘¿!ñm' yHäO„ÂFQˆØ@vƒ³¶ñâëÝõìÎî<ºûÞªú˜:×§kêÞ¾=ÓÝ3ÓsŽ´Úž~Ü~T_çï<óL åÄ¡‚!<½õ;úiVâZu 1]]]…‹/ÂÔÔ—+¦ ÷ÃÏË °·¾­µÖæÁ@tüMJ7x¯tß|ë¼@IJ)â8¶GŽÁ‹[q@X3Ñÿ¦î*m0ò¹ wð¯ØUˆK¨[ðæ›oÂÚÚ¼ñÆ]E{ý3ì1€>¿ÖZZk…_O7³o ÐÆ”ùUU»©I[¯×á©§ž²ûµFÀÿHKKK`­Íã~ßåÄ9E×€%ŒPK$Ë2¸qã<ûì³]ÖÌ^Æöh/ !ÄÄÄÄšÜþ‰KyîCJà¶BÚgÁ)ˆ5ö±åM=ô$¦³ CeÔðqH)QA»Ý†N§J)¸sçÜÿýpéÒ%8wîÜž,aK`˜v ¼¿öÚkIš¦±ÖZ³•‘£¦êNÌÐ^AÅ?‹± Wìb1ò;ßùN>‘x¿©ŸõêÕmD#[BhOÍ (c½¾WǦ)¼öÚkðãÿ>þñÃòòòžÇ†ø+zìWõW3!„±ÖZcŒ Ý~Uç ú)©P0Ñß`s…ëÄBˆZ»Ý®Ù0KËÿˆŸÿüçaccºÙ€1>àÇLB£Ê¥ˆ4¶ãƒ­¯¯Ãìì,üæoþf<„râÄ ›$‰ )-K‡ZTÝh> Q‹•¹ ¯¬1’$9òÐCïbû¦¦¦¶eÒ4Ý–.ô­¿Øh~: I)!I’ûP?GÕç+¥òÏïy†àÝï~7œ8qbÏkö(N°±±¡kµZ¥”Âc‘s§~±_7O] jžzV‚ÀÖétÄææflºæç>÷¹дÖ]§/¥£iT¿â¯JL¥Š»FŠð6þýæ›oÂÆÆ;v Þ÷¾÷íiv€A`äòå˵4M㿺ß8 “yŠºIJrfzzzv À¶‹K ˆsö 2`HÁ ˆ„ã8†õõuÐZÃÕ«WáOþäOØ8¤2£”:.„ˆqó¹dƒí ªhB÷ü¹F£1scø=/^¼ØÕÍG-²æ¡Ýò „~wŸw¶߸q®_¿NÇÁ3&‘RÖ13[y™ëÜ0RV½,Gq&œ‚¨ @"`å]³Ù„$IrÅG· Ä3°S¿¿Ïß7wÇèÀ’k×®Á©S§àæÍ›pîܹ=‹ 0ì‘Äql]€JPŸ}Øùâ¶áüÿ(ŠbÂsx ,P‚>wè÷¤mÆ´z0dÊﶯÀOIR7Åžƒµµ5X]]…›7oîÿ ƒÀÞš¯V)¥ÝÆÃéÄv”OÓªEÑ´(*c< nÁç>÷¹.R_áýŽB?.ƒ%¿»ù >»“_ÓE\¾|N:F.]ºÄ pØÄ#1p$¥4¨+È])e-Š¢ÆAÿmq:¢ÓŠB¿‡`#Íýÿ±A!MSxç;ßÉ1Ã"èc§i*â86Î7Æ„™;5ë«>oÓ®;…,Ë””2Cóà ÆPVVVò¶^¿ª’ö`Ú•Ÿ¦wB~ú‘v‡Òõø×ýWxÿûß {ÒbÌ °GróæM¤ôî„RJƒQú~‚Ný0õ« §@~$IäúÑBÇ$I^ C‹"(bæ TV¼“u)šMÇ™Ôj5X__‡ééi¸÷Þ{`«îaƒÀÞYF)•¢[àèljÖ=xFÜáR‚Ê“cŽß¹sgbÜ~óùùyhµZùX0Tv_¹}>BÿñA é¼B´,²,ƒW^y¦§§áüùó]uý³jƘšó m(Ôï Cé­wLCŠ1)å´”2ÆûÆå7?sæ ÄqÜå"…Ny?8HkÿwjøëDÁ…’½Üºu ÖÖÖàèÑ£0ª®R=­õkí]®€„6 ¤w VJ©É)eÆé÷Æ’âW_}5çøÃÓ—rúU0¨SG“ág ThY–Á÷¿ÿ}8yòdÏÀ0€A`¤Ñh(kmäJX±RÐbpp'§ùNú pJº»F¼¦’$»™Íf¾ð…/@«ÕÊÓ¦èÐñd”‡Í÷2V¦¸RÊü½ÑÊÀLfggáñÇÉï °G’$ 5¿wìk¢Î€ö¸×ÎÎÏÏ'cK—.å|¾òQ%÷Y‰C³ Å:„õ ´É '|øÃæÀàžDù囹QJY2ÎDDW@ÐÖS?÷M‰)Š:ÓŠ6¬?2Û]ÃJ)­;ù¬”Ò®¬¬$}62ìS±ÖÂ#<’ÿ½°°?ýéO»¨¾¨ÒSv`JBâ[;ýiüõ¤@\«Õ@k ßÿþ÷áýï?<ñĽ;„¯Hؘ“$I¾qƒaIi™©IY…ýÀZ!}jŠÒÓÈÝ'12Š"c­N'¾ë®»2ŒŒÃZÐó»Ò4¤–\úhïWø• ñì06€x¯¬¬Ìáztý>N'»$ IDATO×Ñ@–e]'?¥#ó]¨~T~ŸŠïíµ×`zz>þñùsçº%€·­µ–F³5÷ oÛªƒ0yþ®Y¥­8pŸÅ2æZ­&ßzë­ÙqqŠÌðÏ|æ3 ¥„V«•÷ÐÊKüÛeM‹B‹àòå˰¾¾>ô^í?Ôðf³‰¶ú¶ ! ˆŠ6lˆˆ4ôœ^ PÔC€„"ÎVÇŽËÃÂÌÍÍm›$ìÇ|à 5cíDùýµ n†”Þ|óM¸ÿþûá•W^ªKÀ 0wÇ‘ "išÒ‚áûìUOqS•‘aT‰4»ØBEQ2N1P|Dþð‡abbÒ4íaªè> ‚‰˜¾å ŸÁ?úÑàÿðáw÷wÆÁ%°o‹RÆ8„¶=„ÖÚ*¥¶5•ÑTù Þcúpר2¯‡@ ©­#éîqÚ!pÄßðÖ­[ ”Êc¡©D´»Ð/Ú)„ h…b«Õ‚7ß|fggáÉ'Ÿd‡à ™í'êõzÖù¡H_ÂZ47¯(VPvúÓS7aÆè·ØÜÜœ‚=¨\6øsî»ï¾m”àØnÜn·»¬TÞ¢’Þ*4å40Hׄ¾Ý’™™xíµ×à¿þë¿`yy98Ž~×4h¬¦£×™gZ­V ®i½ŠÆ ‚Ü‚š˜h~hǬµÒ4kµZ§ÙlŠq_!œ9s677·,óA“¦`)³ì(0¨”‚8Ž¡V«µîܹ“7]¼x±Ô€;p å¾EeXQŸ<)U[tÜÖÚÙf³iË:ýÙŸýY—Eäÿ°¦Àï)(²¾vê"Ð×ÖëuȲ nݺŸüä'v(0ì‰ã8¥.€RJï„>¼Ÿ Öë9BíþO:ν †ï}ï{Ðjµr%£§~§ÓÙvúú>ýN”®7ZgX7Çq:«««píÚµ|6ÇhL€t¸ÿ|ýÑݦžvrÚàC°•Æ”.¦¤”ðµ¯}M–uBÀoÿöowùé>Ö Ðæ(ôXš*»ôu´û pJÑK/½=ô|ùË_ˆåÁ °G.Â~ô£©4M !b\Ä­º¡îÂA¹~ 1pmì^J)c­…F£ayä‘CáÐÒëk×®å@¢e£=Úèô3« ÖÚ®Z”"¥„z½wß}7Äq¼­‚c(|ó›ß¬k­g¬µ‘Û\vÈ TÚs€ŸƒJ)»¶¶vâ±Ç; pöìÙü÷xæ™g¶± ÑNCªð”{ ¬_£èÔ.b#FÀA7Á×®]ƒ7ß|~îç~n[€Ý`€ÇpÏ=÷@­V3ÆëNIž/úQîPúž\E'_h )­µ0ƈZ­Öø‡ø´TIoŽ•`­Í” Ü¹s’$Ù¦ˆðÛ½vìÊïíÏ‚ô×Ek QÁúú:¬®®Âùóçƒõ;•ˆUu¸ñÐ4w;ovwi¦¡ª2·é,ÙöÍ7ß<‡-¢Âïÿo|£ëôÇNCÿħÊL'cž¿_E¢ŒGਲ,Ë`}}~øÃn+Ú­;À 0dK ?bI\`ffF¯®®jÊz‹Ýlƒ þõó<H–0[äÃÝhœJˆ«þ>hÐ%õz:NžËGð»ýZoRJHÓ´«žCðÞ÷¾7g#öAŒÝ}j P3ÿ^YY‘N'r9L ÙagÊ>§‹p ¥”qyòù4Mç[`•êÉ'Ÿ„õõõ.f!:ÇÐw (hÀp'Àƒ½tv!-%¾ví<ôÐCpáÂ.:`qኃÀ‘#GLEY¨!eÔU!sµÓO¸MW¢¨F†vŒ×hÛoHÛ‰…Ðn·»Fœ£é"!¥ìÁ;Y?jâgAwäæÍ›ùgà²áƒuÒú{×j5 ÉVÿ4n¡w5ˆnº±‹Fy›_8ÓÓ kEQ:77w¨ÌjV/..Âg?ûY˜˜˜€N§“ó¢òù-Æ »=™iÍ_á‰ÁÁÍÍÍ.JòÝ ÇFk€+W®ÌZkï–RF´XOáÝø•´'ýÙ¢b$<Á¤”–LG¶ :Îä7f{Å:ÆÍ-ð£õÓÓÓ ”‚®>úÛâÉM-:œoÐï”ijÐkc Q)¯¾új>½x·ñ¶F𺠕b¢W_z‘_d¾V½–ß¶Š@@-‡(Š&àÞ²ï4Îq”3gÎÀÚÚZW!-)¦D#¡ÌA•®B?Àç<¡ÿ²,ƒ«W¯ÂÝwß ßúÖ·b 0ŒÎ È•§V«›1°o>£”Òz M2Š"…ŸëBq(…ð| ÿ]œ±”ا#ë×\/sçh¦ ÝnÃ;w`~~–——¢\¿~½ò)?Š o­…N§#@ãßZke­åý>ø`Wa5óiu!­( 1?Wµü8… QÁ /¼=öØ@”ð"ïÔjµž›aˆ'þ¶÷°ÖŠ$I2ÇgB«”šÏ²ì>ßÿWk hÁZ O<ñÄqÜuò¹Eã˪¾'®¥Ãÿã8†4Mamm VWWá»ßý.4›Í]í î6ÑÐÇ€‡â$5)±‘I)e ÑZÏÀVs>¦ü° ù_óĉ „È …ðq ¶úÅE;[ôþ>0t:Ȳ ^}õUx衇àâŋۘ§ö¹LNNÚV«eÒ4íZ´*µƒÖAì_×ZËN§cž ­µŽ¢¨åO->l@ƒ¨¯¼ò œ8q"ü×).º ~ð° ¾ûÙ ð¥£êÜ;X__‡÷¿ÿý]£ÖÙ8 rûöíØCY}l™®UÉø·hsûæ+X¬{wD¨‰1fö°˜ýUáÙgŸEÖ¥mUƒ¾òúˆ;qó(1 !i­amm ~ò“ŸÀ믿8Ï‚Ýý{²tí­õŒâºi¢(êšXÔ|šDDOjMÐV™{€%ËîZVk-„qÇ÷éjô³ãjúüF°¸¸÷Þ{/œ8q"/€œ®ãJ©ü´Æß Cv F~ºÿ¾qã<ùä“pòäÉ`[ûT’$Ù6tÔ;•w}‚õ#~|Â]Wb‹óaú;?óÌ3]eÔˈÑZÀŸÝÎ)À½éI_†AÊË—/Ãõë×wü¼È£ÙDÂÿÛÙ¶Dè£÷RÚ`„üɪŸ[›‰‰k•Rº©Ðíaê$ô‡šþð‡?ìŠÔ£Âcp𦹀ÅEiš–Ί •w‡b”vÌív&&&àþûïßñÁ °7¢i ïNõªˆPd'× Öˆ îÄT³Ùœ8Ì J¿5›Íü”G7޶Ó:?ÀW•0´F¾[ÖÀÆÆÜu×]pþüùíÑZÒ!€ ƒýÖ˜û3 «IQŒD¸-.Î:˜\]]>Ìk¶´´´áW¿üË¿œ+<5ûÓ4…v»ÝUbLËŠ{œ/[sü‡câå—_†›7o™3g`qq±ïƒ…A`´A¤Q‰2z°2E.J9õ3Øë°Bëˆòûã8†|ä#ö°¯%öÄßíþûï‡z½ž»¨œèÎÑ‚!ÊI0¨Ú–4MA)sss°¼¼ §OŸfKà ˆRÊÒüq?M&E£´B–A¿Ì·ä¤AÜ’I’ê=âÇm艽±±‘³ ažÖ Pk€Ætú Ò¬N*B¹~ý:<òÈ#°¾¾Î1}è䫱¸¸(êõz¬µŽH.Y¸Í!Èl‚® ½¯ìT¡Ï¹ ¾@ã¨üB먴f®]»v´èû¦â%vöìY˜ÝV!ˆÊŽn $zq˜Ê£)XSâ‘ÕÕUxúé§s— j‘ƒÀhƒL Š¢Y!DÝ_ ß"èµ€¡Ç}  Ê¨óÀu¤ÛÄ“wîÜ™A…?ŒJ_¸³ÖÂ~ðƒ®ÓVöùSPÜeïMÝŒ1Ôj5èt:pçÎüóõ[8Ä 0"k€*«”e}¡“'§VU÷‚¦&IÛl:??…ÖO¶t¡ï!à­·Þ)%$IBˆ|°)5ÿýš ~Z·L0EQפ¤(Š ÕjÖ~ðƒÀÅ‹û rÅàˆ‚‚¤”è"¢È~yãBùä¢Sž¦ªÈàÍ|©÷œúÆÆÆ~þèôU~óW^y%·°¬—¦ )uBLFeBŒh§ÑhÀúú:´Z-0ÆÀ?øA¸té[û rR‘]Uü•—¹EÁB¥” ‡=ˆ#kkk'Š,–-9uê;v â8Îóø4 Hw¿ç€Î,èyb»š âk²,¥¤i ¿ð ¿/^ÌÓšUÚŒÙK ‘p´Óék­D<¤¼Ã:µB×v‘$Ñ2ˆ”R1¯^o0¶ÖÂ׿þõmYÊB„ÊN{ ªº|hUи-W–RÂÆÆüïÿþ/¼ãïèšRÄ–À>ˆ þáíV«e‰_™!í'UŠ„ÆaUÙ`$Z[îÄ1I’˜ÿÏAñIíþh¡M †ÒŽUƒþÁAï[YY)%<ôÐC]ïQÚœÄK7zw`jjJ‚«Ó§-§½Nì¢Ó½lrQÕ‚$!„ø¨‰Rj®èÒ¼ªÝòÔSOåJI«û(I(šïþˆó*@àÓšSǦ"k-\¹rNž<É1ýh ;ÏÆÆÆ¼”2é…Ѓ Ŧ¦ ó„ÖÚJ)ëJ©y>ù{ÿöøó\½zµ+3€¥iš+¾?Õx'd¤X6ì“J)aeenܸÁîÀ~ÀoûÛÊ3kŒI†qªî$ž „0rëØ ±w@J)Z­–ò>#–šC¿ xÎïÿþïC£Ñ’‘&I’—Ó“ÜtÚð ÐÌ1VVVàÊ•+ÛúöøÐ˜žžÍd­ì4(Uñu–F°ÉŽPéKs(IG‹~ãP ÷K/½”Ç(àhs¿¤8ÄBT<4ÅH-Œ ´ÛmxñÅáÚµk ûÁðc=ö˜u€6‰\»gЧ,ÖàUJ7Œ1JJiÝF•FcÒÛ'\+@ÖSp4–ò…/|ÚívÞêKyý!¦;!ñS‹4 Œ@°±±¿ò+¿Â1}pRI8¢(²£Ú¤UMY#ãÝÖÚø/þâ/âÐÉØ‹‡¬µÛJt©‰Þétºz hƒí2,â$ìeÒñr”åå§?ý)<þøã]] ûÀ"¸pá‚p‹……9´œx×~iˆê:,ôüP¤·Ôÿ·ÖcŒ¼pá+‚,þöŸþô§·¥ý1æ´á¨>ˆP-Z†´©È§Nêr B]§ #:SàÎ;Ö#ÐHp[ªÀý¶—–OeÈ©%¤”H1–OFv‰‚Ù_ÿõ_Ÿ.µÃn øJNã1>ø 6ÛE9ægŒ1]ÙƒPü†ZxòÓ¶QåVAš¦pëÖ-¸sçüíßþ-,,,fŽFè``ÐZI)Ý Ã8B|~±I¨è„ü-•RÓ7oÞœÁû°š¥7@|à€,Ërâ¢Òa¿ŒØo.*º¾_qˆÙ¬h·Û ¥„ÉÉIX^^î»N÷ — Hù‰ÄRÊù(Šê¾¢ö;ŶWÐÐWtÚÅæ‹1§'£+Zk¡”J©Œ|ëVXƒµµ5˜™™écŽV¦q°è‡Zq¡òbàñZƘ|JÑ… àñLJï}ï{94›Íœ4ÕZË–À¨å_þå_’,˦1ª_Ó'fª¿?'0NËÒǵֵ(Š"€f³)–––,»岸¸Bxúé§»X‰ýqæ!"Ò¢¬OÑ^A÷€’ž"H)áêÕ«0=½åÑ¡ò³;0†U˜ãÇ0½L»úw°ñÇ¡÷a¾ÓéAåÏ£ˆÜV\*4k°¾¾I’tò”ýTah¢qQ’ÆÐÀCì,”Rµk×àüùóÛ,C!ƒÀˆ]˜šš²´#wºJýₚ™Zë‰v»=I-n,Å€ü×ý×Ûêþ}¦!ÒqYý€¿ž4EˆƒOp=Ó4…••˜ŸŸ‡K—.Á¹sç¶Y #–µµ5ŒÂwñÄQZªA@ÕÇ1µÚt®{ÍðÊí|=Pñ°\˜ZÈ€£‹à•«²/hÕ ^ ‡êõ:<ñÄpüøqvöÚ"XYYÁü;.¬‹¼[J±~O)œ?(¥dÖ R%“““1ý.££>.€röìٮ߽Óéä'z«ÕÊ; Ó4ͧQRR þþ@Å÷ “ðúZk¸zõ*œ>}^}õUNîEL€Ê{ßû^T"ìÓ7Zkã+æ(]nk­(b!2ÆÌ¬­­E8{ö¬*ruXŠ]2k-ÌÏÏçôcI’ä'5Z~¡•²vqú|ŸK—µÖpùòexôÑG·Çx¹F¸|ù²’R6#¤”ÂY+¶Ó ëIaJR«ÕòTòòòrž%` èmiQ@ýèG?šÿÞxÚgYRJh·Û¦é6 ö«ËÖҎѺ)%´Z­¼€È¿&ƒÀˆ­‚,ËjJ©9cŒðiªG­ü! cEcæ“âw0HÎ.A50h6›yÅÞ‡>ô!ÐZçTᨰ8R ÁÁ/êÕš õ€EDðØcÁ‹/¾Ø•½àb¡(?M©cd–e5jÆí']¢³EÜçU0'¿KHÒZÌÒChažÌív’$éšVÇ1­×ÈÁï ¨çéª QJÁêê*´Z-ØÜÜ̉GØØI’Ä:.¢È½pB›Èï3BÄišNVy°ô–O}êSà&À~ô#xôÑGáCúPÞ]È 0€ÞÞØØ€,Ë1ñ„£ü.õ+éKêgúèïNï 5­5÷ÍKú|¿1¦^¯wñ"V! 's¨Xkvv(Û4m ¢ íS’…®ésÒâ!ŸõXkkkðøãÃÍ›7ö"0è,Ò  #(*ô ý8É{ZEõädQ´@ˆ2(ó*ïL^{íµÜ¤f¾OSŽ­Çô±’ûNݲ÷`mm ¾÷½ïÁ©S§à¿ÿû¿¹hTñ ëëë033œHìŸî~W­þ+€Ð PÆBDKMCAB!„j·Û'ž{î¹IXër,Õ\1k-|ík_ëRjJIŽU€þ˜2ú˜¿_B–±]…;wîÀ¯ýÚ¯Áŋٵ[0;;+©gpiT¸lš°__¾ €¦ŠZW1‘bZ³òF0S077›››Û,2:Õ˜6¡eà[‹þºÒVdÊ=€…CY–AÇpÏ=÷ÀùóçFíH))eòé¢Um)®jî÷S~ê,Ëì»ßýî.‹†ƒ‚;—sçÎÁââ"<õÔS055ÕÅòäÇh/Aè§÷]Hú\ RÆã—_~~é—~‰A`T€K­IkíTèD®Ò:Zä=¯ì9tQ³Ô»ŽTJMt:„•ðnÁÿýßÿm^JOsš% Y¿Œ˜Î9 V$µöâ8Î÷Ôµk×à­·Þ‚¹¹9QËììlQ(º Îív“U úM+@DZëû.\¸0ãY7 »¥¥%°Ö—¿üå®â_Ñéxó4Ms—€fBû‡Z“ܱlà…^Ø¢@ãå­c¬ÂPd)_¯˜@¨9TªÚ LªLGŽãØ*9dK`0•w¿ûÝy«q¨f„f BÁÀPÛ±ï:ø™„,ËàÎ;[³ yI†ï¸,N$x›È\#‘ñ}÷¢4bY”?Yýê±µ6™ŸŸßÆDÌ«»ãXlu !àôéÓ0??Ÿö`7!=Á)Y©#(zÿ ¡}Y–½Í>ÄK2ÔŶ!bN×4„&]°h?‰”²111QïÅ+;K€’Þºu :Nȧiš··Ûí®!¦þð’²4qçn¦‚c[£f³Ù•%0ÆXcŒõ®óOÙcE'ձ佞×étæ°t˜ô°[°KK€Öq,,,@½^ÏIFŠàùïS’-ŽJϲ¬«:1Š"h·Û°±±Á 0lW»µPi&&&bkmT6¸¢ß ÕO r?ºK|O™¦©t &9M¸{K ¿i·ÛùìTpŸ“0Ä9Q–NF²Qtð¶µ6·†,HÎI‚l3RÊ ?WØÙ‰øÝfþÀÌ‚À¥K—Xñ ¸.gÏž¥h­ó5lµZ µîmŽ}U-9Z™ê§;ƒÀ°cô¶B¼ñÆsZëFQTsEeN®ÑÐZ×küöh–ý®tÞÿŸÿùŸyÀ-ªø06@¹ ‹¬¥TÎx,¥Ì™¤” ÃvÜyÑK 2qFÐy„;ñã©i⢣µé¡ë„z¼ë*ä$ƒ¼w/ò׳ÙlÂÚÚZ—õæghu¡_N\fqh­!Š¢m$¼ÃG}C}èF£‘þD¿l7§?UØ‹Q4µ¦¨×  TJ­uŠ1ü^Ž<üðù¿N×Ço7öû Bõ&>¸Sfã(ж¬þɇë Ò…0è)„Z‹¦•˜êÁÅîõÚЈ²¢÷0ÆÄƘ!„ÀÀðâüàamm­Ë‡§¾¼Ï@ÿùëï»þsØØÑZ‹2´®ðžRPUy>%¡ àSK˜¬Õj÷,..*Œm,.. Ž '^€ Ä8Ÿ0¤Èxò»â³JÖ"½>å`rLÀÏLLLd`ý\p¯“¾×"Yeùæð„xì0 @-ÿ{± Vž~úém3 i߀;P¶‘‘ÒÿýÓ??ùÉf²„NËÍÍÍšÖ: ™n»9=ŠbEÖF¨¶¼ˆ±HJi­µöôéÓ¶‚š<€dHB«ßóž÷ä~;å ¤œ(¨øØdäƒ€ß®Ž Ç C–f³i\Át  `^J9å3 UqÊNð^iÁ^ƒI}þ:ïsÕ„óëëë1Z”5‰epröìY8}útÞS°ººÚõ¸_)ˆÍ „&­7ƒÀÁàÌ™3¦é´Öz‚æyC…ý²´üÔôUÕÓPÃñkZë£Æ˜‡Øž\¼x1_·ßùßV«µMñ}v)ßôgúCøgFè ± Ñ”ž…@SÎ0Ù~t—­èV«e{}7–Á­®ZØ@•ž2•e|‚L4:Ü…ì2™Ïœ9c¯\¹bœ=ò®AÚŽê[e¯q'H|üøqÅ«:Ò$·ÿîïþ./ö¡JO;ý‚!ŸC²è`K`DV¡ì¶'®ÔÆ© 0eãÐ=ßRcf³,‹é÷bw`4  ¦i~ò£Âãºa_½’Õ–eˆ¢(b…5€Šsþüya­®TØWH1ìTärô"ué©Év»áwâÀàðNÿÐß¿õ[¿ÕE5æ𡱠Ÿ.ÎÏüø·F,ì …(Êþɱ€Ñ­—Ï0e­… .äM@ô´÷ƒÌ´¤˜Z¡…ÆŽ ŒRΟ?=ðÀõ$IÎ$Áu߉âÊe(#¦peÎR)¥Z­–¢@ÀÖÀh€›Æ–——ó9µZm[º0Žã.wÀ·c¯Í–À]‚S§N1fV1áRø›¢ 1ý!½æø!ÚlDYn‹z²,›7˜eø.Ahö À7ºöÆÚívn¤iZÊOáO›bþ‚æ}÷“““"I¥µFßÚ†¿Š¯j¦Õ`éCíÂþµü:rm Ðh4d§ÓÁb!Þ7{d|ûÛßÞFMNÚÒsp §>C{‡A`@ ‚®¼6PQL ÿîü«:|$dUàÛØØˆ¢·û[-ÇöFÎ;+++]9 ~=‚MrŠp%I´a§hìtÈ„ )pQ`Ï?ÝC.}¼(`)¥œ‰ãøÇöVšÍ&LMMu ¡{ˆr P  ÌÊd²+à[¾iF•¯HÑ©òú§¶ÏWtšW 4†¢Òîó5’$™¢ê\'0úXÁ¥K—`aa’$é"¡Šê% ·ÙØCyõÕWAk-*‹“ï×ûÁ"?°çNM/ m‚¢)Gþ¨sР›Í¦i6›’-‚½‰ œ;w„ðÔSOå\¡Á¥¡nÃPóƒÀˆOÏxŒ1"¤ä½1ôx™øÁŸÝœ>΂™th6›†`o,ú?VRà§1Z#à2<ÛÜNŽÈ%XZZ²ÖZ{ýúu%¥¬û]_E @}ô¢ñdxŸŸb¤|õ¾;QÄt\àXwýYkíQl‹fW`ﬔÏ~ö³]tm)I©~×)ƒÀp¬+;ð®w½«–¦é\%,+åõÍý"ó¿ŸåÇ|+%I%¥¬ãܶö‡àɵ>àsÒ4ÝFDÂîÀ-T˜ Q¯×cj ”>ø·KNëo,rmáLOi­µËËËÆÝÏ{gXŸþô§»”«ñ6º Î¥ëšU×ðÏ9‹À¦&Š"CÓz½rü£8pC¼ttnŠ37kBˆ¹………˜ÞÏ2ZŧA?´ÞVWW!Žã 9 úÊl†Œ IDATU¡ìŒÛ,Ë„¯€;i&48Ðψ9X!„4ÆùøÇ?Žs˜Yh`aažyæ™·gˆG(PÀû¸hîÞît:Ò÷ÃË|ô~‚DƒÞ`äÔ$˜d}ôQàÆq‘ï¥`/H³Ù„{ï½Nœ8ív;/$¢£Ì(`­ >A`È@ù&&&ìææ¦FFX¿Ø£× óüŒ€ð)jÒ§ëAg) !„¼pá<öØc¼¸{ !Wòë_ÿzÎH³išæî*¹-ÿ¬£³nß¾­Œ1µ^'½OYtê#0à ªôþà ŸÈÔ·&üé6(´=I’éùùùˆÝ½‚|ò“Ÿ)%t:|é@SŸ^ŽÙ†G £Ènܸ1-¥œEŦ•\»ÙEªÈU\ ¿ÙÂýƒõõõiädw`N‹…ªµÖ £”‰‰‰†1fºJén?~|ÈÜ¢(.*&òOý¢¥ô¾Z­–]¿~r8 „€^x!ï+°ÖB«ÕêêÀXWÀÁÅ«jj Ö×׃mÁý4ø …̼MÙh(PÿšþäùFa³,SF#>~üxÖØ Ø_n]ïüÇ„N§“÷ à‰î¥Ö:¿ŸË†G#}ç£Gj­µ¡æy¿CBÊN‚"Ó¾Èÿ¯òcŒDw ÓéϲlB!¹XhÉââb~›ýNBJ4 0¢˜€3,@š¦Â#‡ð>ÁR_ºø¡é¶e1jE`mC–eõ›7o&βáÀà>’f³ gÏž!<ùä“°¹¹¹ ü³,ëªD`w`Èî4[§ÓÉ}5jÚ÷;ˆ¤—Õ@3>/¡?xÄ¿J’HsöÓŸþTPW‡WyÿÄèú½øâ‹púôé<>„‡º9Óp1ŒÊ"°ÖZ×ÿmü)±¨ ýšýEA>zªSÓßÏBÐ8-)õ€I+bÖ3É+º?ã¾›÷ÿð°±±‘·c]JnDgF‰îÇ…µ¢œÿ~ <‘䙩©©9^Îý Txàœ|Æ''ÅçcFÈeeeeæüŠ­ƒàÖ AÓ*H^åýåÐ-wúôi¸sçNnø™ |ÿ|C Ð…J`â ¹Ò]å¥R&Fƒö­ÙK/½ÔUB¢ã˜À­8ŽB㔘ý|¢é(¥4.·,¬µsëëëÇ]PPbýËþ‰ ø±k-|õ«_…ÙÙÙ<ˆ@€·Ù2¸¹ ÕjÖZî¦Lx”>¥»OfY&ÝcJ)Å|û´¶jžxâ‰üþÉÉÉmA_Ê;À 0üű˜NC߬Ÿ’á^¬BEcÃzqöûy¯”Sƒû×XZZ‚óçÏç-,,ÀÚÚ@×Äb,fw`„"¥´~ÑN?`¨ØœÖ„6EÕ dA¹± §>²#Mp@pÇBh¬µð7ó7Áâ1¶†»(´ߺÉC•¨¨ñ§Š¥ÐuàªHè{¯­­´€€åÀ¸ +++y,€§ï¸zû4úQÞ¢-Z²Óë¹)>ÏÀÄÄDn°ìË€ZŸûÜç¶ÑŒq`p4Œ #Œ1S0áwô•)z¿4c½ÈJz)yàºbÖ•œ*lVa·à`Å ¬µ9Ã’ÎdYÆ 0*qóãT–eµª¾y‘¢ïÆ‚èå?úî6A)¥¬R :Î]§OŸ®qáÁrp¯^½ÚÕ;ÀÌB#Z€ååe“e™5ÆHv`? \ 4 +-úzߺÀñiY–ã¸ÜExà€@Ï<óLÎ>„.$ƒÀ¬1ZfE‘¦þ{¯ ½L<Šô>×`;mÑûÒC@lD’R¿ð –]ƒå,..æ{àŸøDníq`p4 +‹1F€òOYDÈÀÐ^A "K¾¶ˆW (%©µVdÆamss“-€&KKK]ëÜétÞ® åŸgèf˜?l$o%ö;¼|³Ž ßmÓÑ.^kíÖ‡F0¹{fffÒ8–ƒãøûŠA`Ȳ¸¸ˆ¥Ã055`ã8†²vâVü K”R§ !¦æççyß@—€î«………œosDüüóÏGÖÚ¥”@ß»lDy•!EH?@+ÄVÇSÌ4ûµñ¥§,//çûcyy>ñ‰Opv`®@³Ù4`}ôÑhssó˜1&Æ  ?ÿ¯ŒÐŒò‘RZé>¬bÒZ‡\–ý}-,,ÀÂÂ@ÎGØét†l‚Yt ^{í5R&RJã›ütL¹o¶…ø)0ì´©_3¿1æ—"ä˜À⦂µ>ó™Ï0ŒÂXZZ²/^®RÐdYÖW‰/eŽ‚sèCÖ¹?— ìñ "p(©RÊccŒ¤ýlŒ˜º(Íf€»GÖZƒ£ÈÀÑÁUNsÿ9ta¯AQ¥ 8„õ ›„Ö:o‚rUƒl 0 ØvÈðO3ôÞ!Äc=f¤”ÚZ+)±Ãnu؇°‹Uƒq‹õõõyvÆG†ì xw!„Eó~X>ŸÏ¼ ߇‘JG/&”R2MÓ#p¼Ê ,¥ÕjI­u JMø*ë6¡ä’þ|^×ðyŒ?dY&¦§§uȱ0°Yõz½G­Ýʶ zö ½?tí¼cŒTŠ)?uU„9eµs?d’$GÆfŸ2Œ ¬µvee¥fŒ9jŒ‰z⻵ª°ÑRe|Rj«Œ”¸+Ñæ*˲{\Æ ^éƒ)‹‹‹ #ø‘@­V³Æ©”2!“»_éõzßÚÀvcªÔ~b(¦àØgLEÚÕ8H­u„…,ì°+i—’$Ib1êìz±û­Ê¡:êïãóh)3^Ò¥µVdYf­µ2(sÀÁ–f³É 0LYXXKKK`bb¤”S„£Ö ~­-(¢U‹øRüÛ‹RJ{öÙgkì°%ÀÒC–—— *ÊÆÆ!,%y²%¼¯JÙ±RŠZ+Ö…5°•Xh­O|éK_â½Ã–K¿.òõzD/º2j H)™c'@¿øâ‹lŒ,--1 ÙÏÙW_}56ÆL*¥¬ï«ÊüU2 ZkYk­Œã¸~æÌ.bw€¥©×ëSÖÚ£ÖZés–™ðöz}Ž‚ž‚{.^¼˜ðª2°ôáÄqÀ”»k×Ú^µ…Ø-lI¦× EsÌBù5¤”SÏ=÷\Œß‘„z2ŒÊ%¨Õj©ó¯ Cû©ó/« ™þEd£~«q¨[‘ÆŒ1eüÑýQ›W—-–>¬,Ë9EQ@nPè^T:ŒŠî×Ð^ÿó»I¶Þ?ë[ßj ÈqƒKK ÓéÄäÔµý)RèªΠÃ%}}‘U€—€·«ŸñÃÆ+++w…¾' ƒ‹'X6,„0BŠ8°)u+(ÁH™+á?F²ôyöèÑ£ŠW—A€¥™ŸŸ×J)0Æ@E95‹\ l¢ŠŒÝ€4ÀšqŠS¸× g€1Æ9r„•A€¥—4›Í¼lxcc£aŒ™”åîêô÷Yˆ•RÁ `ˆÐDAyPp‚­”ÒbÓ¢ñúë¯çf`é!N™Y–Ý2ÝËæ™îÈ/ˆJKS~ öP+€ÞšŠLéÐÜ¿†1†A€A€¥‚¹NA@!¢*U|E÷•=^ÕU(znQ‚¡k­¾ë®»R^a–>¤V«ëj|sÞ'ô)é¨Å¹–dd»ÝžäUe`°ø™¿|·@†ý™VÂäíÛ·ïãc`éC° 'äsûf¹oPK‚°X‹^ucÕ1I;ÎD–~-k$í þC(HXôÿ0D)Quõ"h­  a9øÂˆ†ëKçÚ™eYNî*ÈA…£§{QÑÿ÷n«{¸XìdÁ± EQ¤Ò4çfK€¥Dù±Î\½ýÌÌÌœ£×àÆ{¡ÓôÏñW% Pô/W ¾¾ouz€†<‰*Š¢¼Ò ,dqqQ !¤”rÞ#Œ1rX‘~jø B4Bñ…2K¢`–aâxµX<…BˆÓ§O[°ëëëu!„ñ•u„ÖI¡eQV“àý-¤”8K‘™…XªÈ‚^\\FJ)0Ê>Œ&"êN„Üjú‡\ì7( ZºëZ!dY6õÅ/~±Á¤" ,â§OŸ[ÄBas|`°é5#Ñ‹7Lœ>}ºÁ+|ð…³Ãw „ÂüÕ_ý•Y[[Óa­þ0PìȲlË69’mÙüLøg%X¤G\sà–=z”]¶XzÅšÍ&´Z-kŒQÔ$†ßï·Ó¢¢¢¶az;; JèL»ᄏƫ̖K `ÿ=¥Tb­RJãèÅD?œ‚½”Ÿ*hÑhñ4M!Š¢¼­8D:ê-5Æ÷]´‹eH!¤iz×Å‹üÀ>ð&º=`K€¥@¢,ËŽ+¥”C¶§l\Uu•…°Öª,Ë$f8¤”Ðjµ˜RŒA€¥Š;pýúuÙjµŽÓnÀAYÃp)(0Û€–„s10ÕÔj5vXzÉÒÒ’xðÁ…ÖÚ2}£@þ(òÅ@X…ðsO·ÛmæcK€¥—<ñÄbffF$IÒq±ÜÔÞgVËöÍáN\9帳¦'&&XzÉ™3gÌíÛ··úoãØŒ¢ó¯eï@—À';Bddw€¥·-¬µæþàä;Þñ¡”ÒišÆ”õw?ü¡øâm÷µDY–ñþaK€¥ üüÏÿ¼‰ã¸ÓjµTÇC©ð»QÑi‰0åèUµHfWîŒSÀqª”ò„÷ÞO ,!}h·Û3`²,³0€¤!¥¥·)wò‡:ˬk­Í²ÌºÓ_`aE‰”rŠ*?6 !$O$b`ÙR »¸¸÷Ýw_ÍÑGRJáꈆúÞ~à±Lá{L%nXŠpóóïæ‚…øgWö€ã ,Npö€Rj*I’¡²ùsi7ahAÕÏrDZ,Px<­µ¶V«,¿Öé·ûÌAÐwӺƋÅM„¬DeY6Ûl6¥oØQ˜:, ŸråŠ"µ÷Öô`nÿíÔòp »¨ç8ªÜZù{ˆ•ŸA€% «««@Y…5‹°È´GåùúeïM3 ¡y†îÚ”.]ºdË…A€Ž9‚ƒ€ìB¡á ¾Y_õP¥³ ç ÀÛ¾/Ü'!^S)eÝ?ì>Ì­‚$I¦žyæ™)^a–’˜€BNNNÚ(Š@kWßõÛ@´VvYݵV¦i:wûöí9?ÂnƒK·Il@cf°o ŠÂù÷º×;¸h1þoŒ‰Þxã䟔ädíúÛ'øØ ”Í.¬èŠäeÎhawÀNOO€ÅÅEA…‡“0°¼­Xò®»î2BéòëÖïî£Õx´éÇWÚ*öNæ µH(@‘Ï3‘eÙ$¯2ƒK+€§ýÆÆh­€Rʹ̔{Ò‡)uÑø0­u^P”æ ]§¬éÈ{p³ &777§]LÀpÙ0ƒKHQ£éÖNÑ=eC½fÑ@Ò*C½Ü|Ÿ(Š„R*æUf`)ÅÅEa­µõzý˜”Rù§+5³ýÓ¿ªâÒÇËNù¢Ó½Š›P ”RÂä䤦ÖÆ;8EÈ ÀBLä4McjHÑE¢ë»µ2ºb 4 èCS„P|²ߪð3îXk£ÍÍÍY þmC8~ü¸0ÆG5ÞW”¿ŠPåz´¿ ÈÒ¹>mµ:´Ö‘bŠ<&B·Ys<@$I’¢àæ ˆÙ^5ª_RÝ×eø Ž”c!ÅBL”_€$…†-–}X__°#ÁÀw zâü¿C½¡jAìW ¹ýR+#D/NcÞýQ–eõ³gϪ"+ˆ…A€Z­(¥´ÖZ†XwèÓ=ÉÛŒéÔb_áCæ¿pÏ‘QxßûÞ7Á«Ì ÀR"SSSk­Âœ”räI}Kc·Õ‡îzÒS¢(æXƒK‰´ÛíŒO>âøD¿åÂAñ­)eçÐ ,aÅÁ˜ÀÏ8Úndæ±RÊ‘×Ö‡J’û%õ\¥”:úÊ+¯4ðûr!ƒK·Ò €$If„5Ô%÷ØÈû^ÅDU&ùßOqôî»ïn°;À ÀR ;µZ­Óét¤”Òb@–e»:Ñ‹”¹Ÿ,C¨h¨×kï'1ÒÿΜ``!§~§Ó‰ÀFQ”kÙnI?|ª2Êb\oè÷ Õ$ Õï¶ÝnS+€›‡X k”RY–eÞ&ÛØÕIYÄ>(óíùº^R0ì4/‰¶ÖNù÷³0°ét:Èʃ'åÐ}ý2Ôû»8ÁÄì 0°”H­VÓ¬›ò+`€ô[»Õ¹^íÅÇ™ldkµ*¿AW€]"1­óºûA]§úV%EØ‹ôTJ)=N¶XPÀÚÚÚ;Œ1SÆáz`·–@UrÝZñzÿÔÚÚÚ,}˜WžA€ÅI³ÙÄ0}¶†‘lÑŽï*.àwöíô$¯Ø¦l1Ö¿Ž0ƈN§“÷ãìƒ UçX!„¤nøå»¡à OŠCBȲ,È@_K›‡(]™÷ÏÖëu>ýXŠp€ÄŒS@!¥Ãt™Qi§`PÁ‹¸Üãùç ˜µ¶EÑœG7ÎÖƒ õ¥”ÆUÖÖz$ÃE‹HJŠ‚EŸ©(¾€.Ô:ÎÑçŸ>¢½d`·ƒZk$XÕŸïWé‹â¡î?ÿvÏAÑu:¨^¯Ûùùy¦c`ñ‰F•RÂåÐ!Š¢OÚ‰[PPö[øüéGE FdˆŠŠ¢(zä‘Gè5Ø ``¡ÊEÑ,=YûTUáËnÓ@è$+¨ÀAP˲ì®ååå„WœA€e»‰ŽîÀ km„)7ØÃ\z@ôj+.`ŽŒ1S§OŸÆ¡*‚Ý–íÊS÷€a×ÙÐÐÒ2…/Rü" "4õˆê¶RJË!ûÖ·¾@Co ÿÜÇëJgâsªTVÕÃ^?˲éS§Nai4Ob`AÁì¼Í&dŠÈ@Šüï¢ùÃtªÆ;0M¨”:6==]s÷CÆ Àâ¤Ùlv)¯_CÓKOÕy…yÿ~À¡Œs ê5œµ‚DƒvnnÎÀåHÄ?ÁðäÌ™3òüùóFJY)+@K{}ð¾êéîù–‡ÿœ^,È¡ EišBš¦¹ÄÖ[,áS3?9{¾~Я¨Ð§—ødEŠ^¦«ô¹”CÀË(Lß¾}»^öY«%`Ο?_7ÆÄî„×EŠÜË<÷§—‘†âc¡?ZHtZ£ðÿÇéE¾{Çñ¤”rŠÆ?XX¶bæÕW_B4¤” µ–eÊÝÏi:Í‹ €|…öçÕxƒH»>¢³üñ~3??¯‰•À®ƒ Êêêjä:ózû^´àý˜ëØæ‹ÊŠ­ÂeÊ]ôwÙØô‚šÌzDÖÚ˜W›A€% NG!lÈ4/“¢S=4S°ß‰BEcÈ} ÀpÐBL)¥NøàÀ Àiš ôW™„ÌzTH ýRˆµ÷²(Õ1cív{‚IFXR«Õ4U¢~ɪ4`U܆Ð󪀟š$ϳq)¥æÕf` ȃ>ØIÓÙztY„¿È¤GWbÐVv/ÅWú¢Ï‘¦é”Öz–‹„XrìØ±$Š"ÐZC–e}x, *;‰«¸;­!(œÐäåÁ~Ḛ)å$»÷Þ{¯8ƒ‹'?ùÉOŽ@Ãùð¹Vaz™àeÊÚ¯ PtÂWŽPk°uUÖ}©”‚ .äîÅÔe})­Vkj¨ÈX><(e Žº2ÆŽF=Ë2DZxþùç-y®áÕg`€z½NóéÛŠ­µù·äÄ·J©$˲ãçÏŸÜ÷ä}Å À‚2==­;Žt)>Û‡¾ÀãtÃÉÿøÿÀ‚!®``AY__¤O!„1FŒC=sq¤³xÒ}ìc†Xœ)``q1DZq”ü¹hE vj­'þßÿûÝ®d`q¢”ÒÆå}FßÝšãeÜeFÊ8èg •Sw†Þ×n·ï9~üxWœA€ÅcLÃZgY&„:Ë2ì¹/èò«T[ª‘Ð9˜pnMîÿ !dÇ‘{>gXP:ÎQ)å$íò¤¥\ÄìƒA/ëÁj-`L-GVb¥”B!±phccƒ¾†÷ƒ‹SªI)¥ò•jâO¦]¾™ßë3P¥/"¡Ï€ùµµµIúÕyõX¶N~ÊÙK†y xºÌxÿ>ÚØO‘1f[ƒƒ ÀVêLaÝ BIÍëX!ùÔ Ÿs ª[â ÙÖRŒ“–•R2Žcî$d` ˜Õ6MSáNKK‚kCu |ž’Žú} 4àÇ|…ÇÉãÔ5p€f1r\#À ÀB'#ys "Ë2=Ei¸AXÓt,9½viÈïG0 cß‚µ²,{ MÓ9tšÍ¦,ù\ ûHxîÀ°à(в,3N饔¢(Zpp݆¡y!kƒþŸeYMk ’sš-'Y–Í !¸}ÃröHòš‡(zû<éE.ÂACC%Zë#Ƙ:2 ÊÔdÜ`7×!îKÒh4"€-ªu^yü¥Œ],Œ1Žy§ 1ª5Ùét¼â ,Ó—ÌâÈ)pÐccİà„.`ˆsðA€ Óé(k­PJ™^”bEù‹2I’hçp!ƒÀá‘¢ƒcZk ®XH(¥N" M¢}X¥çWøù¹û2`)Z‚%Äþ|Á¢iÆ´”˜¾/Z:›››'@6›Í­#'¼KÆÞÜÝßl6s%tÌÂ’ çè:UËFÓÇýÙ‚ýZE¯ó‡ú•†øw¨lH† V«ÿÊW¾Rã]Á À²¥X RJ:q |ldºþVJuÍô¢zQšùŸ«lh)ýȢ쾫zâ‰'2€……Þ[ l!!„ÖzÊ·Š­µ¥ƒ?ü*= X«:ÅËNþÒM@Ì|ú:Ú+Ç(d­µVJ iš&ÿ÷¯„byy™Ó„ ,—/_N`Ò ?“Ð7Á«ƒ˜ä+3ö­,o¦®ˆ?È.ŽãSÇŽ›ä•g`WÀiÅÃ? ŽTÔøJê$ õëÀE¦~•a&!À¡MMýÌFpnpל¼ÿþûµµÖ–U r°AàÐa9¹­ÖÚclhR1Fì«~P3¾ªé_F+慔Š|º1­µuÁÏì°BÑl6‘\•S… ‡W.^¼hR ×so“$Ùæ øQÿP ¤˜>W€¯à¡Û4ÕG߇fB$£ø/˲BÐ’RNž?>¦•Q¡SŸa wQjµšPJåæµÖZcºzûËNäaÈnƒˆ¡¡©®‹Œ19r¤áž')ÆØ8ìòðÃkÐf‹ž`«¼6¦A쬵Bkõ*MSD –7ß|³fŒ‰µÖ9Ѩ”rl(¸.ØÜÜd“ŸÝ”ï~÷»s0‹ô[°$T˜V+r Ô)²ÀàçÑ'NÄìû³%Àâd}}}2Š¢I¥”Rx} )5„ÖmE³SSS’ÄX·lllXcŒFåGö½ˆô²$e¯Á  Ò4•o½õ–ᘃÀ¡/Fo+Ç ý÷+C{ª¤½ŠðlvʲlÛsCM ´ÖãB»¹¹9“v»ÝU…‡Ê´[ýèÕdDï§ùÿ¢×`/ÞGù«–2;±sssðÊ3°ÐXJ ŸH¼ ( (öš(TÔmúòÈ#8r…Aài}@KÚí¶QJig: Úu7hc€žÚ~Ë0üSj0ßç/r!ª~fgYp*ƒ J½^§§¨u„‚*ß(ÜŸ“p§îCp¹²a´n¬µ÷SŽ3° ò9_ÿÖ»UºÄ†Y¦L] 7lõÈ… ^}–-Ú`m½+¯UhŒ‰ ”[9ø½„òÞ{ïM9;À À›››ÒZ«]Þ]!pøì7k¹Êç)0Zc0ÆLµÛmÅîƒ $IÒ°ÖNa=¾ãá™â’¸ä>¡”28[î:rä[ ,ív{¦œâX ´Ðf§ÊÜÃp?JÞË [÷½”ÖZH)+++l0¡¾/ÞÆ#qrr2v$"]ÊãÏ . !û¤ÃJüÉ@>„f–@ýxèsÑÙ…îy¶èÆ-~m­µ}úé§yc0°dY†ECyš ;o*àÑZo›2„Ï£M=~¡OÑ}E§{Ñg(ª (seHL ºuëÖݼú ‡FhŒRm‡ô„vÞU¡÷”T–žêeÊ_æ:øCGüëF§a 4=ÁZ[[YY9Æ;ƒAàP Nß¡E:´í–xø \DR ~wŸ?¤¨{°èùþõCîGèo^F)ÅûŠAàp Ž%wÖ Xê„Æ“K)»¦.JÁÄÄ•¦ù®!„æ%XB)%”RÍWQç]À phÅMäÍ-x»œÖRsÚW.ªØeô`½„²õáÒt½—ßYèƒùÜÖ‘¦ä3 1IE`8Ü‚ãÇÀ±ì¸`Ÿ(òÿéí^ÜUƒ}EûÏ¥.ˆ?Ø´j¿#NÉqHk=Ç»ààw| X0]æi©·‘gÃ'ýµîú)DjDQ´-@3efEÛ‚{ôµEZ*ôqŒâׯkDQ)ï¶X0Õ'CA¸¸=-*fè”§î@‘„c[-¹Å92dªbªïò}òÿËHH‹,…~©Ðiªç¦b¹¶¶v’WŸA€ÅSÈÁ'®w +¶à‡9EÈ–À¡RtáÿO$rv€­¶.Ÿ^HÄYVå·[ „º#!÷ ¨T¹è1âîX°.³aµÖóô·à] phð€þñçþç‰ÖúˆB9SYïT¡C¨Ú@ †z]Ç/.ʲLJ)9EÈ p(%/µÖÚ#GŽÔ¬µ³»î:i­…4Mƒ 1(%§3} ÁéÁ¾ O£ý¾¥PÔn쬴h„s ¬›NœàoÁÛ‚Aàð €ÛðÍfS9róuF!\¿€!æ(k%¦ƒEüû«PûïcŒÉ•ñOqOÿñÿ1Çò‡üÞ™™«µÖ˜6s“zÀãæçÚ•ëA DüID¡©EH2ê*“£GNðî`8\§KKKà•W^¡'¾ÐZ[cŒ-Áa~¶àH1úXˆÄ$Ô?à_‡Î E:Š"N2n¹|ù2!„1£æ¹0*¥÷Ý€^.ÍàiïG¿qjZë)Þ ‡Æ =yò¤¢ÈXkq4¸UJu5Ü Ãùûe~=”ÚsV!‚r°É„ ¤”SÖÚ{yw0Ú@½^„5ÚJì”m¨¹ó0 û-Å¡†"¼OkM%¯wRZ—-k­RF°¾ ƒÀ~‰ cêZë£ØJ [„CF:âïä< œÖZ˜žžæô ƒÀá:ù©ž¤i@Ýá‚vOµ®ívß+zÅï.ð¸ZœÜÜÜz>ò&%ãzTš¦sú§:ÏÊÏ pè,‚€éKOBK}ö"“»×ÉN¯QFýUÕrð¨Êtc8Üßy§d­VF£lJ3 ƒÀx…ŠÀ£8,ÔW¶~}ú²IAô=Ê®I•Oý8Ž+‹_2L‡§¢+àz%Ô±cÇD‘ëÄ 0^PpdÒ¡àrêþÄá²ÉB!Eô§‡æ–µK)ó& ÿ5½b¨ôøLb'¡1FFQ¤…Bk=÷Ö[oÍ”ÅPXÆÆ”2w zÑ}ùVA¨¿¿ ?@è9> H٠Ѣ‘ä%q ƒþ>6i­•†Æäääý]„jqq‘‹‡Æ× BˆÅÅEì"´`ÊüýA &¡Ï§'ü¾G¡eQô<ê–! e_—Rê™™ŸuØ"ó ƒÀØ nòN§3¡µ®ùf¶¯d½†… ¨*ùú}Ï-îT)1#@8o½õVZKÖZÃVƒÀXºd“ç CI’BÔ½¢š`/>„¢ Ub»­ØÉÐLRƒÈàQkí1ÏàXƒÀx»]?ìVP /¥öÔâ!`W÷$‚Y’$ŠŽ^£À`À 0v–@ÜBÛ«ð§ì¾¸ UzŠÞ74t¤ k()¥™œœÔ¡ßˆ]±³ŠN¶"Óß¿o'M?E¼^“ˆ±°W, ŠžÒT¡/ZëšÖºQõ·bagØùg/E,¾ÛÏRHJ¦Héí(Š¢ÄwØ `û¸nö,Ë,º$`80èç@ Y þÜÁ²Àd@ "Éÿ¾sçNL~¶ XkcLŸaN}7yüZ!EY…^Ÿƒ–6‡Ü•¡‰wMY«ÕÞ ‡F<_WfYvLùBJ)¤”b?XÃôÔ÷ýù²b! E݈@b­õ}9þN`{ùâ¿X‹ãxÚZ›„fúí¤0g˜€ÐËåðkð>­u¯éF ßBŠJqµ`ffF+¥ q ¶òÚ) Ønb¡äEƒGýç„£¨?ÁÝg‹‡98È 0v1^[£×h6›†¹Æ ðö?ýÓ?‰ÍÍMåÞञ‘¹Eœ€UâU®)¥„8ŽóLƒÖ'¹‡åܧ>õ©˜Ä¤{fb_xøá‡A)%°¤Ö#ý ÀÁ"® V¡çc„1&~ùå—éƒì0Ž˜ÀÉ“'mÇšÎ@Å¢¨o%…b÷SHTµºP)eï¹çžmÍU, c/ËËËQ«Õš0ÆDrßžèZë¾®WÁ¢9vãÆ:ïCá P‹àôéÓ±Rê.­uRŽ»Fšž'è~7ÿË@Þ—¦éüää¤êe9±0Œg€7nܸ!­µ Tú2Á}dým/ÍH­:iI¡777UYü„…A`,bNÙóÔ×ææ¦³“μa+yQ±GŠZ*Ô¥¡JÇqWÌC)%`Û „f³ÉûnIÄ?Á@Ý päÈ#¥´´I§_EÛk·`‡ŸQÏ€HÓt2˲˜*ÿÒÒ’å![c)½Xt© ½—¾þ0Þ¿d`‰0Æðcw`ii)×®¹¹9 …AT9B„ûÉØ ÛqÀU8˜T!è¬F±s€Âllloy>žËC¶]A½FJ9i­å] pè¬!„Š¢hÊW’²Qßc¹¹¤l$I2ˆ°0ŒŸâSKàæÍ›öÒ£âÇqlCý÷>£Ï~²ªôøíÄXè¸"ˆ ,'±t @½^—ÖÚÜ%0Æ@–eÂœÝÆn=¿kÏ;eƒÏ÷{þ1&AIACµ t9VÒ–g)å¶±çø<Ú¦E½¦”&[ c©ü¤5Ö¬¯¯KºÙ‰ÂR"Îà„aeÇÇ‹~(_ Udz¢û]>¯nâ `C߯‡ Bžg €M´ÛícgÏžUÞïÅ@À 0ÖÖLNNÇ'Хؾ¢•ÍðºŠi^åq 0eÖHˆPÿ…¨ÆÉwäÚSRÊcùÈG¤‚  ã§ÿ^| ’bÒ“–>ÇSà ®Ao®÷ƒµÐÏk{}?)e6??¿N/A‹ªXÆBèt…… 011Ñ… TAýÓ–šèþ©J@ˆ°ÂçÝÑc¡çÑt'4)%^(ÚÜÜœzì±Çº,%2Œ­,//­µ”Rªrù>¹ï&ø>|v¢¸EÖIU‚¨èô$¿Z¢ÖÚ™Sÿþïÿ^£€É½ûK¸w`@qê t:†Rªá˰Š0¤ˆ4ÈâûêK¹í§ŠŒ÷ƒÿz¿‚f¬µ011ÑùÙŸýYƒ¿6[ñÎaK`¬Ü ÕjÍÀQ*‰zi]€_RL£îTi=û¤&eŒB¡`&ýL¡x†o1´Ûíä7Þà 0þ@@-¥Tר-_Ù÷éwè9Ì´—â?SßùÎwj¾åÄ 0–²¸¸Xd>ãB;è“}¸CÁûPÙ•RÉììlÐzba8,1ƒ¾îßkk`·qLàëµÖ°ººrXÆJуLºm¯‡jÈÉ^ÉXÉÉ“'cÞ% ‡B–––,@š¦~Nûîô÷¼*#rÁè2C¯EÑÌüüü„s—» ciø÷%I¢@ù<£ÞûecÉ‹Lÿ2ëÅÏÐúRŠ,ðÜûL]»vmÊ$oñzªa|zzzÞ3³_¼…:±²±¨ü8T»à_’°~ ˲,Žã"Ž 0 K ÕjM(¥¢½4:Ý«X ½Æ¥Óºÿ9ÊÆÙ( ƒÀxÈÂÂvÆâ kØwÙa #-“(ŠÀZ[{×»Þ•ÿNœ"d+9wîœvÊ ®_¿Ž#Éå~íFûy­”R¤i ÖÚìùçŸ7ËËËŠƒ c/8š«m×^Ū¼¿„¤!×Àc…ÇñÔW¾ò•àìÙ³l 0Œ]L@"!qñâEá …lÉ Ù—Û õìä3„^ãæ'=räÈ,§ÆR(Û0Þvi2[åô,;M«¦ñBJ^Fþ‰ŒÁ4Õ¢:§ìÇ¡T¡ßIè)¥ÕZƒRªvüøqîܧ”ãCV­õ„”2)š ä3Så$Ãp¨Oï‹¢(w]ʬ„ª<´=9Ë2 Ê›7o j5ñ6aK`leffF)¥f\ê°’òì„࣊òÍ †Û„iš½qãÆ+?ƒÀ¡×^{ ÖZƒÂõí¼ƒöýñýq¶ahÎAÈ UÕf"21Y$I2óŽw¼cŠÖðNaÛØÀÌÌŒBXô««Ž +kÝÝ  8PêIuV•Œ¤ß„«W¯ò&a8rûöma­µn¬˜ìGQü@Ýn¬ç*‘«*{è¾"ËÁfº1gSBˆ„ÄØ`/¡Ä"îÔZkÐZ[?ðçûéUâ¡×—éPÕ:€kR4 u'd©.J©£Bˆãøû,..r¦€A`,q@ÐNö•³( ß뤦 é…†FœÌeîG¨UÒ‹‹0”öLÓ´¡µÎg 5; ƒÀ¸Å„µÖÎÌÌØ(аP@”™ãþŒÂÝXÈûiÒQÀª0qk2•˜A€A`ü\0BõÎw¾³ÇññªŠRäwØ åY®NbÖZ;Õl6%s 2Œ«`œ¯kFlŒ9R¥?µë§qîQ´±±1Ûl6yá>®Ü=`Ù°´Öš¿üË¿„Z­VÙ„·CÑ¿æƒâرc)‚þV¼{ØwÀ™·V!”RÊcªDÒǡ՘¦ È÷¢½¼@eK€A`|ebb„‚6èTU¤Y&…×õ‘E±‰,Ë‚§»ï¾P £}¡Ywîܹû‹_übÂ;„A`¬—0J)㊅vâê$Õ„ üb¡PñMU"èù$¤$U:óÁ~ EÆ3&àHF-Àµkײ^C>†iÊã©\VtDgøu>€•Õ„ê|KÀJ)}åÊHÊ 0žÒl6ó-¥TJ©ºoRï߯ü M)Æ¿±è‰¶C#¸ùD8‘8Š":™X Xk'Ò4­c…wÍþÎì^ÁÐ ÖZ;11ÑHÓôX¿%¶CAx¢È!k¡,nPÕ½ÀŽA?@Hç¸÷»ëäÉ“ Þ1 c`³,‹´ÖSûá‘–^PJm øQe÷ç VµØÑ2 ïåÇÜc›7or`Ýñ 8€8Žm U¶¯\‚P„?Ô@•¼,þ¢E£÷[k!I’Ta8&À 0ÎbVVV„”Òô2£GNùmä(z=µ«º2´6€Æ z"Ž>ðÀyL€ã ãfäÒh4DÇz?”S=+Š P ¨2¡¨¨ö!TŸ€¯‘RBš¦G¯\¹2#„à=Ç11 líte°ÖZiŒ‘ûÁ(„~­ˆ\‡KN"Òn·þNl °%0nÖ@~{ff&urcùývò½Œ1ÿ¿½w‰‘,¹ÊÇωˆ›™õî÷ô¼Œÿ¶±Ák6HÈ’…,üv=bƒ`…eX ØUÕ’ÞаBHFr¯‘…¼`äÈFè±,ƒ=hÆ3ž™ž~UWeÞˆó_tœô©èˆ{o¾3kΑZ]•yïÍ›·â|qžßcLõ‹¿ø‹<­IׂÀÅrŽŽŽÆ;[¡€í®%Û“œfŒAk-„~úÓŸîÇkió‚À…sƱïý\1Ú°ï2‹Âg/)„½ÝÝ]TW@AàBФËzôè‘AÄd¬ë.?âËÚ€¦kó€Vk­¦.¦; ‡Bðqñã*:§à¥lEnøI:_ TAÈ¥Âéç%%ÉÜ/`F£Ñ?3­P¸PÌÚÙÙAÎÀ’ûæ›f”tNÆ.º¤s“– '%ÄûðÁƒ7oß¾mÕP¸Ð–À•+WÊ1ÂIwîEÇ šL÷RÜ üƒƒ1oÀ¹öbï½CDk'L!(½˜‚ÀE´à“Ÿü¤±Öö™D–œX¸´4œÃnF#@DwzzzýöíÛVW‚ÀE³ñÞ½{B°¼K®zÛõóÛ²%Z²Üùq™ëõz× ¶]«(\( "zøð!€gw`S`³#M­"ÂH2bˆÈܺuËëÊQ¸2 "Ò:Œ%_”›Ð‘G`l)ˆT!œÙW^yEׂÀ…Š`ô}agg‡BfUÀÑþ4j?Oƒd€Ëñcž}öYeR¸p.ÓæÖ[…+ÐÖ¤4OW¡ÃõÏÕŒF#Œ?o?÷Üsºh.VL€î÷ûè½ß‰;­à^Æy}9$7[°ÔД4R:.V$ß‹çÙ†ùx ï}ï{ºp.žÜ¾}ÛnooWƘ›qÁ¯Ü˜•L4·û—ž¦f?¡÷ÞÀ“)‰IEöùçŸïëŠQ¸pòòË/‡º® ì… „°‘ÁYÜ‚\ 5uŠ÷(ÆK¸ÃCû?þñ/ëŠQ¸nÁÇ!¶ÎÎÄ´ ‹¡Ôm8O@‘MTÖÚ‰úÞ{å±P¸8"X…ñÚµkÄAB®X…Ÿäu©ì9â‘ñh:ÓP>ž$;žyæ@¢ p±,þ¿®kæ l¯ZùY9e+1¿Þe~FjŒ9w$$}¦®kCDu]ïéÊQ¸P–Ï¸àœ›H M£ÎºÆ$`äF›å€CRŽGP"Ú;99¹®+GAà¢YàáÇ€÷»*™TÊ.€Pªéïjú·Ñ‡Éb¹«óq<ÈDNJ>½&=™ÉbéììL¨r (\988@D¼ÊVÀº¬ïEÑŒOp]Œ®Yk¡×ëi+±‚ÀÅ”Tp#¦×FÑç FT ‚÷œsO†’™Ñhtm0\ÓÕ¢ p‘\q·à|`½÷½øzqîÀ4.À,@0¯ùƒSt’ÑâwÝFÄ~vXU·@AàBÈh4BcLh£ãžÇ|À’²çŠyæ4]éÌÓ¸‚ cLíœ;k8OÁ@A`#NOO [ÖZbªí¥ÝDÂ"<þ#gú¦€.¼‚|\|é× 7Vœœìè’Q¸PrxxŸüä'½µ£2’*Ën›ÆOk¤@ÖÌbi4q–èÊ™C€ŸC´ˆˆzDtаã«%  °¡¦"‡ÃP×5É#ÇaXú~ÖÚKª—{ïCÁüã÷9Pw@A`#cŸþô§ È{Œ1^úÃ9Ej›ëWr&qrç•â]¬iÚ§Ì4‘f ’ïaBýþð‡U& V€‚ÀæÆ^}õU¬ëÚ„œµ– ‰rO¬›×ÐÒà”¿©µX˜øYð(Ä 0‘oì“tÇõ^xá’Òh(Ï€‚ÀæÊßÿýßc¿ßð3J-ê²³5×r»l“©ß´ûË×'ékHÓ‚‚0´ÕÒnF¬ð1í¹³»»[åbPØX¯àË_þr/Lö¹<ÛMv‘Ù…`« „àâtâ‘1&$ß“Ô%PØH!":<<„[·nsn+>SZåø¬@3oÀIžÁØEªëú€ˆvøùÉ&,Ðb¡¥‹>ÎjÄÅ{õêUwéÒ¥›`Øäž„]h€`‘–8—ÇþʃöJ ª«J-M´Âç>÷9 !\2Æ`¤ÖF}.Oš©bPŸ Qo{{Uù.Œ;€ˆæK_ú’Y@DâœÀÒ™úV~øY ”ÝÜÚÚÊ¥O•nLA`3%v…E›Õ‹2íÛŽO˜ƒ;¿—ûD¬?~¼ºTj(l¬C4wÍ4C= é½t½¿4XØ,‚Aèœ; æ¢Ðwë½ä_- ܹs™-+.úµÛÑJ½énž‚D®> =F¶<Ë‚"ÑNMòù8ç0U|I7¦¢ °I>3¼öÚk°½½]#"Ó‹­Åà‘ÒîÞÔ\ºžì=H™‹rœ ›:VUUéêQ¸(VܹsÇ„v#·>ßZ«]MN’ ÜÕŸ/‰œI #"¨ëBབྷ纳³³kôGÔWw@AàBXGGGæý÷ßïžž~Ä{o1Äá#¸ uîç”=5ÝånÞD6ÒFÆîü_އ{ý~ß•@UEA`ãä‹_ü∈öy>é¢Mûi¯•ûWjJA ur} ÞûsñDçÜ9ªµ8ÁÈïììŒÛ‰ÕXhÅàÜØçÿöoÿ–’ˆ<Í"È8“âç”™-nna–žÏÇËï*Ùˆ¥›ò"ÆÏ7ÖÚK÷ïß߀SiU©% –ÀÆÊ+¯¼â¼÷$Íîy˜ñìoÏsHI 2]D’ž–²’ƒ°#ˆ®=;;{îÆûºr.DLàðð~ã7~ƒ"“ïˆa·0Ùw®®AÛue6€-mo–Ê2¥¿‹˜„±ÖBäéCµ6SŽŽŽà7Þg¢ò›M_ÓrWO­‘Ò´£Ž± c­­$jL@A`£c~ðƒy"B YÒƒÓ&Y$äÒ€9W ô‘„eƒÃáðÙ|ä#»ÒÐÕ¤ °±îÀ—¿üeäA›\"»¨‘à« wúEš\kh­Ý»wïÞ@W‚À…‘Á`à¼÷ÏŠÈygk`Kxš‘ä“•vy­ɱȯcjcL‚©º +o¿ý6cÆ/+äÚ$×|Ó r5ý9¥-Õùw€ÒÀ”6âRYˆ”‰+lc¶tå(\(— ®ë•Ò𼽦ü»ü¹4Þ«]LtIôYj*}nz_éýæº 3ÀC(Øï§X@´mŒÙ-ÄXT6O¶¶¶,ø¸1g:Ëʼ’waæë¦{ép‘tPH®Þ 4Qh‹$W!ÓŠ…§–ÉX¥  î€‚ÀÆI l›hf›øZ@Ä ‰•,§$mÊ×Ä0É8òRD?W©Xú.9«&­%—ñÞ³…cäsDDŒÓœT–(Z6< 5?øÁÆŒ¹†ó`Æz唿$× Ø5†Ð¤èrGO«s•€éó´³0ÝØã{y{Þû.ÿëµ6.@àÿë¿þ«?1f4Ì&ñËKç¥Ý€9÷Cöä*üÒÏM«SÚ°I\•Ü=Xk¥µÒ€á:¡ö(l¬;€ˆtpppQy(„@MQÿÜ.[*È))œì+H¯•ÛÍ›>[*:S¥§–F[#gÁp0ЃÆdw „UUÙÔ³Ò˜€‚À¦öz½kÆ‹ˆ0PX¸øùä.Ù¶»J— 4’,7X*¼ü¼TyeWai°húž<^òÄ, …žPŒk­‡îÕW_52& –€‚ÀƺgggˆˆÄí³%Ÿ}’ [ J®Fê³7%ÓößÜù¥ã›î!÷Yi@,­®¬µWþå_þe‹}µ6Ý%‘,ƒ;if¡®:0ë´âyP£OÒŠ,A)Æ3œœœ(× ‚ÀfËÑÑ‘ADÜÞÞÆŒ&ðÆXµ‹ÚxSÃZK‘‘‰¼µ¶~ñÅåqVÝ“ããcè÷û ®k k:]·ÉE™ šèÈãû&ÖSð ¸ÂÞþþþ˜S€ŸŸŠ‚ÀƹDD?¶DdfeZÅ®ŸËÌ*ésÈÔTƘwïÞÕ˜€‚ÀæK\ÀÆc'Ùi Nká”2ñuB0ò9êjRØd‹à"êÅoî$]Ф䯢纻ŒìO’Æ”ìCÜ@ÄÏ%Î$Àªªø$Ív q—²µ–xBñ2ÌùÜqM} %æ¢6¾ÁY¬…¸ËSöB}éYéjRØh ?ã"ÜÛMБLVà©ûæ DìÇòaÆ -ZhÑ|•`\q7© EVrc•¬Zµ$â+ j làƒ4›ÿ( Xi\a4¹‚ûªü ›,u]cZ?¿)ÀÐE÷ø»MšÍYClxï÷ïÝ»·_r«T6J¼÷$yøK­¾æÞ´*ô4–?Ÿíímd^FqŒf 6.UU5öu×Å/)aÎ…‘tdÜR,Íw&5½§Ü¡]™<‡çzïa0¤    °q~4“Œ^ !l åÃ5¸·âNÞ…¥¸d”6ëôš~y¬½téR_>G‘>TQØ“™ƒÁ.Ù´nVm‰²LöÿOµ€2¥8@f¤ÙÞ½{÷n"¢ÑÀ ‚ÀÆ[Î9Bă^f²Ïuñý»Ò‡5½?áwFcŒ9<<?K (l¬ ‡C€˜ëŽ1!Ð&@ÉÄŸ¶ÿ  xð¿ÝÝ]Ϙˆt5)l²k€‘¶k­üÚiœÎSS*³H.²ýðáÃg~÷ww\:¬«HA`ccUUy""k-„ÐCëZ'Ð4=xV—¢«•­ýèGµ“PA`ócÞ{‘I—y»*†,¯-)™vz®é§‰?°MQÛƒš§¤)À¶$ÙUGDôŸùÌgdß…r (l¦%W!–ÇG+ “i+»iGMyûSÓz yÇÒûf€™‘* 9†Lפ‚ÀfŠ÷þgB•›æ©Œ³¶óvÝéçy}iÁ$€FƇwîÜé @Õ¸À’E»ç§LžD·¹ç± Ó©ÂóiI,Ã:ȹ.ÖZ{zzŠPK`ã%Dg׬µaŠÚ¦˜“¼_*àY¤ÛÀŸg­—R§×tÎÑ3Ï<#_T PØ8 €9Œì´‹‹s`S®Ü1é” I@eÒ.ÆÜ=qïÀ´`2M¾Tw Rw@A`£q€ÍÚÈ©²­¸‹Ÿ+Ý•Á´¶y] }Ri2ÑEœc&k…-¦‹°¿¿¿¿¥ËHA`c…w¿ß£Ñ¬µäœãT!IŸ;×y×4ʋϳÖ>ulú³l JAC¦ærÖ‡¬ç/M"–#ÄxÒ’¼¾,yï $9 ‹Ïß~ûíJã ˆSˆ°®k;á¦C–˜®¼iƒƒBÉZJÉ~{. )¨Éú(¹…XÅÏ5[[[Aë6Z~ý×ýR]×;Réºìò]Lꮦwš¬i9¤ñiµ”¦ ˹ØCÓÔdyOƘD¼&Z‰5&°dÑáäûßÿþ%cÌ–XÇãÖXc 6)A.ÿ®Á¹i™róJ3 J–@ZÉ(-˜W`k‡œZj l¤\»vÍp$]ê(Dç•ÿ—»»TÎT 3=þÙ{Ë÷šî•K¡ù\dLˆEp4yµÔØH9;;û¸D„³p 4ÕêO»»—Þëú³~—¦ûðÞo×u½««H-ï½ D¤µ• w5ï' Æ¥;ÉtÏ.†^¾'ƒ•%à’œ‚Ëã5vàªZ -ƒÁ‘¢ÉkxÜÄ2âTñR¥) Ó{’¸@×î?yŽLçµ}Vš ̃‘쬔D1ýiƒÁ˜™õèèÈ(¨;°qrïÞ=0Æ`\ØÌ/xá\Ä&¥Wçú"²'''&>/:::R¢Qµ6R*D4qG Þ{”VÀE—”D´¥Bƒ ©¶qïÖ­[ÚD¤ °¹rpppÙ{¿Â~ØŸGW‚Òcª~¿¿ýÎ;ï¨ò+lô¢ß#¢>"2¥ÁҎϪ¼M.Œ-t»Ð@4nðÞoñZ<::Ò5© °y✠Þ{WöÊLÚópŽ« 5ËsÅE9Å–ŸÅ@PâBÈYÎ9pίWUU휽ÿþû@ "QQØ(Du¥_¤}¥y)í—ì.,ùò9nƒ\ƒPÚ‰˜¾཯Œ1_ü⺒6VF£Ñv¡7cjXAÁP×>ÿ&w ¥Ï™ùi;q ÜÀ”¢ˆŠ¡ðÞ_ÙÞÞVv!Í•º®¯#âAT’)°eÀ<Ó’R‰ÛÜþ|Ù-È ßDß3o¿ý¶®EÍkí"VQqžL"²«Žt4 c-ÿSïåJsî€S³[k÷÷öö¶ãëZ9¨ °‘î:çÀºò tešWl 4À„•_ˆ¦ A)‰¨¼¦üÝy¾Œ5È@$s/ÑÁ{ï½·­+i5¢]„sï=ñ¢g°Ö2SŽ> ‚«ÀÖ_½zµf¼­´TK`ÓäììLîêÖãõ©Ld­T=â¡€‚ÀæI¿ß·ìÎF“ÙLÚ_ÿan¸"¢áp¸« D +!„½‚“ =L0¢O§Ñ5àéÍÖ{o•mXA`ce0ì€ëÊå·î¾ú2],:çøwNÍï}_(qv@vv™ý×à3?…/ýœ»FS=@i²P©ÔxR€Kûä½p…÷Þöz½>€¦6TF£Ñ9 ®ëÖžé ¿t®_Ns ?¹n=yÍ´r/7{ ©‰(Uê”N¬4p$}-ù™8EBè9çžED%UØLá —,ˆ™dV_n·í2V¼´³§lÃM>¦ÿýßÿxï÷£k@Â2 6f¹3¦ 69?¾¤ô9 é:ÂlÒ¹„ég¦@9ÅH‚[ØøÇšƒÆ6Jˆˆ¾óïìÀn‰iG¸]|¬LéÏ©‹ }Þkãk%¢‘.×mrarAj c,"î]¿~Ý©;  °q✠ÖZˆ$£cNý”r<]øMc¾'5ûsïw#žr¤­À%  „,I†›€«!Z7?ò‘l«%  °qòÎ;ïó ²âs`6da×`ä$€4ÙÇ#Ôu½ýúë¯÷ÔPØ8¹qãI*U—ôà*•¾mÃmªll:·ë÷æ .â9Žº¢6N~ô£™ Hòü»«-zCæ²áh5AUU{Î9%UØ<¹téR€:RhQdÖÙøñä“ôL "Ì6l­§÷þJUUJ;® °yòùϾ€­hÒ®ŒixQnÁ"ãt²§!„u]ë‚RØsŒxŽd­%qwS(ƒ§‰Ó›C,·&cL¯×ëi`PA`³¤×ëvB‘Ý•Vs`<99yææÍ› K}à³[ãI:Î9„X1HDØF×½n~ú4~ý ÷3d"Æ9çfooOפ‚ÀfIå RøÙPV_¿4¾»i6aj]äâ]ºÛ؃r#ÉsàÐöKÖ r4ÆPO¾÷èÑ£«ºª6Jªªòç‰3bL‰QçÜÿ¹³´33 È`]ÓÎÞÕÔïbö§V7É&¢.Ä¥|Ïñùøÿ°ÞûþÇ÷uU)¬¤Q>DÄ££##Þcå$xé†G‹‰ÛLøœ .Ë -eÖžR0nÅ—ÇzïŸÚé™K‘”¿(‘ŒÊã8“B À&"øÜó×U¨ °RÉÆ:>>æX€ !„Ñh4v"k.–&ê4íô¹¿‹’æ‚‘MãÆ»Ô”¸R+"«H/3…½÷†Yšã{½áp¨HÖØ" (Ñœß÷Þ÷YW’Ýçð¹S½×èzþ¢6àx]bå÷Þ³³gŒ¹ž³¾TÖd­k”k­‰é.4Æ„˜ ßkgKbZ€ÉMXîòy‚•™Ë¬™WÀÑ }Ö* k(ýîœ ±qˆ+æÐ{ëÈ8¼(0èr^.NÀx*bõ£GL׿ƒŠ‚ÀZÄ ¼÷(vÄ`­•q\–‰½a úT0VVÛÛÛZ6¬ °¾ ŸîD±ÜœsœêD4«ð³›Ìõu´.bŒ…8£Ÿ]5/¥™] kë "ÅVb1³å}óe¹¹¢¡©«~ÎTïZi 2-bÊ9åú)DíE‹€RVQX‡ÝKFþωȕ»X,D9ZözîÚÔ4¨¤ø¥ëæ†fž1(Ü%´ÖúE+@AA`Õ–eÜgŒÄÅ<hË~‚uð¿»ÿÞäB4)uÓç办¢;¨²+µ÷­o}«/ŽQw@A`½âRnß¾=@ÄˈذÖRl)6ÒXé8smÍE%×¢mi[OA¦"¹É*Ò²µvëþáv%Ø–b2* +‹ 𢬪ÊÑ6`l$"õ^¥¤~º|-UÊ.nƒsî)H;Lÿ§â"Ì!ÀeÎñ¹"ÂÞÞ^HÁ—‹´t*¬•œœœ`T,‰F-"úu;ÀÊÆRXq¹!)­mèÒóÐ…G1äû!y\¡gŒÑÙ ›aüò/ÿr°Ö"ç/bãœCk-®èÞM}NÇ•jüs£Æ›\‰I)Ó’ÏaW`ÌÇ`­½ü‰O|âjP+@A`åJ/ÍQþÿÇ?þñx ¦÷žóÞã !¬ t8Gñ%xR¢\p°-FÀ Á×ë i'alAFù|ãÏfÓ@[ý…Š‚À¢+«ÌÿöoÿÜË–@Ü9/L «Ë\â7l²¸ë2=?„`OOO ?w¼ºÖÇ `¹~ý:Sd0a¦O~W)¸&ÑÝàæ¡­Šý{÷î¤Ïc|²Qw¡­y]‹ãÖÚµö ?ç”ÉIEA`Õ‹?ÈTÕãÇǘø¶‘>kåH' Mz~i,™,dj+ù•×jQä,‘HZrÌ"«¹`ˆÛz½Þ ± »ª(¬ð7oÞ¤H*:.~‰ÿŽ!n’?Ͷ©î ãb¡0õ™aˆˆÈ§à{||¬½ M>½kÎ9ælÜõVÇX(päzš&•èÏSFã8¡¸—º BµÖAÒèììŒw3fÆaª1ž¯Gkü]æâ÷çz Ú¨ÎK`ßw!„ë·oß¶%ðUQX¹ò³Ü½{w‹ÙqEJDSÌRL‚.•zR1›&5ÅJÝ‚2v‘ö¤Ÿ'›”J“’z½ž¹~ýzîÙ©;  °^Òï÷{DÔK;—é´µs—` šî7ÝåK}M݇éýtÆŠˆ´··—cRk@A`=¬^”7w°Ô;FÜSÈ™Í9k¢‹Ÿ?Kܬí8àÉ’tf{J™ ÈY=!„Ý­­­mvPˆ®BuV`ËàÖ­[f4ц}‡©€¢‹Ñõº\#Ðt¼11ÌÖ4&‰–˜ÆÔX ¢‘·nÝ3 oˆKÓ)–ÛúR—!G&%-±.¥6sVünˆˆŽV¯Küí[·hê4Ÿ—+ZjšGØ%Ø4Ѹ«ÕÐ%é ‡Ã}a©ò+¬|E" ²|É97JÓV“DáWá4É´BMñ„IA,Æ ì5¹d* «""üàƒvÖy2NÚ@Ô¥Û/uDÄþ\dÓ Â\½C®ª2g5ðTgkmÈY`* +‹ 0pšð¿ÿû¿Ê–OÑ IDAT«Á`p¶Öiƒ’JŸË׳tI~MÃLÓ ¤,¡Nã!‹ˆ»`ãùlézUXÝîŸ }ÿûß·ƒÁ`/„PårÝë`¤£È›Üƒ´(µ"¢r¶îöRÁåüÁô˜Ô’Ÿe­­NOO?òÇüÇ©K¦«QA`¥–@*œ"\ÇôµlQžÄ‚Ê;/Üy) $ÁH‹ˆîcûJLW¢‚ÀÚIœD ¡†¥Ä)N4.Y€ô xï‹™" ÖÚúÊ•+Ac ëýð.Ȩ±R]ÿ‚¬ª.V…€«£Ñh›O‹®˜®W•U€Â"-Âë½ÂÍÁ`°ÃîØíÛ·­ )¬•|ðÁBÀuvUg¹7YÐÓTX4oàÏ4Ƙ{÷îñ`åTXK°ÖÚ-®q_—õ™6í4q´EÛp MƒW|ÿ"°„Œsn<òÖ­[^ˆV½«ž#µøØÇ>f‡Ãá³°µN÷BÈfÚ±TM(N;SrÑt~¢üŒ4~Òw@"ºQ×õŽø<õç"b/4ù…$ÿÈU²"§¬Æé±m5 ™ÏÜ%¢>¿¤+NA`Ì짺…bG}ˆžAvGO•»‰¥ëh2cL—º¨(¬Ö¸ÿ>À“)Ä´ÉJÝD–û½äVLËjœû\¦Vhv@A`¥V@úÚþþ>/Øåî”#m›&Ë!c]"n÷z½­xs:*(¬,sM.+.ÖÔûÐÔ Ô–}HM䬱cÑ ‡Ãž|öZ,´Qz±Ž®/Fþùää1Ø ¦1¡Óߤ%ºœ!HÏÄ?O_“Á½ôþsÄ¢ã&3ϰí3G£ ‡C”D¦{WQK`%VÀ­[· ÿüÓŸþ´ç½¿œsº0ë¤ Õ¥úýì5v–üúÒˆñÒÝÕ !@]×Y ãÔa®¶ à2 ƒÁUÞ££#£î€‚ÀÊåöíÛãà 1ÆZkw¦aÎM jY××>‡¦‚ YÜ–ôºmÃR±ODWÿâ/þbð™Ï|F3 ëáðu]S:$tV?¼ 8ºÎ0Ì™ßӀȼã)ÕzËwý~ßWU^~ùå C + ðäÿ·¶¶²QïE’Š”fäÌò6c \¬¶ïjB½ÿüÏÿä²lC¦ °úu+áh4B}î“î¼¥a%¹á¢è“~~Ûÿk ¨žKa ^ü¥_ú¥¾_µk-æ\¦9ƒ9“_ÒmɉÀ²:/mžxK]›zæ¥È]Î/Å(øDìß¼yÓˆï«@  °j ög‹ÐØ_M•²mG."žÊ!;å?™s!€sîhÈsRÅ„¥m\z ¹²á)R“Á{?zÿý÷ÕPX?‹àù矷Dds ¸Í'—$›i@©A‡]‚\í>^WF y»Ö]8 S+¥CìÃ"âÁÙÙYOÆftù)¬RΕ®¾óÎ;×C{Ë4§'%ÍM^”oߥHÖG4]ˆÈƒˆx}8ÖcûOaaÏ{¿µ®‘÷¶Ú‚.£Æ¦­øL2¿ÀZ;.ËÎßÅtO«aá¤ñ‰Œ«@OhÌÏÎÎ<ó8¨;  °R9>>·²~ùË_Æï½÷›¶.ÛêþÛšÚŠŒÒLÀS N4E•¨É´¬µ•snÙ›ÔPX—àÖ­[ã5¿*¿~a¿¼”«ïÂÔµ¦€Íý4XŠ;0# qÎ]ûÖ·¾¥Em ëá3ë-žÙ4Í·Îæ¿|=ס8 Ìêt°T(Zf8VÿüÏÿ¬n€‚Àê­þà·~ë·0„¬µ4M}ü2Lþyô ´Í)ì)[{Ð9ýèGu*¬ €—^z‰z½^í½_ûÑäM#ÁJþþ¬_G*| Lì"\vú!„ËW¯^Õuª °zw@F¦_}õUpÎí†Ü&Ðy•¸ yïi qú™½^ïéÅø37…ÑÂÀÁ[o½UI·LEA`e./Âÿøÿ°?¾a­Ýß„u)gðÎÛFù=¯¸DÓ˜snNï3„€Æ ! sŽ^|ñEÕZøÕ_ýUBľ÷~c¢Ö9ÿ~žEN%·"Mû±¢ËQæ|Òj !`¼÷½»wïZ鎩(¬\>ó™ÏÐÖÖÖp³ÓÆ a$Ê}¼÷ã©EbapÎyk-Xk·y:±º +uä"¼sçÆÅLMJ—kä™Õ/r! –,ÖIw᦮¿œ/_—ÍHüZ. È-ÍUU=Õ¢,ú Ð{oâuÜ`00ê(¬"Àüc쪘9˜Ò-éìŸûC' È9`Êðr×(ÍLÁÅZûT€^‚Né^™pôôôÕPX av¡¯|å+¨i×\é5©Ä›„߯­®?‚& ’$$],&ñ;ca4]:99ÙÓÕ§ °Ra7 ©]·mw]•m™q¥y—Â"éj䬋Üõ%寙—Ä{oˆÈ "8çvONN®hL@A`­bßúÖ·Ìh4Ú‡2/"0£ê­€¦crŠ> AiÚ¢œ¡ø:yïÁCûûûaÕXwîÜqˆ¸=MÛmnxÈ‚îwf†àYA«ÍÒÏ/qCÈâ1îììL-õ°x'úÔ§>EUUM•bKÏY”úø»Ì%œäžf±„Ò‚¥4;ƒW{½Þå´jSEA`¥–À[o½£Ñ¨8äƒõÞ?å §DÉÜ¥…×{ÿT)p *¹Ñf9«%åöKï³IQ»F. -!kí¹Œ„|6D„ñØêäädûððPéÅÖGž}öY¹˜CI187ßDàÑTV+«êrÇd¨º³¯å,®»û¼7ß r‰Ì4Î^ôÎ9M *¬‡;ÀÁéé©©ªŠóà&—çÎí‚“šÙ "¹až9¶^.¼qÎ5þØ«‹â" ¢]Ø>::Ò쀂Àz¸wîÜápˆ9¶Y,S"Øìô‡9ö.5þMúÁ-»ë<(¥á3ƒÁ%fuRQX¹@DtõêU3û“ µ¥å®Þ…È#ç†È†4Ö0I=À*!„ÀA@BD¨ëÚÊ¿ƒŠ‚ÀÊåæÍ›ÛƘI*ñáƒ/‚dM,¯±5µ*¿‚ÀÚ¹{{{ƒÁ`·->)›íi~=W¸HJŸûl|yï+"Ú£1•*~MN€?ùÉO­SA3pÎ oZZø9ÐÈUÙ¥nCŽÁ'R NM¼2(]¾Ü4¡¦† ~¿T(•q[ˆ+ÑÔu}õþýûV-‚ňR9w p´:|ûÛßöo¿ý¶‰Á;ìHšÙ©PgÖ]=¬Ì]³É•Èu²K àßÓk–j#bðS÷›4æ æF ðº ÕX‹àñãÇ4Œˆu«"€Èn¾ÒŽ+ì‰M<ç®ÑæÚÈB£R·anH‰M_U•{á…t*¬‡E€ˆ\Òâ¢Å5­Fk UÆÔ¬—îA)M™s…J×I™˜dÅ L‡ZkÙÿ¡øÚõk×®më TX + *ñnµ,ežÕ2HãRAÓøEJ Æ¥ÊéµKFPÉÕH¿GZÊ,HP­<¶®ë½áp¨®«‚ÀʹN ®ë>"xó×bç—>z)P™› ÜÅšJ[­Ô‚sJYIÛqþ€s.<óÌ3PX½7À?œœœìÀ~“¼Nñ6enJ7v 26}†,}Î5#¥´g">ÀZP×õÎÞÞžZ «ÈVâK—. êºÞMe,´š®+· L–(¾Ó‰<”ϵ֞S`>.U`¶*d ?7Ì´BZ 13`ø¬µ7~ò“ŸìhÀbDÑu—@”çÆ׋‚3q)vÇ ˆ8(ˆ£ÑÈ>xðÀh€ZkÆ¿ ÊßÖX´,wd–û3ƨ  °.ÿ<±ÍϾà 8‘›’]xÉÔ¡¦ÒhçÜÞþþþŽ®Bµ°âžˆ0—:û>—©-…t6"{\ÖZ qÙ{¿¥+PA`¬Œ»˜!"»IVÀ¤½ «Dqïa4iŠPA`õgNOODÔ¯ª ˜wÝwê s]"—€1†x®D•ÇøÿÓÓÓËDt­®ëµV¬´rMîÜàÔÏ—¯3aj*iñOÚ](Sˆm$)œ&”mĈHu]Ãh4ê_»víY]‰ ë€^¯‡ÆŒyq3‰2®Ú%H­‚&Ö¡&zô¦Á!¬üië±¼‡Üõå5ã?ãœÃªªèÞ½{­PX+ (íh9EZ§µ[º— ÚQ¸»IM»¸#9‹#-"âÚk-@ÍÑZ´N@A`m$W=·Žq€œ’ç”3W.Ž­¼Ùk7‘¨6ÍcHãéÄbkm@Ä:6ù‚3Æ<£ëUA`mb‰R­íîTL"Íðº®Óô\ÑIsùu]OMs–©$áòcDÄ‚!¢=ó;¿ó;š&TXqÎsØ!„µ÷S»pævî0faA’ŠÞÔ–Ìq"²Î9ˆäœóëÔ­©  ± "ÃÊße&À –ÇÔçåèÈS—  0H%m‹¤?7ñ –&%ɸÀh4B"ÂÈß`þàþ@‘@A`µnƒA]×»D´•‹´çøùJ»XjªçRwé.ã•SHÞqÓ¹‚¥hn~aJbš#%i£K¿»d*V1 ¢‰Ï¢ˆ/|ÿûß׆7õƒ^¯×–¥16’ŽIMø Ìêl€å Îx$"¨ªŠ?~üüç?ÿy]¯ ëågcÆýòM“…»N*ùÑ]i¼.B-*¾õÞ;k­çïÖï÷ÏÞyçM*¬Þ 8==E c0õ}ÙDîR#Ð4Ò¢žôi}lr-ö8PB&-cz¯¿þz¥+qþ¢>V·Ý “ô É•Ŧ䓚ð9¥ÏQv7±Oûyë"É ‚1¹ˆ÷þź®{ºÕX%˜t§/)]×B©äi . 4„µv\¹×uŠñ:ºŒ§Î9²ÖŽ7„ƒÁ ÷èÑ#]ˆ «sÌÑÑ‘±ÖÖqáRZÊ:)1gêß·Õò§1‰ôœ4C1ƒ2'&5Å?&q{J‡‘©ëš"ƒ† ®kpÎY]ê¬ÒGGGæoþæozƒÁ »s—ÌÛÒ0¸¸[•¥í3ø=ïý˜á774¤)N‘› Ø”ä÷ÓD.ÙVp$_]‹È¯[ki4 ^|ñEuÔX%€QîܹãœsWŮظť¦~ªØ]2“ƺîê]ï³äÆ”@¥)(Úñû""RQBÄ^UU×t5*¬Ô ˆ“r+kíe¹[M&s9fI-þßZ;¦oRZnÒÕb)]'†’U(ÆM}rr¢ÙÕË /¼`À¶-öiüî4Í(xphjn"))v—ïžPM‡Ê{Œî &q€®@•zÿú¯ÿŠUU …§0‘vNÓ„³¨”_)ƒQ‰¦ØAú{Ût¢¦Vç8ì5DÄscžÓe¨ °Ò¸ÀÛo¿M².¿kÕ_WÅŸ×|Ãi#€iA­íÙ”\‰øýMŒµŒ©ÝsBØÕ•¨ °Ú "¾ÿþûcJ±R`°ÉßÍPhewÒÜ{›~´ÒÝ>W{0iUd(`¥ƒ Æ<‡µ®B•À¯ýÚ¯QÌðë4­éÏJÄDž9N¾~ßldúœsãþ‰´õ87´9þ•üœëº®êº¾Úô·QQX¨"‘µsýyFñ7y Ï›CQÎG×uÎ à]‰ +³Ž ñ‡?üá „p%*ÀØoÝ4éwX@µ\—BÈ®V´˜BAS„ ­ì¶ÛIEBÖ{°‰õù93|’Öç•îVhr½TÔX†5`‰ˆƒc†¼›nrÛî:ç‚Ä`DtƘ›ºV.§§§è½wÖZú°ìNKæ @ï='¿¢+PA`¥Ö)ÀÉÉÉFt²• |rQú\sOÚ±Xb Î}Ö<'*>ˆ˜@Û9š!PXüf°··"ó D2Ì„’ëÒÔä“SòÜñ² R*-—çæ”j"xökìwF÷ËJ¥gŽL¤ °¹u냀gf¡Øb¼;P[Ù®|­Ôœ+â!$©’—Š‹ž2¯âç°¥!>ùŸ°Xú÷w·#A™A@A`árûömF÷¬µ°)³ Ú²©{ï[K„K”ë]b MCJ…ÅaëºÞŽÇ" Ñ PW@A`)ÊÀ¼÷Þ{Ûu]_&éÆì@%k ¤°òµªª&šeØæËç:Åù]-î(Œà`Ÿ{î9/žýj§'` kYA`¡ÊÃE+´³³c\t‚ãî¸1î@WÅMIRKmÁMƒGRv¡š@ÌÌË ]¦;›Ûý›9Jó.÷<-Ïaz_2NBØ !0«¢ !S˜R´bpByÿý÷Ñ9gJ»è´Š™›Û·É'“q€ôýÒ(µR+p[ñTiÂqrÌxº“ø­µpzzj¥uÆÔo j ,\Žy±á@T[Åà$#Ãf‘I-”/€‰Is |Ó廥׉AÔl\‚Á'9‹ÀZkž4téªTK`i"w›ííí:„àCàœ·|žÁÜÎmê§¹ÕXW©Z‹VŒ‹Ô!â–pp€37S|^`ÁìAË!~ΑiÈ:çz45¨ °,¹uë–ðÞ«T§Ù±»’w¦ùôY¥ )ê¼-“¶()°d,(b%Ï¡7n¦Ö™Æ–.!„1/ Œ|§;\nñË({S£NWÀh’ä4R‰^œ•µÔ}ØÄ\×õ9ÅiÁEÜ›5Æ RëLEA`)òéOšƒ€‰ “BÔéNÉ6sàîˆÒLnªÁ—µmÔæ]•¯©yZ«&W€Ô4–Mü“Å@?«ÈeÕ-˜R40ØQŽŽŽÆ?ónžcã•?wišaN}ÞÕÓsågÉëç®Ý´ë§G©X§É‘~òžJŒr.H.PjʉµÖ €ã2 j ,V¤ÙùàÁ !ScÇñÙûÍmz&Úä{Ïr¹Ñe]Îï2έ î?ÈYN²jQ€‡Ã˯¼òJ•ÆT– ˆîÀvìs?¸’»ì2,Ó\Ëm:ÌDI›ùݹ%?¿iPiÛù2f’Çï}ãß H«(,Ã"¸lŒ9Ǧ#K‡»úè4&M¿•®›ûÌÒ Ò’Âç:ÓïVú=§ìéõš\ÙCQº_c ~êSŸJ¿€‚€‚ÀÂw]xR¯^UÕ%"²œ¿!`ª0¥ñÛ%åÍ)SWj¯œ¢7ùÿ³lš9·§ë,Fy?¹ï›ö&äžsîê¾ð…—•TDA`yVÀÑÑQˆ D¼ø)Ï•*»¬~KúZnáw¥éšÄrhÚ­KÊÏŒD]]\‡b©{1µ¦šˆH¼÷;ggg»”ua*,WŽŽŽ "†X0Ô¹û¯T4Ó¶Ë—€¥É X”{<ëœD§˜%fBý~ÿ àIgg´Ò48¨ °x+€ˆèµ×^í­-4ÆøH®‰¢gиK/ëˆhp÷î].2ˆh_~ùe«+UA`á1€‡¢s.p±>¥<߸vãÆÑ`â‘pûömµ¦-šÀ€ðÿþßÿ«ÀÎR‹¯2= ¢õÞÛÄP@VK`9vÇ{oDµšÊ%„'''”€³Š‚Àrä{ßûžEÄgKÜý*3íðOÅRwÀ³»···“`´‚Àr䥗^¢Â>À¸ –ÖU©rÊÔº ©Â\n?ÇVÜÔ^¦MÓ"$É×ÈïóÀ“$õ¸kŒ9—V¾Ae(üÞïýžóÞŒ1Ðëõ8ÝEë]8üÚu’ó&=¶ô~Z3‘›uàœÃº®ÏuF¾AÅÊÑÑ‘é÷ûÆ9Äü¼µ¬VK ˜ºZ“Zéîž«{è@m*>J€ˆ°×ëÀ¢—¯ÑÌÀ ¢ÙŽr||LßýîwG?üáíÙÙepÅàZš£mVAª°³p"¶ëÒGÑñ»˜^¯· ÀiAHª–ÀR]‚³³3lÁµq‹ i[ž´’¯!J¦SóS—`+"šÑhÄCIÇ)B *,Tx½ôÒKtvvœs>G9¾ÁO7ñ¤ Ÿ{?7$$w ÷ä,“t6aSÛ1‘µ¶æ¿ "µ–&·oß®úýþž÷cäšÖm*qW}H›—š6Òœ¥PêštΉr,L%«¢4µ˜ˆ°®ëý££#'ã5   w_xá€çC&åµFV˹ŸÓÞ|©hiçÞ$<i{0ÿÌi½Ü5’ ÃOW‰hIîyÝ8”^{í5u–#ÿøÿˆƒ©ˆàÉ0Œ]€“Œërn£P—ÉǹßÓóœs`Œýý}­€pûöíptt¤kyJÑìÀ”ŠÃq‚‹ÊÑ–å½+iŠtA¦‘´ˆèôô´Š#âÙ d£j ,Ûܾˆ.h[š¯t̬R&‘º®]UUWá~aàIêV3 K“çž{î)–MWø¤.¢˜CÛq z>Æs©®ë¾ŒÙèêTXмùæ›0ôA¬Ö ï=ñ0XíPX™K0+MÖETÒeYFD´Bè'…*=}ík_Ckíu€'}Ƙ€ˆA®?é&¤Ýui*ŒçÊ"kmÖoóË›³i`[CQS@z½\”_Î1lëè¾DÖÚ«UUcê(,cç!€ï|ç;.„0`K`4aš/oÚsQöTÉä ‚¦kw•R)n—ëµÑ¨Ï#.Ð4Ø´tMォªÊÊ¿Z K‘ŸÿùŸÇBÅÉÈ_J¯•vâÜnŸëÕŸd×ï¢TMõý¹%Ðj<æ!àêÄY6ëdÖ#E¢W@D£–€‚ÀRÜ€wß}—ÑKúí®Ã8ºäÑs>»¦ÞÒ1dm ’sä®\šfÔõ~&ÕÉ.ƒÊ{¿Åo©%  °4¹|ù2 "¥~{Ó+ÏM3.ýžî€“Ì9(™óK̬ëP€2M*±®ëmcÌžZ +c æÌß.;[©ƒ.×È“šß]wJdlªÔ:IÛ§Ž ÈS݃]›6k$váŠMT>¥ÉÝ»w¥ÉM“³rŠšÛ%»Ì4ìjJsöƒƒpÒØôÙ§QÎRœ€ã“0 µM0®ëÚ0Ä?‚º ‹.Hyã7Ð9‡ÜÒZê˜kS–œE0éHsVhV0Vxùy£ÑèÜ1é<Áœç2ik¯1¬µç®UjJÓ§]æÊTi”ŒŸ·=njÓ‚ÀÒ„sÑ=zÎ{?`eb@˜&@–³Jì:ë`éÎ3¦ÐåZ-õUaïý÷߯â±Ê1¨ °Xa>^¯wâô¡®&îT£–’0Õ»sÎö³ŸeŽA}`  ß ßï“0U1„@!„¹nÓ9Ž•sñ2OPÿÍ7ßÄôo¤¢ °°õ9-ϼ÷†w#Á6¬²‹ àIp@D7Ÿ{î¹-v4;  °ðõðî»ïVüBôÝqYkoÒÀáE‚hô{½žîþ Ë•ªªÀZdÑÏ2èÅÔÒ=÷,(„u]Ó|ê(,U=zDu]“¤»2ÆÌ¼=Ë8Ïà벦ӊ¼YÈO»pæzJ”c鵸‡ ”M¯ÛpŸŸÕîãÇ-ÀË/¿lÕPX´ J`¶Œ1–õE3ÑsEI³L%zj±ud.jûÌX§ppùòåÀ7¿ùM¯–€‚ÀRžÕÞÞÞ³ˆ¸ë½cŒ‡'Aªõâë:a¨ &ž*Z‡áäädì ¨%0½(ÛpG¹}û6F£þ“dK§1IDATÈ@Ác|\¨ö‚XAÙ†ÕX´üùŸÿ¹999±‘ÛŽž” Ã|i7ŸGl£«RçŽk]´O\±K>ÜáÓÔPX¸|÷»ß W®\93Æ„ÆÝhc‡4ùì“êS®-8m·îÊEP?–MUUÛÆ˜»ê(,Za0*CÉŸ˜:š*|Ž“ „Àtný³³³Í(,ÏÅü}m­Ek­ç·6­t¸¤à]-‡.3»Ò®¥@BhW&€cg{{ûFÔ* ‹“¯~õ«Õp8¼j­µÞ{ðÞÛ®¾öºÇšô'÷^;˜´°© @5Ý·÷û}]˜ Ës~ó7³zôèÑó0à‡MS˜Øªh\”‰eU8‡Ã!ª  °4wà­·Þ‚ªªˆˆŒØ7Ö•þû¼ôhZ‚•¦ë40 í:ç.*(,Ǹ|ùr]×5„0¶SLâ&À<-€6fáI¯#ˆ™ _|'„pE×°‚ÀÒäúõëfgggÜG&V«R—‹Œ[MRv;©•ÐõšMVŤD©òóåŒyO Æo½õ–– +,Obv€¸Î3&ôœVJ£Îå@‘Ò{’)XþßFÖV÷Ÿ›BÔ…31½¿¦h¿Tôôsej0eNŽ ìž}öYu–#?¦¸óV®\Ê"œ—•‘k ž¶BpQ®B•9@DGDW¯^½ª   °ùÊW¾RÇ `È™Ìmýø„¤pfQJ9Íñé,‚ÜÎ=‰[Ñää*3n±<R@A`ñòÿ÷=cÌ"r@±Xh.~xÓ°Ï.×+MnRÌ.ó W!M@ÊA¦u³ÖúÿùŸÿ1PXŠüèG?ru]ïF–á±þÅKQ¦RmÒê¿ÒõæI¡Þ¥è§«!¯EDÈU…D´õÜsϵ–"Ÿüä'yU†È'`18ínš7V>2O?í˜Ôêh²bJ£ÕºÞoî™d,£1ËsáòåË—µlPA`9òÎ;ïð¢4ba"˜¶Ÿ*ÿÏ㼺숹Ï`ÀóK»mª`9^@>¿-¶QjCn››˜ìè­C9wL1à½ßÞßß·ñzê(,ÌG€k×®ñŒs0›&·Æêº†º®‹æxª´éµœsç¸S°i V†žêùç4§LwæÚŠK÷˜K‘Ê`"§ùÚ&;çŠ××Á8×Äqº–+ï¾û.Öumr;e©ÿ^Ž+Ëíø¹±ä))Gé÷¶IÆÖڧΙօX¶4e$àcÞ|óÍ-] K‘Ÿþô§Ðëõ†Ñ2 ø¯‘€C‚@[ ®4ß°iו»i.¾0©_ßE »^£ l¦ dòéÀ1+÷ïß¿‰Fu(©‚Àb¥®k Ö{O2H‚Ëœ9ÞVi—#Òh2éKcÄ»å:¸@ÙkÏrý¶˜B—ï'Ü3Œï‡^¯bé¶®e…»—?~|¹ªªâBmbՙğWŒkÒë,3¶6m:RfO¬µÕóÏ?o„… ¢ °8F[½^o'ÉG£1»,ø6%ëR]7O~‘£Õ§±8ºº±Z¢Ktãôôôr<_A@A`±òÌ3ÏÐR!ßÉôž„u§ÉüÕŒ/íô¹û—çOzÿ97¦í|™)ÈÅ":XJ[!„žpTæ/¼ÃŒF#ôÞ£÷žÄîO]k潓Ïz-iVÏ[$YiÀjœ„c â$(RK@A`)2ÐZ‹1…q[›Å7IÔ} ¥ÉÈYιFŽ€.íÅ ÷BÖZŠõ[!„}] Kkm(UÝ­¹53“…Qš/`Œ9WØSz.MÙIAr(„D´¥®€‚ÀRÄ9Gqö ç Du]cáÂ,ÀIܩij40Mê’ "yïÑã‰sA]¥È{ï½·‡ˆ[u]®ÄãHõ¦·tÈGºû—²ÌئÀMSR·¢Ã}šXe‰1þPE¢µ+!„ƒº®/áÏ¢Sí`› ]­ÒkMéÎ\¹ô$®@üÙXka8>óû¿ÿûN­e¸U¡w- !p–×Y™Û”ªDý•ãÙïÅ?×uÝZŠœ›£˜ö)°ÈòäyïM¼Ÿu•*,T·@Ž%/’a”©?÷»¼~iäX›’wÒÏh,ZšA˜Î4L¯SÆàØôø8>¯®kE¦ °X9::ÂÆE8µܤ乆žI˜ŒÓ×S(•í–,&Å•ÿœs­­À9 `‹B2 ±ò7u-c ª*ªëzÜÚÝï÷‡GGGº–'·oß“ŒVUEO:‰‰êº†Ô2hRÔôçÜ¿.àÑõ¼Iv÷®çwH\" ‘ä¢9BÙ✻gkmˆ<ã€`]×Ï+(,,pëÖ-$"Ý$"ƒˆÆ9wŽ\¤ÐðrnWkòÿ›n¹1åM]m#Ã'u/š,‘®|M£Ò›îCmÁŒF#¬ªÊD²QðÞÿßûÞ÷4C0¥h@W´ŒÁ0i–rkq®dµdFË]ŽÉ3RÅ`"ÓÒ.Ì‘ñRp/=^¾Ï Õ…¼Ë{mOîþsE«.ŸåœƒápHÎ9݇ºBÕX´;@ÞûB@cŒoRö¶0ý?ǯ—³(Jýöé{ ,]•87½Í­‘’Že›Ô-ièÚ&Ddãÿƒ—^zIª‚Àb\€¿üË¿D8çF!B€¯XL8ëÄ“ÇåRpmà"‰;KŠ– ûçégtm‘.ùï%ðã{ìâ*d”žŸ7Æû£xÿŸø“?ù¥SXœ|éK_Ú'¢+ÞûþŒüž&"ÚE‰›v&õÍ'97Ä›4[ßO­ž u¹_"×!DשúÈG>bu¥*,zƘ"BYà‡ÌÃêЇ<ÔuÍñ˜1jüöoÿvÐ'£ °ØeL¹ì˜-¸ðÏo^Ý]f t¼Yk)>{­‹ËwîÜÑ ·‚ÀâÄ{OÞ{äˆ~Η¾àñ‘¹œ7 MyXp€p]ž?;;Óµ¬ °8¹ÿ> ‡C´›¢jÊ7+ë¼Ý‘ɳ=‡¶NNN˜…Xÿ sÙùÎ-¤ýý}tÎ!ãÜ Á6Ô4ƒ`NA )C2ɽ¦¥Öˆêº&ù÷S0P˜u @¯× ιši.*5ºl‚ÙyÆÊ*ëöséÁ®} ² ’G†ñë<¬„«,e¶@1ÉûJû ¤; \{ïÞ½tå*,LÞÿýlÅñcˆB´p–†¢•üÁEË®Tø´– «ÒKE—×MkÒÆ¡’•‘žŸ2 :çÆs1 bžÑ•:hDµƒœžžÀUcŒ‹‘ ¬l¢ÕÉNVÈ\§aúz[Û³,’V…,>’œü|,?KNÁæ¸ øsäPÒ8¢|ˆˆ#]©j ,,6à½wDÔã…ST›ìîœÛaÓ¬‡TÊ’Òw’^gR‘ ŸÞ?Ëh42D´­+VA`aÒï÷Cd²iåÊßD0’ÆJf{Î*(õ9”Šr®AÉu¯‘Àhž½Bø¨®TE+ »¼óL½»­R黀Á´eÃÓ–箕º'’¶ÌZë3Ä#{ºJ&ÃáŒ1ÁCÖÚ yE#Ñúÿ±gœ›(­„’â6Ä<À*ÆLÌPLÕÆcÎevTæ"="Bc Ôuqg6Ö7ȱø”êRS?MÛI¿}ÖÄ&b~îˆÈ£âÉZ !„+2–£u s•^€DDÈ=û³°ò¬;8´íì%….íäózNÉ CŠŸ×ëõzZ'  °8ÙÝÝíc¶Àp,*Ò^Xã#+ÿì´‘îˆHù'u]ïÕu}%-Yý0É"ú¦Å^¯Çâ>‚ápØ×•:h±PyðàAB¨ˆè¿ßEuJ¦þ:X>ÖÚsEGñžŒsN+Õ˜«O|N³ƒ·ÖJ‘qàiû6Íâ½ï=Å¿‡ü;íèÊUX80p!§§€i l‚•1{ìRs!z(6"!§ /J7§‚Àz);G àIq®—M7“ðrW\)Šž#$þÐFÚ‘+JÉIs”äM€¹N@y|®/!-YNï/}]öÄT-Ê{‰|ƒî«_ýjÅ7µÕt¡‚ÀÌRUU!ðB¢¸Î¦ªHwúÚ´wò¼.¤ŸM3›vù.S–Ú—Ò9 òµÜg¥Ç§AUUaa`Œ¹1öÕ„há‚ÀTq€4e¢ÖLK‘ÕDÌY]ýñI˜†Ûjÿ qAÚ Ô6U¸é»å†±”¾;_[v6J ‹–~âŸpɹªü ó‘÷Þ{oŸˆúbÇÅIMõ€p¦!Ýŧ)ïíÚ©×F©‰Þf•¤Ó„Sen›XÜÅêI«Å´cÞåÙúÀO}êS5ŸF\Vÿ×U¬ ÐÅœ¦’e`Œé{ï+¹¸­µçæv1ÓS ¨ëú)Åœ¶ g–Ú…’Ò–…¤€Óä6”LüÔehsg2åÌcw ‚Bÿƒ>xàððÿ~ˆˆF-yÄxñ9ttÜiM~›Ðdêw›HÁdÖ¢¨iÏåÝ^Ь È="êÝ¿ÿÀññ1‰øŠ‚Àì1KA‰(xï…YZ‰Ú«ë\À¦ó¦‰;¤œ~Ó(ò´“‹dPl&舱ƒ³c‹`0„±‰ð3 :¶\A`"w çCŽF#‹ˆàœƒº®ÉcœsưcÚAQ¤¿Í$œìç(¶øç6 E›FçLí¶Á§¥ór©Í”0§À%÷¨i>Aì<ˆ©Z !1«ª2ιŠ]vét"Ùb[[[B0r±w1×¥‚ÊÝ6燳2p°pV÷¢4uÎÏ蜩Þu*ó"\¨B8ÞH½ÍÊSQ(€\8Î96ý93@“.ÔœéÛ 'Y¯¹ôÚº¬÷®“>?¿×iD‹ª2Æì¦J¯u sï}eŒñu]óá³ì¤R8c0­â]„^†¦g[²h"n«Ù¯ 0—xnõF£ÑµÂSdó1³ÁÚLùy+Ð"À¡k rplºïä8Ã<ƒrç×:™cGGGöŒ1&ÖPæßÌ;Ü"}÷E¹ Mq‘y2 uq1¬µ¯´ÅwT&–;wîXç\@Dw%œt¡_´¨mÁ<Ý¥\AQn0 ÷ÞJk.&¬®b‰\6y!ýÕ_ý³ìò³’ãÇÆÁ©¶rßU“rävíIvñRaéýÒ|†4­™O–Fþ“ñëjrJv$"¯+[A`"HMÈëׯ3Å8/¼dŒ!A=¾þèL^ª¤¹6â.àÒ¥48M“æ ‚šª sCNÒc­µ{/¿ürOÄ4E¨ 0ŽÍ×¾ö5bT"Û¶“®qœ£ÑRáQd¹»IJµ mÅHO×”,‡¦øO&>;;»òðáÃA&    0™Ep||<þý;ßùNnÀSr7måˆ>rŠ—éÚkµr–Ÿ›Î6Èýžƒ$ø—µ|øìg?›#ÑÀ ‚@7ý—»/ ;wîô‰h@Dÿ¬šÊŠs»+›ô¥f©Ô?ÏíÔ9¶ ’·1"µY^ÖÚð§ú§Oº.m® ’ŸàÒ¥K[DtÍSq`Jî0›äLRÅ×äë§»w`šzr})íXÓý nÁsÖ@á¹o|ã7åFÓƒ 3ƒÂåË—÷~'eã°6r‘ùT™¥’òû]©ËÒ–d>>Wð#ù ›\R"“é@ç\e­íÅsƺÉÿÝ|";~“1µIEND®B`‚oif-qml-1.0.7/examples/turbine/turbine.qml0000644000000000000000000000733712004105261016663 0ustar 00000000000000import QtQuick 1.0 import oif 1.0 Item { width: 1000 height: 600 Rectangle { id: sky anchors.fill: parent gradient: Gradient { GradientStop { position: 0.0; color: "lightsteelblue" } GradientStop { position: 0.6; color: "linen" } } } OIFRotateArea { id: rotate anchors.fill: parent subscription { touches.start: 2 } onGestureStart: { initial_angle = turbine.angle } onGestureEnd: { turbine.velocity = gesture.attributes["angular velocity"]*1000*(180/Math.PI)/62.5 clouds.velocity += gesture.attributes["angular velocity"]*50 } } property real initial_angle Binding { target: turbine property: "angle" value: initial_angle + (rotate.angle.current-rotate.angle.initial)*(180/Math.PI) when: rotate.active } Image { id: turbine property alias velocity: fan_animation.velocity property alias friction: fan_animation.friction property alias angle: fan.rotation property bool free: !rotate.active smooth: true source: "turbine.png" anchors.bottom: parent.bottom anchors.left: parent.left anchors.leftMargin: 50 height: parent.height*0.7 width: sourceSize.width/sourceSize.height*height Item { id: fan property real radius: parent.height/2 x: -radius+turbine.width*0.65 y: -radius+turbine.height*0.035 width: radius*2 height: radius*2 Repeater { id: repeater model: 3 delegate: Image { source: "blade.png" smooth: true width: fan.radius*0.97 height: sourceSize.height/sourceSize.width*width transform: Rotation { origin.x: fan.radius-x; origin.y: height/2; axis { x: 0; y: 0; z: 1 } angle: index/repeater.count*360 } y: (fan.height-height)/2 } } transform: Rotation { origin.x: fan.radius; origin.y: fan.radius; axis { x: 0; y: 1; z: 0 } angle: 60 } rotation: 50 Timer { id: fan_animation property real velocity: 0 property real friction: 0.1 interval: 16 repeat: true running: velocity != 0 && turbine.free onTriggered: {fan.rotation += velocity; velocity -= velocity/Math.abs(velocity)*friction} } } } Item { id: clouds property real velocity: 0.1 anchors.fill: parent anchors.leftMargin: turbine.width Timer { interval: 800 repeat: true running: true onTriggered: cloud_template.createObject(clouds) } Component { id: cloud_template Image { id: cloud source: "cloud.png" x: Math.random()*100 y: Math.random()*clouds.height scale: Math.random()+0.5 smooth: true opacity: 0 Component.onCompleted: opacity = Math.random()+0.2 Behavior on opacity {NumberAnimation { duration: 1000; easing.type: Easing.InOutQuad }} Timer { property real velocity: clouds.velocity*cloud.scale interval: 16 repeat: true running: true onTriggered: cloud.x += velocity } } } } } oif-qml-1.0.7/formatting/cpplint.py0000755000000000000000000036135412004105261015414 0ustar 00000000000000#!/usr/bin/python # # Copyright (c) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above # copyright notice, this list of conditions and the following disclaimer # in the documentation and/or other materials provided with the # distribution. # * Neither the name of Google Inc. nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Here are some issues that I've had people identify in my code during reviews, # that I think are possible to flag automatically in a lint tool. If these were # caught by lint, it would save time both for myself and that of my reviewers. # Most likely, some of these are beyond the scope of the current lint framework, # but I think it is valuable to retain these wish-list items even if they cannot # be immediately implemented. # # Suggestions # ----------- # - Check for no 'explicit' for multi-arg ctor # - Check for boolean assign RHS in parens # - Check for ctor initializer-list colon position and spacing # - Check that if there's a ctor, there should be a dtor # - Check accessors that return non-pointer member variables are # declared const # - Check accessors that return non-const pointer member vars are # *not* declared const # - Check for using public includes for testing # - Check for spaces between brackets in one-line inline method # - Check for no assert() # - Check for spaces surrounding operators # - Check for 0 in pointer context (should be NULL) # - Check for 0 in char context (should be '\0') # - Check for camel-case method name conventions for methods # that are not simple inline getters and setters # - Check that base classes have virtual destructors # put " // namespace" after } that closes a namespace, with # namespace's name after 'namespace' if it is named. # - Do not indent namespace contents # - Avoid inlining non-trivial constructors in header files # include base/basictypes.h if DISALLOW_EVIL_CONSTRUCTORS is used # - Check for old-school (void) cast for call-sites of functions # ignored return value # - Check gUnit usage of anonymous namespace # - Check for class declaration order (typedefs, consts, enums, # ctor(s?), dtor, friend declarations, methods, member vars) # """Does google-lint on c++ files. The goal of this script is to identify places in the code that *may* be in non-compliance with google style. It does not attempt to fix up these problems -- the point is to educate. It does also not attempt to find all problems, or to ensure that everything it does find is legitimately a problem. In particular, we can get very confused by /* and // inside strings! We do a small hack, which is to ignore //'s with "'s after them on the same line, but it is far from perfect (in either direction). """ import codecs import getopt import math # for log import os import re import sre_compile import string import sys import unicodedata _USAGE = """ Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...] [--counting=total|toplevel|detailed] [file] ... The style guidelines this tries to follow are those in http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml Every problem is given a confidence score from 1-5, with 5 meaning we are certain of the problem, and 1 meaning it could be a legitimate construct. This will miss some errors, and is not a substitute for a code review. To suppress false-positive errors of a certain category, add a 'NOLINT(category)' comment to the line. NOLINT or NOLINT(*) suppresses errors of all categories on that line. The files passed in will be linted; at least one file must be provided. Linted extensions are .cc, .cpp, and .h. Other file types will be ignored. Flags: output=vs7 By default, the output is formatted to ease emacs parsing. Visual Studio compatible output (vs7) may also be used. Other formats are unsupported. verbose=# Specify a number 0-5 to restrict errors to certain verbosity levels. filter=-x,+y,... Specify a comma-separated list of category-filters to apply: only error messages whose category names pass the filters will be printed. (Category names are printed with the message and look like "[whitespace/indent]".) Filters are evaluated left to right. "-FOO" and "FOO" means "do not print categories that start with FOO". "+FOO" means "do print categories that start with FOO". Examples: --filter=-whitespace,+whitespace/braces --filter=whitespace,runtime/printf,+runtime/printf_format --filter=-,+build/include_what_you_use To see a list of all the categories used in cpplint, pass no arg: --filter= counting=total|toplevel|detailed The total number of errors found is always printed. If 'toplevel' is provided, then the count of errors in each of the top-level categories like 'build' and 'whitespace' will also be printed. If 'detailed' is provided, then a count is provided for each category like 'build/class'. """ # We categorize each error message we print. Here are the categories. # We want an explicit list so we can list them all in cpplint --filter=. # If you add a new error message with a new category, add it to the list # here! cpplint_unittest.py should tell you if you forget to do this. # \ used for clearer layout -- pylint: disable-msg=C6013 _ERROR_CATEGORIES = [ 'build/class', 'build/deprecated', 'build/endif_comment', 'build/forward_decl', 'build/header_guard', 'build/include', 'build/include_alpha', 'build/include_order', 'build/include_what_you_use', 'build/namespaces', 'build/printf_format', 'build/storage_class', 'legal/copyright', 'readability/braces', 'readability/casting', 'readability/check', 'readability/constructors', 'readability/fn_size', 'readability/function', 'readability/multiline_comment', 'readability/multiline_string', 'readability/nolint', 'readability/streams', 'readability/todo', 'readability/utf8', 'runtime/arrays', 'runtime/casting', 'runtime/explicit', 'runtime/int', 'runtime/init', 'runtime/invalid_increment', 'runtime/member_string_references', 'runtime/memset', 'runtime/operator', 'runtime/printf', 'runtime/printf_format', 'runtime/references', 'runtime/rtti', 'runtime/sizeof', 'runtime/string', 'runtime/threadsafe_fn', 'runtime/virtual', 'whitespace/blank_line', 'whitespace/braces', 'whitespace/comma', 'whitespace/comments', 'whitespace/end_of_line', 'whitespace/ending_newline', 'whitespace/indent', 'whitespace/labels', 'whitespace/line_length', 'whitespace/newline', 'whitespace/operators', 'whitespace/parens', 'whitespace/semicolon', 'whitespace/tab', 'whitespace/todo' ] # The default state of the category filter. This is overrided by the --filter= # flag. By default all errors are on, so only add here categories that should be # off by default (i.e., categories that must be enabled by the --filter= flags). # All entries here should start with a '-' or '+', as in the --filter= flag. _DEFAULT_FILTERS = [ '-build/include_alpha' ] # We used to check for high-bit characters, but after much discussion we # decided those were OK, as long as they were in UTF-8 and didn't represent # hard-coded international strings, which belong in a seperate i18n file. # Headers that we consider STL headers. _STL_HEADERS = frozenset([ 'algobase.h', 'algorithm', 'alloc.h', 'bitset', 'deque', 'exception', 'function.h', 'functional', 'hash_map', 'hash_map.h', 'hash_set', 'hash_set.h', 'iterator', 'list', 'list.h', 'map', 'memory', 'new', 'pair.h', 'pthread_alloc', 'queue', 'set', 'set.h', 'sstream', 'stack', 'stl_alloc.h', 'stl_relops.h', 'type_traits.h', 'utility', 'vector', 'vector.h', ]) # Non-STL C++ system headers. _CPP_HEADERS = frozenset([ 'algo.h', 'builtinbuf.h', 'bvector.h', 'cassert', 'cctype', 'cerrno', 'cfloat', 'ciso646', 'climits', 'clocale', 'cmath', 'complex', 'complex.h', 'csetjmp', 'csignal', 'cstdarg', 'cstddef', 'cstdio', 'cstdlib', 'cstring', 'ctime', 'cwchar', 'cwctype', 'defalloc.h', 'deque.h', 'editbuf.h', 'exception', 'fstream', 'fstream.h', 'hashtable.h', 'heap.h', 'indstream.h', 'iomanip', 'iomanip.h', 'ios', 'iosfwd', 'iostream', 'iostream.h', 'istream.h', 'iterator.h', 'limits', 'map.h', 'multimap.h', 'multiset.h', 'numeric', 'ostream.h', 'parsestream.h', 'pfstream.h', 'PlotFile.h', 'procbuf.h', 'pthread_alloc.h', 'rope', 'rope.h', 'ropeimpl.h', 'SFile.h', 'slist', 'slist.h', 'stack.h', 'stdexcept', 'stdiostream.h', 'streambuf.h', 'stream.h', 'strfile.h', 'string', 'strstream', 'strstream.h', 'tempbuf.h', 'tree.h', 'typeinfo', 'valarray', ]) # Assertion macros. These are defined in base/logging.h and # testing/base/gunit.h. Note that the _M versions need to come first # for substring matching to work. _CHECK_MACROS = [ 'DCHECK', 'CHECK', 'EXPECT_TRUE_M', 'EXPECT_TRUE', 'ASSERT_TRUE_M', 'ASSERT_TRUE', 'EXPECT_FALSE_M', 'EXPECT_FALSE', 'ASSERT_FALSE_M', 'ASSERT_FALSE', ] # Replacement macros for CHECK/DCHECK/EXPECT_TRUE/EXPECT_FALSE _CHECK_REPLACEMENT = dict([(m, {}) for m in _CHECK_MACROS]) for op, replacement in [('==', 'EQ'), ('!=', 'NE'), ('>=', 'GE'), ('>', 'GT'), ('<=', 'LE'), ('<', 'LT')]: _CHECK_REPLACEMENT['DCHECK'][op] = 'DCHECK_%s' % replacement _CHECK_REPLACEMENT['CHECK'][op] = 'CHECK_%s' % replacement _CHECK_REPLACEMENT['EXPECT_TRUE'][op] = 'EXPECT_%s' % replacement _CHECK_REPLACEMENT['ASSERT_TRUE'][op] = 'ASSERT_%s' % replacement _CHECK_REPLACEMENT['EXPECT_TRUE_M'][op] = 'EXPECT_%s_M' % replacement _CHECK_REPLACEMENT['ASSERT_TRUE_M'][op] = 'ASSERT_%s_M' % replacement for op, inv_replacement in [('==', 'NE'), ('!=', 'EQ'), ('>=', 'LT'), ('>', 'LE'), ('<=', 'GT'), ('<', 'GE')]: _CHECK_REPLACEMENT['EXPECT_FALSE'][op] = 'EXPECT_%s' % inv_replacement _CHECK_REPLACEMENT['ASSERT_FALSE'][op] = 'ASSERT_%s' % inv_replacement _CHECK_REPLACEMENT['EXPECT_FALSE_M'][op] = 'EXPECT_%s_M' % inv_replacement _CHECK_REPLACEMENT['ASSERT_FALSE_M'][op] = 'ASSERT_%s_M' % inv_replacement # These constants define types of headers for use with # _IncludeState.CheckNextIncludeOrder(). _C_SYS_HEADER = 1 _CPP_SYS_HEADER = 2 _LIKELY_MY_HEADER = 3 _POSSIBLE_MY_HEADER = 4 _OTHER_HEADER = 5 _regexp_compile_cache = {} # Finds occurrences of NOLINT or NOLINT(...). _RE_SUPPRESSION = re.compile(r'\bNOLINT\b(\([^)]*\))?') # {str, set(int)}: a map from error categories to sets of linenumbers # on which those errors are expected and should be suppressed. _error_suppressions = {} def ParseNolintSuppressions(filename, raw_line, linenum, error): """Updates the global list of error-suppressions. Parses any NOLINT comments on the current line, updating the global error_suppressions store. Reports an error if the NOLINT comment was malformed. Args: filename: str, the name of the input file. raw_line: str, the line of input text, with comments. linenum: int, the number of the current line. error: function, an error handler. """ # FIXME(adonovan): "NOLINT(" is misparsed as NOLINT(*). m = _RE_SUPPRESSION.search(raw_line) if m: category = m.group(1) if category in (None, '(*)'): # => "suppress all" _error_suppressions.setdefault(None, set()).add(linenum) else: if category.startswith('(') and category.endswith(')'): category = category[1:-1] if category in _ERROR_CATEGORIES: _error_suppressions.setdefault(category, set()).add(linenum) else: error(filename, linenum, 'readability/nolint', 5, 'Unknown NOLINT error category: %s' % category) def ResetNolintSuppressions(): "Resets the set of NOLINT suppressions to empty." _error_suppressions.clear() def IsErrorSuppressedByNolint(category, linenum): """Returns true if the specified error category is suppressed on this line. Consults the global error_suppressions map populated by ParseNolintSuppressions/ResetNolintSuppressions. Args: category: str, the category of the error. linenum: int, the current line number. Returns: bool, True iff the error should be suppressed due to a NOLINT comment. """ return (linenum in _error_suppressions.get(category, set()) or linenum in _error_suppressions.get(None, set())) def Match(pattern, s): """Matches the string with the pattern, caching the compiled regexp.""" # The regexp compilation caching is inlined in both Match and Search for # performance reasons; factoring it out into a separate function turns out # to be noticeably expensive. if not pattern in _regexp_compile_cache: _regexp_compile_cache[pattern] = sre_compile.compile(pattern) return _regexp_compile_cache[pattern].match(s) def Search(pattern, s): """Searches the string for the pattern, caching the compiled regexp.""" if not pattern in _regexp_compile_cache: _regexp_compile_cache[pattern] = sre_compile.compile(pattern) return _regexp_compile_cache[pattern].search(s) class _IncludeState(dict): """Tracks line numbers for includes, and the order in which includes appear. As a dict, an _IncludeState object serves as a mapping between include filename and line number on which that file was included. Call CheckNextIncludeOrder() once for each header in the file, passing in the type constants defined above. Calls in an illegal order will raise an _IncludeError with an appropriate error message. """ # self._section will move monotonically through this set. If it ever # needs to move backwards, CheckNextIncludeOrder will raise an error. _INITIAL_SECTION = 0 _MY_H_SECTION = 1 _C_SECTION = 2 _CPP_SECTION = 3 _OTHER_H_SECTION = 4 _TYPE_NAMES = { _C_SYS_HEADER: 'C system header', _CPP_SYS_HEADER: 'C++ system header', _LIKELY_MY_HEADER: 'header this file implements', _POSSIBLE_MY_HEADER: 'header this file may implement', _OTHER_HEADER: 'other header', } _SECTION_NAMES = { _INITIAL_SECTION: "... nothing. (This can't be an error.)", _MY_H_SECTION: 'a header this file implements', _C_SECTION: 'C system header', _CPP_SECTION: 'C++ system header', _OTHER_H_SECTION: 'other header', } def __init__(self): dict.__init__(self) # The name of the current section. self._section = self._INITIAL_SECTION # The path of last found header. self._last_header = '' def CanonicalizeAlphabeticalOrder(self, header_path): """Returns a path canonicalized for alphabetical comparisson. - replaces "-" with "_" so they both cmp the same. - removes '-inl' since we don't require them to be after the main header. - lowercase everything, just in case. Args: header_path: Path to be canonicalized. Returns: Canonicalized path. """ return header_path.replace('-inl.h', '.h').replace('-', '_').lower() def IsInAlphabeticalOrder(self, header_path): """Check if a header is in alphabetical order with the previous header. Args: header_path: Header to be checked. Returns: Returns true if the header is in alphabetical order. """ canonical_header = self.CanonicalizeAlphabeticalOrder(header_path) if self._last_header > canonical_header: return False self._last_header = canonical_header return True def CheckNextIncludeOrder(self, header_type): """Returns a non-empty error message if the next header is out of order. This function also updates the internal state to be ready to check the next include. Args: header_type: One of the _XXX_HEADER constants defined above. Returns: The empty string if the header is in the right order, or an error message describing what's wrong. """ error_message = ('Found %s after %s' % (self._TYPE_NAMES[header_type], self._SECTION_NAMES[self._section])) last_section = self._section if header_type == _C_SYS_HEADER: if self._section <= self._C_SECTION: self._section = self._C_SECTION else: self._last_header = '' return error_message elif header_type == _CPP_SYS_HEADER: if self._section <= self._CPP_SECTION: self._section = self._CPP_SECTION else: self._last_header = '' return error_message elif header_type == _LIKELY_MY_HEADER: if self._section <= self._MY_H_SECTION: self._section = self._MY_H_SECTION else: self._section = self._OTHER_H_SECTION elif header_type == _POSSIBLE_MY_HEADER: if self._section <= self._MY_H_SECTION: self._section = self._MY_H_SECTION else: # This will always be the fallback because we're not sure # enough that the header is associated with this file. self._section = self._OTHER_H_SECTION else: assert header_type == _OTHER_HEADER self._section = self._OTHER_H_SECTION if last_section != self._section: self._last_header = '' return '' class _CppLintState(object): """Maintains module-wide state..""" def __init__(self): self.verbose_level = 1 # global setting. self.error_count = 0 # global count of reported errors # filters to apply when emitting error messages self.filters = _DEFAULT_FILTERS[:] self.counting = 'total' # In what way are we counting errors? self.errors_by_category = {} # string to int dict storing error counts # output format: # "emacs" - format that emacs can parse (default) # "vs7" - format that Microsoft Visual Studio 7 can parse self.output_format = 'emacs' def SetOutputFormat(self, output_format): """Sets the output format for errors.""" self.output_format = output_format def SetVerboseLevel(self, level): """Sets the module's verbosity, and returns the previous setting.""" last_verbose_level = self.verbose_level self.verbose_level = level return last_verbose_level def SetCountingStyle(self, counting_style): """Sets the module's counting options.""" self.counting = counting_style def SetFilters(self, filters): """Sets the error-message filters. These filters are applied when deciding whether to emit a given error message. Args: filters: A string of comma-separated filters (eg "+whitespace/indent"). Each filter should start with + or -; else we die. Raises: ValueError: The comma-separated filters did not all start with '+' or '-'. E.g. "-,+whitespace,-whitespace/indent,whitespace/badfilter" """ # Default filters always have less priority than the flag ones. self.filters = _DEFAULT_FILTERS[:] for filt in filters.split(','): clean_filt = filt.strip() if clean_filt: self.filters.append(clean_filt) for filt in self.filters: if not (filt.startswith('+') or filt.startswith('-')): raise ValueError('Every filter in --filters must start with + or -' ' (%s does not)' % filt) def ResetErrorCounts(self): """Sets the module's error statistic back to zero.""" self.error_count = 0 self.errors_by_category = {} def IncrementErrorCount(self, category): """Bumps the module's error statistic.""" self.error_count += 1 if self.counting in ('toplevel', 'detailed'): if self.counting != 'detailed': category = category.split('/')[0] if category not in self.errors_by_category: self.errors_by_category[category] = 0 self.errors_by_category[category] += 1 def PrintErrorCounts(self): """Print a summary of errors by category, and the total.""" for category, count in self.errors_by_category.iteritems(): sys.stderr.write('Category \'%s\' errors found: %d\n' % (category, count)) sys.stderr.write('Total errors found: %d\n' % self.error_count) _cpplint_state = _CppLintState() def _OutputFormat(): """Gets the module's output format.""" return _cpplint_state.output_format def _SetOutputFormat(output_format): """Sets the module's output format.""" _cpplint_state.SetOutputFormat(output_format) def _VerboseLevel(): """Returns the module's verbosity setting.""" return _cpplint_state.verbose_level def _SetVerboseLevel(level): """Sets the module's verbosity, and returns the previous setting.""" return _cpplint_state.SetVerboseLevel(level) def _SetCountingStyle(level): """Sets the module's counting options.""" _cpplint_state.SetCountingStyle(level) def _Filters(): """Returns the module's list of output filters, as a list.""" return _cpplint_state.filters def _SetFilters(filters): """Sets the module's error-message filters. These filters are applied when deciding whether to emit a given error message. Args: filters: A string of comma-separated filters (eg "whitespace/indent"). Each filter should start with + or -; else we die. """ _cpplint_state.SetFilters(filters) class _FunctionState(object): """Tracks current function name and the number of lines in its body.""" _NORMAL_TRIGGER = 250 # for --v=0, 500 for --v=1, etc. _TEST_TRIGGER = 400 # about 50% more than _NORMAL_TRIGGER. def __init__(self): self.in_a_function = False self.lines_in_function = 0 self.current_function = '' def Begin(self, function_name): """Start analyzing function body. Args: function_name: The name of the function being tracked. """ self.in_a_function = True self.lines_in_function = 0 self.current_function = function_name def Count(self): """Count line in current function body.""" if self.in_a_function: self.lines_in_function += 1 def Check(self, error, filename, linenum): """Report if too many lines in function body. Args: error: The function to call with any errors found. filename: The name of the current file. linenum: The number of the line to check. """ if Match(r'T(EST|est)', self.current_function): base_trigger = self._TEST_TRIGGER else: base_trigger = self._NORMAL_TRIGGER trigger = base_trigger * 2**_VerboseLevel() if self.lines_in_function > trigger: error_level = int(math.log(self.lines_in_function / base_trigger, 2)) # 50 => 0, 100 => 1, 200 => 2, 400 => 3, 800 => 4, 1600 => 5, ... if error_level > 5: error_level = 5 error(filename, linenum, 'readability/fn_size', error_level, 'Small and focused functions are preferred:' ' %s has %d non-comment lines' ' (error triggered by exceeding %d lines).' % ( self.current_function, self.lines_in_function, trigger)) def End(self): """Stop analizing function body.""" self.in_a_function = False class _IncludeError(Exception): """Indicates a problem with the include order in a file.""" pass class FileInfo: """Provides utility functions for filenames. FileInfo provides easy access to the components of a file's path relative to the project root. """ def __init__(self, filename): self._filename = filename def FullName(self): """Make Windows paths like Unix.""" return os.path.abspath(self._filename).replace('\\', '/') def RepositoryName(self): """FullName after removing the local path to the repository. If we have a real absolute path name here we can try to do something smart: detecting the root of the checkout and truncating /path/to/checkout from the name so that we get header guards that don't include things like "C:\Documents and Settings\..." or "/home/username/..." in them and thus people on different computers who have checked the source out to different locations won't see bogus errors. """ fullname = self.FullName() if os.path.exists(fullname): project_dir = os.path.dirname(fullname) if os.path.exists(os.path.join(project_dir, ".svn")): # If there's a .svn file in the current directory, we recursively look # up the directory tree for the top of the SVN checkout root_dir = project_dir one_up_dir = os.path.dirname(root_dir) while os.path.exists(os.path.join(one_up_dir, ".svn")): root_dir = os.path.dirname(root_dir) one_up_dir = os.path.dirname(one_up_dir) prefix = os.path.commonprefix([root_dir, project_dir]) return fullname[len(prefix) + 1:] # Not SVN? Try to find a git or hg top level directory by searching up # from the current path. root_dir = os.path.dirname(fullname) while (root_dir != os.path.dirname(root_dir) and not os.path.exists(os.path.join(root_dir, ".git")) and not os.path.exists(os.path.join(root_dir, ".hg"))): root_dir = os.path.dirname(root_dir) if (os.path.exists(os.path.join(root_dir, ".git")) or os.path.exists(os.path.join(root_dir, ".hg"))): prefix = os.path.commonprefix([root_dir, project_dir]) return fullname[len(prefix) + 1:] # Don't know what to do; header guard warnings may be wrong... return fullname def Split(self): """Splits the file into the directory, basename, and extension. For 'chrome/browser/browser.cc', Split() would return ('chrome/browser', 'browser', '.cc') Returns: A tuple of (directory, basename, extension). """ googlename = self.RepositoryName() project, rest = os.path.split(googlename) return (project,) + os.path.splitext(rest) def BaseName(self): """File base name - text after the final slash, before the final period.""" return self.Split()[1] def Extension(self): """File extension - text following the final period.""" return self.Split()[2] def NoExtension(self): """File has no source file extension.""" return '/'.join(self.Split()[0:2]) def IsSource(self): """File has a source file extension.""" return self.Extension()[1:] in ('c', 'cc', 'cpp', 'cxx') def _ShouldPrintError(category, confidence, linenum): """Returns true iff confidence >= verbose, category passes filter and is not NOLINT-suppressed.""" # There are three ways we might decide not to print an error message: # a "NOLINT(category)" comment appears in the source, # the verbosity level isn't high enough, or the filters filter it out. if IsErrorSuppressedByNolint(category, linenum): return False if confidence < _cpplint_state.verbose_level: return False is_filtered = False for one_filter in _Filters(): if one_filter.startswith('-'): if category.startswith(one_filter[1:]): is_filtered = True elif one_filter.startswith('+'): if category.startswith(one_filter[1:]): is_filtered = False else: assert False # should have been checked for in SetFilter. if is_filtered: return False return True def Error(filename, linenum, category, confidence, message): """Logs the fact we've found a lint error. We log where the error was found, and also our confidence in the error, that is, how certain we are this is a legitimate style regression, and not a misidentification or a use that's sometimes justified. False positives can be suppressed by the use of "cpplint(category)" comments on the offending line. These are parsed into _error_suppressions. Args: filename: The name of the file containing the error. linenum: The number of the line containing the error. category: A string used to describe the "category" this bug falls under: "whitespace", say, or "runtime". Categories may have a hierarchy separated by slashes: "whitespace/indent". confidence: A number from 1-5 representing a confidence score for the error, with 5 meaning that we are certain of the problem, and 1 meaning that it could be a legitimate construct. message: The error message. """ if _ShouldPrintError(category, confidence, linenum): _cpplint_state.IncrementErrorCount(category) if _cpplint_state.output_format == 'vs7': sys.stderr.write('%s(%s): %s [%s] [%d]\n' % ( filename, linenum, message, category, confidence)) else: sys.stderr.write('%s:%s: %s [%s] [%d]\n' % ( filename, linenum, message, category, confidence)) # Matches standard C++ escape esequences per 2.13.2.3 of the C++ standard. _RE_PATTERN_CLEANSE_LINE_ESCAPES = re.compile( r'\\([abfnrtv?"\\\']|\d+|x[0-9a-fA-F]+)') # Matches strings. Escape codes should already be removed by ESCAPES. _RE_PATTERN_CLEANSE_LINE_DOUBLE_QUOTES = re.compile(r'"[^"]*"') # Matches characters. Escape codes should already be removed by ESCAPES. _RE_PATTERN_CLEANSE_LINE_SINGLE_QUOTES = re.compile(r"'.'") # Matches multi-line C++ comments. # This RE is a little bit more complicated than one might expect, because we # have to take care of space removals tools so we can handle comments inside # statements better. # The current rule is: We only clear spaces from both sides when we're at the # end of the line. Otherwise, we try to remove spaces from the right side, # if this doesn't work we try on left side but only if there's a non-character # on the right. _RE_PATTERN_CLEANSE_LINE_C_COMMENTS = re.compile( r"""(\s*/\*.*\*/\s*$| /\*.*\*/\s+| \s+/\*.*\*/(?=\W)| /\*.*\*/)""", re.VERBOSE) def IsCppString(line): """Does line terminate so, that the next symbol is in string constant. This function does not consider single-line nor multi-line comments. Args: line: is a partial line of code starting from the 0..n. Returns: True, if next character appended to 'line' is inside a string constant. """ line = line.replace(r'\\', 'XX') # after this, \\" does not match to \" return ((line.count('"') - line.count(r'\"') - line.count("'\"'")) & 1) == 1 def FindNextMultiLineCommentStart(lines, lineix): """Find the beginning marker for a multiline comment.""" while lineix < len(lines): if lines[lineix].strip().startswith('/*'): # Only return this marker if the comment goes beyond this line if lines[lineix].strip().find('*/', 2) < 0: return lineix lineix += 1 return len(lines) def FindNextMultiLineCommentEnd(lines, lineix): """We are inside a comment, find the end marker.""" while lineix < len(lines): if lines[lineix].strip().endswith('*/'): return lineix lineix += 1 return len(lines) def RemoveMultiLineCommentsFromRange(lines, begin, end): """Clears a range of lines for multi-line comments.""" # Having // dummy comments makes the lines non-empty, so we will not get # unnecessary blank line warnings later in the code. for i in range(begin, end): lines[i] = '// dummy' def RemoveMultiLineComments(filename, lines, error): """Removes multiline (c-style) comments from lines.""" lineix = 0 while lineix < len(lines): lineix_begin = FindNextMultiLineCommentStart(lines, lineix) if lineix_begin >= len(lines): return lineix_end = FindNextMultiLineCommentEnd(lines, lineix_begin) if lineix_end >= len(lines): error(filename, lineix_begin + 1, 'readability/multiline_comment', 5, 'Could not find end of multi-line comment') return RemoveMultiLineCommentsFromRange(lines, lineix_begin, lineix_end + 1) lineix = lineix_end + 1 def CleanseComments(line): """Removes //-comments and single-line C-style /* */ comments. Args: line: A line of C++ source. Returns: The line with single-line comments removed. """ commentpos = line.find('//') if commentpos != -1 and not IsCppString(line[:commentpos]): line = line[:commentpos] # get rid of /* ... */ return _RE_PATTERN_CLEANSE_LINE_C_COMMENTS.sub('', line) class CleansedLines(object): """Holds 3 copies of all lines with different preprocessing applied to them. 1) elided member contains lines without strings and comments, 2) lines member contains lines without comments, and 3) raw member contains all the lines without processing. All these three members are of , and of the same length. """ def __init__(self, lines): self.elided = [] self.lines = [] self.raw_lines = lines self.num_lines = len(lines) for linenum in range(len(lines)): self.lines.append(CleanseComments(lines[linenum])) elided = self._CollapseStrings(lines[linenum]) self.elided.append(CleanseComments(elided)) def NumLines(self): """Returns the number of lines represented.""" return self.num_lines @staticmethod def _CollapseStrings(elided): """Collapses strings and chars on a line to simple "" or '' blocks. We nix strings first so we're not fooled by text like '"http://"' Args: elided: The line being processed. Returns: The line with collapsed strings. """ if not _RE_PATTERN_INCLUDE.match(elided): # Remove escaped characters first to make quote/single quote collapsing # basic. Things that look like escaped characters shouldn't occur # outside of strings and chars. elided = _RE_PATTERN_CLEANSE_LINE_ESCAPES.sub('', elided) elided = _RE_PATTERN_CLEANSE_LINE_SINGLE_QUOTES.sub("''", elided) elided = _RE_PATTERN_CLEANSE_LINE_DOUBLE_QUOTES.sub('""', elided) return elided def CloseExpression(clean_lines, linenum, pos): """If input points to ( or { or [, finds the position that closes it. If lines[linenum][pos] points to a '(' or '{' or '[', finds the the linenum/pos that correspond to the closing of the expression. Args: clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. pos: A position on the line. Returns: A tuple (line, linenum, pos) pointer *past* the closing brace, or (line, len(lines), -1) if we never find a close. Note we ignore strings and comments when matching; and the line we return is the 'cleansed' line at linenum. """ line = clean_lines.elided[linenum] startchar = line[pos] if startchar not in '({[': return (line, clean_lines.NumLines(), -1) if startchar == '(': endchar = ')' if startchar == '[': endchar = ']' if startchar == '{': endchar = '}' num_open = line.count(startchar) - line.count(endchar) while linenum < clean_lines.NumLines() and num_open > 0: linenum += 1 line = clean_lines.elided[linenum] num_open += line.count(startchar) - line.count(endchar) # OK, now find the endchar that actually got us back to even endpos = len(line) while num_open >= 0: endpos = line.rfind(')', 0, endpos) num_open -= 1 # chopped off another ) return (line, linenum, endpos + 1) def CheckForCopyright(filename, lines, error): """Logs an error if no Copyright message appears at the top of the file.""" # We'll say it should occur by line 10. Don't forget there's a # dummy line at the front. for line in xrange(1, min(len(lines), 11)): if re.search(r'Copyright', lines[line], re.I): break else: # means no copyright line was found error(filename, 0, 'legal/copyright', 5, 'No copyright message found. ' 'You should have a line: "Copyright [year] "') def GetHeaderGuardCPPVariable(filename): """Returns the CPP variable that should be used as a header guard. Args: filename: The name of a C++ header file. Returns: The CPP variable that should be used as a header guard in the named file. """ # Restores original filename in case that cpplint is invoked from Emacs's # flymake. filename = re.sub(r'_flymake\.h$', '.h', filename) fileinfo = FileInfo(filename) return re.sub(r'[-./\s]', '_', fileinfo.RepositoryName()).upper() + '_' def CheckForHeaderGuard(filename, lines, error): """Checks that the file contains a header guard. Logs an error if no #ifndef header guard is present. For other headers, checks that the full pathname is used. Args: filename: The name of the C++ header file. lines: An array of strings, each representing a line of the file. error: The function to call with any errors found. """ cppvar = GetHeaderGuardCPPVariable(filename) ifndef = None ifndef_linenum = 0 define = None endif = None endif_linenum = 0 for linenum, line in enumerate(lines): linesplit = line.split() if len(linesplit) >= 2: # find the first occurrence of #ifndef and #define, save arg if not ifndef and linesplit[0] == '#ifndef': # set ifndef to the header guard presented on the #ifndef line. ifndef = linesplit[1] ifndef_linenum = linenum if not define and linesplit[0] == '#define': define = linesplit[1] # find the last occurrence of #endif, save entire line if line.startswith('#endif'): endif = line endif_linenum = linenum if not ifndef or not define or ifndef != define: error(filename, 0, 'build/header_guard', 5, 'No #ifndef header guard found, suggested CPP variable is: %s' % cppvar) return # OIF_QML: ignored # The guard should be PATH_FILE_H_, but we also allow PATH_FILE_H__ # for backward compatibility. #if ifndef != cppvar: # error_level = 0 # if ifndef != cppvar + '_': # error_level = 5 # # ParseNolintSuppressions(filename, lines[ifndef_linenum], ifndef_linenum, # error) # error(filename, ifndef_linenum, 'build/header_guard', error_level, # '#ifndef header guard has wrong style, please use: %s' % cppvar) # #if endif != ('#endif // %s' % cppvar): # error_level = 0 # if endif != ('#endif // %s' % (cppvar + '_')): # error_level = 5 # # ParseNolintSuppressions(filename, lines[endif_linenum], endif_linenum, # error) # error(filename, endif_linenum, 'build/header_guard', error_level, # '#endif line should be "#endif // %s"' % cppvar) def CheckForUnicodeReplacementCharacters(filename, lines, error): """Logs an error for each line containing Unicode replacement characters. These indicate that either the file contained invalid UTF-8 (likely) or Unicode replacement characters (which it shouldn't). Note that it's possible for this to throw off line numbering if the invalid UTF-8 occurred adjacent to a newline. Args: filename: The name of the current file. lines: An array of strings, each representing a line of the file. error: The function to call with any errors found. """ for linenum, line in enumerate(lines): if u'\ufffd' in line: error(filename, linenum, 'readability/utf8', 5, 'Line contains invalid UTF-8 (or Unicode replacement character).') def CheckForNewlineAtEOF(filename, lines, error): """Logs an error if there is no newline char at the end of the file. Args: filename: The name of the current file. lines: An array of strings, each representing a line of the file. error: The function to call with any errors found. """ # The array lines() was created by adding two newlines to the # original file (go figure), then splitting on \n. # To verify that the file ends in \n, we just have to make sure the # last-but-two element of lines() exists and is empty. if len(lines) < 3 or lines[-2]: error(filename, len(lines) - 2, 'whitespace/ending_newline', 5, 'Could not find a newline character at the end of the file.') def CheckForMultilineCommentsAndStrings(filename, clean_lines, linenum, error): """Logs an error if we see /* ... */ or "..." that extend past one line. /* ... */ comments are legit inside macros, for one line. Otherwise, we prefer // comments, so it's ok to warn about the other. Likewise, it's ok for strings to extend across multiple lines, as long as a line continuation character (backslash) terminates each line. Although not currently prohibited by the C++ style guide, it's ugly and unnecessary. We don't do well with either in this lint program, so we warn about both. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. error: The function to call with any errors found. """ line = clean_lines.elided[linenum] # Remove all \\ (escaped backslashes) from the line. They are OK, and the # second (escaped) slash may trigger later \" detection erroneously. line = line.replace('\\\\', '') if line.count('/*') > line.count('*/'): error(filename, linenum, 'readability/multiline_comment', 5, 'Complex multi-line /*...*/-style comment found. ' 'Lint may give bogus warnings. ' 'Consider replacing these with //-style comments, ' 'with #if 0...#endif, ' 'or with more clearly structured multi-line comments.') if (line.count('"') - line.count('\\"')) % 2: error(filename, linenum, 'readability/multiline_string', 5, 'Multi-line string ("...") found. This lint script doesn\'t ' 'do well with such strings, and may give bogus warnings. They\'re ' 'ugly and unnecessary, and you should use concatenation instead".') threading_list = ( ('asctime(', 'asctime_r('), ('ctime(', 'ctime_r('), ('getgrgid(', 'getgrgid_r('), ('getgrnam(', 'getgrnam_r('), ('getlogin(', 'getlogin_r('), ('getpwnam(', 'getpwnam_r('), ('getpwuid(', 'getpwuid_r('), ('gmtime(', 'gmtime_r('), ('localtime(', 'localtime_r('), ('rand(', 'rand_r('), ('readdir(', 'readdir_r('), ('strtok(', 'strtok_r('), ('ttyname(', 'ttyname_r('), ) def CheckPosixThreading(filename, clean_lines, linenum, error): """Checks for calls to thread-unsafe functions. Much code has been originally written without consideration of multi-threading. Also, engineers are relying on their old experience; they have learned posix before threading extensions were added. These tests guide the engineers to use thread-safe functions (when using posix directly). Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. error: The function to call with any errors found. """ line = clean_lines.elided[linenum] for single_thread_function, multithread_safe_function in threading_list: ix = line.find(single_thread_function) # Comparisons made explicit for clarity -- pylint: disable-msg=C6403 if ix >= 0 and (ix == 0 or (not line[ix - 1].isalnum() and line[ix - 1] not in ('_', '.', '>'))): error(filename, linenum, 'runtime/threadsafe_fn', 2, 'Consider using ' + multithread_safe_function + '...) instead of ' + single_thread_function + '...) for improved thread safety.') # Matches invalid increment: *count++, which moves pointer instead of # incrementing a value. _RE_PATTERN_INVALID_INCREMENT = re.compile( r'^\s*\*\w+(\+\+|--);') def CheckInvalidIncrement(filename, clean_lines, linenum, error): """Checks for invalid increment *count++. For example following function: void increment_counter(int* count) { *count++; } is invalid, because it effectively does count++, moving pointer, and should be replaced with ++*count, (*count)++ or *count += 1. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. error: The function to call with any errors found. """ line = clean_lines.elided[linenum] if _RE_PATTERN_INVALID_INCREMENT.match(line): error(filename, linenum, 'runtime/invalid_increment', 5, 'Changing pointer instead of value (or unused value of operator*).') class _ClassInfo(object): """Stores information about a class.""" def __init__(self, name, linenum): self.name = name self.linenum = linenum self.seen_open_brace = False self.is_derived = False self.virtual_method_linenumber = None self.has_virtual_destructor = False self.brace_depth = 0 class _ClassState(object): """Holds the current state of the parse relating to class declarations. It maintains a stack of _ClassInfos representing the parser's guess as to the current nesting of class declarations. The innermost class is at the top (back) of the stack. Typically, the stack will either be empty or have exactly one entry. """ def __init__(self): self.classinfo_stack = [] def CheckFinished(self, filename, error): """Checks that all classes have been completely parsed. Call this when all lines in a file have been processed. Args: filename: The name of the current file. error: The function to call with any errors found. """ if self.classinfo_stack: # Note: This test can result in false positives if #ifdef constructs # get in the way of brace matching. See the testBuildClass test in # cpplint_unittest.py for an example of this. error(filename, self.classinfo_stack[0].linenum, 'build/class', 5, 'Failed to find complete declaration of class %s' % self.classinfo_stack[0].name) def CheckForNonStandardConstructs(filename, clean_lines, linenum, class_state, error): """Logs an error if we see certain non-ANSI constructs ignored by gcc-2. Complain about several constructs which gcc-2 accepts, but which are not standard C++. Warning about these in lint is one way to ease the transition to new compilers. - put storage class first (e.g. "static const" instead of "const static"). - "%lld" instead of %qd" in printf-type functions. - "%1$d" is non-standard in printf-type functions. - "\%" is an undefined character escape sequence. - text after #endif is not allowed. - invalid inner-style forward declaration. - >? and ?= and )\?=?\s*(\w+|[+-]?\d+)(\.\d*)?', line): error(filename, linenum, 'build/deprecated', 3, '>? and ))?' # r'\s*const\s*' + type_name + '\s*&\s*\w+\s*;' error(filename, linenum, 'runtime/member_string_references', 2, 'const string& members are dangerous. It is much better to use ' 'alternatives, such as pointers or simple constants.') # Track class entry and exit, and attempt to find cases within the # class declaration that don't meet the C++ style # guidelines. Tracking is very dependent on the code matching Google # style guidelines, but it seems to perform well enough in testing # to be a worthwhile addition to the checks. classinfo_stack = class_state.classinfo_stack # Look for a class declaration class_decl_match = Match( r'\s*(template\s*<[\w\s<>,:]*>\s*)?(class|struct)\s+(\w+(::\w+)*)', line) if class_decl_match: classinfo_stack.append(_ClassInfo(class_decl_match.group(3), linenum)) # Everything else in this function uses the top of the stack if it's # not empty. if not classinfo_stack: return classinfo = classinfo_stack[-1] # If the opening brace hasn't been seen look for it and also # parent class declarations. if not classinfo.seen_open_brace: # If the line has a ';' in it, assume it's a forward declaration or # a single-line class declaration, which we won't process. if line.find(';') != -1: classinfo_stack.pop() return classinfo.seen_open_brace = (line.find('{') != -1) # Look for a bare ':' if Search('(^|[^:]):($|[^:])', line): classinfo.is_derived = True if not classinfo.seen_open_brace: return # Everything else in this function is for after open brace # The class may have been declared with namespace or classname qualifiers. # The constructor and destructor will not have those qualifiers. base_classname = classinfo.name.split('::')[-1] # Look for single-argument constructors that aren't marked explicit. # Technically a valid construct, but against style. args = Match(r'(? 1: error(filename, linenum, 'whitespace/todo', 2, 'Too many spaces before TODO') username = match.group(2) if not username: error(filename, linenum, 'readability/todo', 2, 'Missing username in TODO; it should look like ' '"// TODO(my_username): Stuff."') middle_whitespace = match.group(3) # Comparisons made explicit for correctness -- pylint: disable-msg=C6403 if middle_whitespace != ' ' and middle_whitespace != '': error(filename, linenum, 'whitespace/todo', 2, 'TODO(my_username) should be followed by a space') def CheckSpacing(filename, clean_lines, linenum, error): """Checks for the correctness of various spacing issues in the code. Things we check for: spaces around operators, spaces after if/for/while/switch, no spaces around parens in function calls, two spaces between code and comment, don't start a block with a blank line, don't end a function with a blank line, don't have too many blank lines in a row. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. error: The function to call with any errors found. """ raw = clean_lines.raw_lines line = raw[linenum] # Before nixing comments, check if the line is blank for no good # reason. This includes the first line after a block is opened, and # blank lines at the end of a function (ie, right before a line like '}' if IsBlankLine(line): elided = clean_lines.elided prev_line = elided[linenum - 1] prevbrace = prev_line.rfind('{') # TODO(unknown): Don't complain if line before blank line, and line after, # both start with alnums and are indented the same amount. # This ignores whitespace at the start of a namespace block # because those are not usually indented. if (prevbrace != -1 and prev_line[prevbrace:].find('}') == -1 and prev_line[:prevbrace].find('namespace') == -1): # OK, we have a blank line at the start of a code block. Before we # complain, we check if it is an exception to the rule: The previous # non-empty line has the paramters of a function header that are indented # 4 spaces (because they did not fit in a 80 column line when placed on # the same line as the function name). We also check for the case where # the previous line is indented 6 spaces, which may happen when the # initializers of a constructor do not fit into a 80 column line. exception = False if Match(r' {6}\w', prev_line): # Initializer list? # We are looking for the opening column of initializer list, which # should be indented 4 spaces to cause 6 space indentation afterwards. search_position = linenum-2 while (search_position >= 0 and Match(r' {6}\w', elided[search_position])): search_position -= 1 exception = (search_position >= 0 and elided[search_position][:5] == ' :') else: # Search for the function arguments or an initializer list. We use a # simple heuristic here: If the line is indented 4 spaces; and we have a # closing paren, without the opening paren, followed by an opening brace # or colon (for initializer lists) we assume that it is the last line of # a function header. If we have a colon indented 4 spaces, it is an # initializer list. exception = (Match(r' {4}\w[^\(]*\)\s*(const\s*)?(\{\s*$|:)', prev_line) or Match(r' {4}:', prev_line)) if not exception: error(filename, linenum, 'whitespace/blank_line', 2, 'Blank line at the start of a code block. Is this needed?') # This doesn't ignore whitespace at the end of a namespace block # because that is too hard without pairing open/close braces; # however, a special exception is made for namespace closing # brackets which have a comment containing "namespace". # # Also, ignore blank lines at the end of a block in a long if-else # chain, like this: # if (condition1) { # // Something followed by a blank line # # } else if (condition2) { # // Something else # } if linenum + 1 < clean_lines.NumLines(): next_line = raw[linenum + 1] if (next_line and Match(r'\s*}', next_line) and next_line.find('namespace') == -1 and next_line.find('} else ') == -1): error(filename, linenum, 'whitespace/blank_line', 3, 'Blank line at the end of a code block. Is this needed?') # Next, we complain if there's a comment too near the text commentpos = line.find('//') if commentpos != -1: # Check if the // may be in quotes. If so, ignore it # Comparisons made explicit for clarity -- pylint: disable-msg=C6403 if (line.count('"', 0, commentpos) - line.count('\\"', 0, commentpos)) % 2 == 0: # not in quotes # Allow one space for new scopes, two spaces otherwise: if (not Match(r'^\s*{ //', line) and ((commentpos >= 1 and line[commentpos-1] not in string.whitespace) or (commentpos >= 2 and line[commentpos-2] not in string.whitespace))): error(filename, linenum, 'whitespace/comments', 2, 'At least two spaces is best between code and comments') # There should always be a space between the // and the comment commentend = commentpos + 2 if commentend < len(line) and not line[commentend] == ' ': # but some lines are exceptions -- e.g. if they're big # comment delimiters like: # //---------------------------------------------------------- # or are an empty C++ style Doxygen comment, like: # /// # or they begin with multiple slashes followed by a space: # //////// Header comment match = (Search(r'[=/-]{4,}\s*$', line[commentend:]) or Search(r'^/$', line[commentend:]) or Search(r'^/+ ', line[commentend:])) if not match: error(filename, linenum, 'whitespace/comments', 4, 'Should have a space between // and comment') CheckComment(line[commentpos:], filename, linenum, error) line = clean_lines.elided[linenum] # get rid of comments and strings # Don't try to do spacing checks for operator methods line = re.sub(r'operator(==|!=|<|<<|<=|>=|>>|>)\(', 'operator\(', line) # We allow no-spaces around = within an if: "if ( (a=Foo()) == 0 )". # Otherwise not. Note we only check for non-spaces on *both* sides; # sometimes people put non-spaces on one side when aligning ='s among # many lines (not that this is behavior that I approve of...) if Search(r'[\w.]=[\w.]', line) and not Search(r'\b(if|while) ', line): error(filename, linenum, 'whitespace/operators', 4, 'Missing spaces around =') # It's ok not to have spaces around binary operators like + - * /, but if # there's too little whitespace, we get concerned. It's hard to tell, # though, so we punt on this one for now. TODO. # You should always have whitespace around binary operators. # Alas, we can't test < or > because they're legitimately used sans spaces # (a->b, vector a). The only time we can tell is a < with no >, and # only if it's not template params list spilling into the next line. match = Search(r'[^<>=!\s](==|!=|<=|>=)[^<>=!\s]', line) if not match: # Note that while it seems that the '<[^<]*' term in the following # regexp could be simplified to '<.*', which would indeed match # the same class of strings, the [^<] means that searching for the # regexp takes linear rather than quadratic time. if not Search(r'<[^<]*,\s*$', line): # template params spill match = Search(r'[^<>=!\s](<)[^<>=!\s]([^>]|->)*$', line) if match: error(filename, linenum, 'whitespace/operators', 3, 'Missing spaces around %s' % match.group(1)) # We allow no-spaces around << and >> when used like this: 10<<20, but # not otherwise (particularly, not when used as streams) match = Search(r'[^0-9\s](<<|>>)[^0-9\s]', line) if match: error(filename, linenum, 'whitespace/operators', 3, 'Missing spaces around %s' % match.group(1)) # There shouldn't be space around unary operators match = Search(r'(!\s|~\s|[\s]--[\s;]|[\s]\+\+[\s;])', line) if match: error(filename, linenum, 'whitespace/operators', 4, 'Extra space for operator %s' % match.group(1)) # A pet peeve of mine: no spaces after an if, while, switch, or for match = Search(r' (if\(|for\(|while\(|switch\()', line) if match: error(filename, linenum, 'whitespace/parens', 5, 'Missing space before ( in %s' % match.group(1)) # For if/for/while/switch, the left and right parens should be # consistent about how many spaces are inside the parens, and # there should either be zero or one spaces inside the parens. # We don't want: "if ( foo)" or "if ( foo )". # Exception: "for ( ; foo; bar)" and "for (foo; bar; )" are allowed. match = Search(r'\b(if|for|while|switch)\s*' r'\(([ ]*)(.).*[^ ]+([ ]*)\)\s*{\s*$', line) if match: if len(match.group(2)) != len(match.group(4)): if not (match.group(3) == ';' and len(match.group(2)) == 1 + len(match.group(4)) or not match.group(2) and Search(r'\bfor\s*\(.*; \)', line)): error(filename, linenum, 'whitespace/parens', 5, 'Mismatching spaces inside () in %s' % match.group(1)) if not len(match.group(2)) in [0, 1]: error(filename, linenum, 'whitespace/parens', 5, 'Should have zero or one spaces inside ( and ) in %s' % match.group(1)) # You should always have a space after a comma (either as fn arg or operator) if Search(r',[^\s]', line): error(filename, linenum, 'whitespace/comma', 3, 'Missing space after ,') # Next we will look for issues with function calls. CheckSpacingForFunctionCall(filename, line, linenum, error) # Except after an opening paren, you should have spaces before your braces. # And since you should never have braces at the beginning of a line, this is # an easy test. if Search(r'[^ (]{', line): error(filename, linenum, 'whitespace/braces', 5, 'Missing space before {') # Make sure '} else {' has spaces. if Search(r'}else', line): error(filename, linenum, 'whitespace/braces', 5, 'Missing space before else') # You shouldn't have spaces before your brackets, except maybe after # 'delete []' or 'new char * []'. if Search(r'\w\s+\[', line) and not Search(r'delete\s+\[', line): error(filename, linenum, 'whitespace/braces', 5, 'Extra space before [') # You shouldn't have a space before a semicolon at the end of the line. # There's a special case for "for" since the style guide allows space before # the semicolon there. if Search(r':\s*;\s*$', line): error(filename, linenum, 'whitespace/semicolon', 5, 'Semicolon defining empty statement. Use { } instead.') elif Search(r'^\s*;\s*$', line): error(filename, linenum, 'whitespace/semicolon', 5, 'Line contains only semicolon. If this should be an empty statement, ' 'use { } instead.') elif (Search(r'\s+;\s*$', line) and not Search(r'\bfor\b', line)): error(filename, linenum, 'whitespace/semicolon', 5, 'Extra space before last semicolon. If this should be an empty ' 'statement, use { } instead.') def GetPreviousNonBlankLine(clean_lines, linenum): """Return the most recent non-blank line and its line number. Args: clean_lines: A CleansedLines instance containing the file contents. linenum: The number of the line to check. Returns: A tuple with two elements. The first element is the contents of the last non-blank line before the current line, or the empty string if this is the first non-blank line. The second is the line number of that line, or -1 if this is the first non-blank line. """ prevlinenum = linenum - 1 while prevlinenum >= 0: prevline = clean_lines.elided[prevlinenum] if not IsBlankLine(prevline): # if not a blank line... return (prevline, prevlinenum) prevlinenum -= 1 return ('', -1) def CheckBraces(filename, clean_lines, linenum, error): """Looks for misplaced braces (e.g. at the end of line). Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. error: The function to call with any errors found. """ line = clean_lines.elided[linenum] # get rid of comments and strings if Match(r'\s*{\s*$', line): # We allow an open brace to start a line in the case where someone # is using braces in a block to explicitly create a new scope, # which is commonly used to control the lifetime of # stack-allocated variables. We don't detect this perfectly: we # just don't complain if the last non-whitespace character on the # previous non-blank line is ';', ':', '{', or '}'. prevline = GetPreviousNonBlankLine(clean_lines, linenum)[0] if not Search(r'[;:}{]\s*$', prevline): error(filename, linenum, 'whitespace/braces', 4, '{ should almost always be at the end of the previous line') # An else clause should be on the same line as the preceding closing brace. if Match(r'\s*else\s*', line): prevline = GetPreviousNonBlankLine(clean_lines, linenum)[0] if Match(r'\s*}\s*$', prevline): error(filename, linenum, 'whitespace/newline', 4, 'An else should appear on the same line as the preceding }') # If braces come on one side of an else, they should be on both. # However, we have to worry about "else if" that spans multiple lines! if Search(r'}\s*else[^{]*$', line) or Match(r'[^}]*else\s*{', line): if Search(r'}\s*else if([^{]*)$', line): # could be multi-line if # find the ( after the if pos = line.find('else if') pos = line.find('(', pos) if pos > 0: (endline, _, endpos) = CloseExpression(clean_lines, linenum, pos) if endline[endpos:].find('{') == -1: # must be brace after if error(filename, linenum, 'readability/braces', 5, 'If an else has a brace on one side, it should have it on both') else: # common case: else not followed by a multi-line if error(filename, linenum, 'readability/braces', 5, 'If an else has a brace on one side, it should have it on both') # Likewise, an else should never have the else clause on the same line if Search(r'\belse [^\s{]', line) and not Search(r'\belse if\b', line): error(filename, linenum, 'whitespace/newline', 4, 'Else clause should never be on same line as else (use 2 lines)') # In the same way, a do/while should never be on one line if Match(r'\s*do [^\s{]', line): error(filename, linenum, 'whitespace/newline', 4, 'do/while clauses should not be on a single line') # Braces shouldn't be followed by a ; unless they're defining a struct # or initializing an array. # We can't tell in general, but we can for some common cases. prevlinenum = linenum while True: (prevline, prevlinenum) = GetPreviousNonBlankLine(clean_lines, prevlinenum) if Match(r'\s+{.*}\s*;', line) and not prevline.count(';'): line = prevline + line else: break if (Search(r'{.*}\s*;', line) and line.count('{') == line.count('}') and not Search(r'struct|class|enum|\s*=\s*{', line)): error(filename, linenum, 'readability/braces', 4, "You don't need a ; after a }") def ReplaceableCheck(operator, macro, line): """Determine whether a basic CHECK can be replaced with a more specific one. For example suggest using CHECK_EQ instead of CHECK(a == b) and similarly for CHECK_GE, CHECK_GT, CHECK_LE, CHECK_LT, CHECK_NE. Args: operator: The C++ operator used in the CHECK. macro: The CHECK or EXPECT macro being called. line: The current source line. Returns: True if the CHECK can be replaced with a more specific one. """ # This matches decimal and hex integers, strings, and chars (in that order). match_constant = r'([-+]?(\d+|0[xX][0-9a-fA-F]+)[lLuU]{0,3}|".*"|\'.*\')' # Expression to match two sides of the operator with something that # looks like a literal, since CHECK(x == iterator) won't compile. # This means we can't catch all the cases where a more specific # CHECK is possible, but it's less annoying than dealing with # extraneous warnings. match_this = (r'\s*' + macro + r'\((\s*' + match_constant + r'\s*' + operator + r'[^<>].*|' r'.*[^<>]' + operator + r'\s*' + match_constant + r'\s*\))') # Don't complain about CHECK(x == NULL) or similar because # CHECK_EQ(x, NULL) won't compile (requires a cast). # Also, don't complain about more complex boolean expressions # involving && or || such as CHECK(a == b || c == d). return Match(match_this, line) and not Search(r'NULL|&&|\|\|', line) def CheckCheck(filename, clean_lines, linenum, error): """Checks the use of CHECK and EXPECT macros. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. error: The function to call with any errors found. """ # Decide the set of replacement macros that should be suggested raw_lines = clean_lines.raw_lines current_macro = '' for macro in _CHECK_MACROS: if raw_lines[linenum].find(macro) >= 0: current_macro = macro break if not current_macro: # Don't waste time here if line doesn't contain 'CHECK' or 'EXPECT' return line = clean_lines.elided[linenum] # get rid of comments and strings # Encourage replacing plain CHECKs with CHECK_EQ/CHECK_NE/etc. for operator in ['==', '!=', '>=', '>', '<=', '<']: if ReplaceableCheck(operator, current_macro, line): error(filename, linenum, 'readability/check', 2, 'Consider using %s instead of %s(a %s b)' % ( _CHECK_REPLACEMENT[current_macro][operator], current_macro, operator)) break def GetLineWidth(line): """Determines the width of the line in column positions. Args: line: A string, which may be a Unicode string. Returns: The width of the line in column positions, accounting for Unicode combining characters and wide characters. """ if isinstance(line, unicode): width = 0 for c in unicodedata.normalize('NFC', line): if unicodedata.east_asian_width(c) in ('W', 'F'): width += 2 elif not unicodedata.combining(c): width += 1 return width else: return len(line) def CheckStyle(filename, clean_lines, linenum, file_extension, error): """Checks rules from the 'C++ style rules' section of cppguide.html. Most of these rules are hard to test (naming, comment style), but we do what we can. In particular we check for 2-space indents, line lengths, tab usage, spaces inside code, etc. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. file_extension: The extension (without the dot) of the filename. error: The function to call with any errors found. """ raw_lines = clean_lines.raw_lines line = raw_lines[linenum] if line.find('\t') != -1: error(filename, linenum, 'whitespace/tab', 1, 'Tab found; better to use spaces') # One or three blank spaces at the beginning of the line is weird; it's # hard to reconcile that with 2-space indents. # NOTE: here are the conditions rob pike used for his tests. Mine aren't # as sophisticated, but it may be worth becoming so: RLENGTH==initial_spaces # if(RLENGTH > 20) complain = 0; # if(match($0, " +(error|private|public|protected):")) complain = 0; # if(match(prev, "&& *$")) complain = 0; # if(match(prev, "\\|\\| *$")) complain = 0; # if(match(prev, "[\",=><] *$")) complain = 0; # if(match($0, " <<")) complain = 0; # if(match(prev, " +for \\(")) complain = 0; # if(prevodd && match(prevprev, " +for \\(")) complain = 0; initial_spaces = 0 cleansed_line = clean_lines.elided[linenum] while initial_spaces < len(line) and line[initial_spaces] == ' ': initial_spaces += 1 if line and line[-1].isspace(): error(filename, linenum, 'whitespace/end_of_line', 4, 'Line ends in whitespace. Consider deleting these extra spaces.') # There are certain situations we allow one space, notably for labels elif ((initial_spaces == 1 or initial_spaces == 3) and not Match(r'\s*\w+\s*\w*\s*:\s*$', cleansed_line)): error(filename, linenum, 'whitespace/indent', 3, 'Weird number of spaces at line-start. ' 'Are you using a 2-space indent?') # Labels should always be indented at least one space. elif not initial_spaces and line[:2] != '//' and Search(r'[^:]:\s*$', line): error(filename, linenum, 'whitespace/labels', 4, 'Labels should always be indented at least one space. ' 'If this is a member-initializer list in a constructor or ' 'the base class list in a class definition, the colon should ' 'be on the following line.') # Check if the line is a header guard. is_header_guard = False if file_extension == 'h': cppvar = GetHeaderGuardCPPVariable(filename) if (line.startswith('#ifndef %s' % cppvar) or line.startswith('#define %s' % cppvar) or line.startswith('#endif // %s' % cppvar)): is_header_guard = True # #include lines and header guards can be long, since there's no clean way to # split them. # # URLs can be long too. It's possible to split these, but it makes them # harder to cut&paste. if (not line.startswith('#include') and not is_header_guard and not Match(r'^\s*//.*http(s?)://\S*$', line)): line_width = GetLineWidth(line) if line_width > 100: error(filename, linenum, 'whitespace/line_length', 4, 'Lines should very rarely be longer than 100 characters') elif line_width > 80: error(filename, linenum, 'whitespace/line_length', 2, 'Lines should be <= 80 characters long') if (cleansed_line.count(';') > 1 and # for loops are allowed two ;'s (and may run over two lines). cleansed_line.find('for') == -1 and (GetPreviousNonBlankLine(clean_lines, linenum)[0].find('for') == -1 or GetPreviousNonBlankLine(clean_lines, linenum)[0].find(';') != -1) and # It's ok to have many commands in a switch case that fits in 1 line not ((cleansed_line.find('case ') != -1 or cleansed_line.find('default:') != -1) and cleansed_line.find('break;') != -1)): error(filename, linenum, 'whitespace/newline', 4, 'More than one command on the same line') # Some more style checks CheckBraces(filename, clean_lines, linenum, error) CheckSpacing(filename, clean_lines, linenum, error) CheckCheck(filename, clean_lines, linenum, error) _RE_PATTERN_INCLUDE_NEW_STYLE = re.compile(r'#include +"[^/]+\.h"') _RE_PATTERN_INCLUDE = re.compile(r'^\s*#\s*include\s*([<"])([^>"]*)[>"].*$') # Matches the first component of a filename delimited by -s and _s. That is: # _RE_FIRST_COMPONENT.match('foo').group(0) == 'foo' # _RE_FIRST_COMPONENT.match('foo.cc').group(0) == 'foo' # _RE_FIRST_COMPONENT.match('foo-bar_baz.cc').group(0) == 'foo' # _RE_FIRST_COMPONENT.match('foo_bar-baz.cc').group(0) == 'foo' _RE_FIRST_COMPONENT = re.compile(r'^[^-_.]+') def _DropCommonSuffixes(filename): """Drops common suffixes like _test.cc or -inl.h from filename. For example: >>> _DropCommonSuffixes('foo/foo-inl.h') 'foo/foo' >>> _DropCommonSuffixes('foo/bar/foo.cc') 'foo/bar/foo' >>> _DropCommonSuffixes('foo/foo_internal.h') 'foo/foo' >>> _DropCommonSuffixes('foo/foo_unusualinternal.h') 'foo/foo_unusualinternal' Args: filename: The input filename. Returns: The filename with the common suffix removed. """ for suffix in ('test.cc', 'regtest.cc', 'unittest.cc', 'inl.h', 'impl.h', 'internal.h'): if (filename.endswith(suffix) and len(filename) > len(suffix) and filename[-len(suffix) - 1] in ('-', '_')): return filename[:-len(suffix) - 1] return os.path.splitext(filename)[0] def _IsTestFilename(filename): """Determines if the given filename has a suffix that identifies it as a test. Args: filename: The input filename. Returns: True if 'filename' looks like a test, False otherwise. """ if (filename.endswith('_test.cc') or filename.endswith('_unittest.cc') or filename.endswith('_regtest.cc')): return True else: return False def _ClassifyInclude(fileinfo, include, is_system): """Figures out what kind of header 'include' is. Args: fileinfo: The current file cpplint is running over. A FileInfo instance. include: The path to a #included file. is_system: True if the #include used <> rather than "". Returns: One of the _XXX_HEADER constants. For example: >>> _ClassifyInclude(FileInfo('foo/foo.cc'), 'stdio.h', True) _C_SYS_HEADER >>> _ClassifyInclude(FileInfo('foo/foo.cc'), 'string', True) _CPP_SYS_HEADER >>> _ClassifyInclude(FileInfo('foo/foo.cc'), 'foo/foo.h', False) _LIKELY_MY_HEADER >>> _ClassifyInclude(FileInfo('foo/foo_unknown_extension.cc'), ... 'bar/foo_other_ext.h', False) _POSSIBLE_MY_HEADER >>> _ClassifyInclude(FileInfo('foo/foo.cc'), 'foo/bar.h', False) _OTHER_HEADER """ # This is a list of all standard c++ header files, except # those already checked for above. is_stl_h = include in _STL_HEADERS is_cpp_h = is_stl_h or include in _CPP_HEADERS if is_system: if is_cpp_h: return _CPP_SYS_HEADER else: return _C_SYS_HEADER # If the target file and the include we're checking share a # basename when we drop common extensions, and the include # lives in . , then it's likely to be owned by the target file. target_dir, target_base = ( os.path.split(_DropCommonSuffixes(fileinfo.RepositoryName()))) include_dir, include_base = os.path.split(_DropCommonSuffixes(include)) if target_base == include_base and ( include_dir == target_dir or include_dir == os.path.normpath(target_dir + '/../public')): return _LIKELY_MY_HEADER # If the target and include share some initial basename # component, it's possible the target is implementing the # include, so it's allowed to be first, but we'll never # complain if it's not there. target_first_component = _RE_FIRST_COMPONENT.match(target_base) include_first_component = _RE_FIRST_COMPONENT.match(include_base) if (target_first_component and include_first_component and target_first_component.group(0) == include_first_component.group(0)): return _POSSIBLE_MY_HEADER return _OTHER_HEADER def CheckIncludeLine(filename, clean_lines, linenum, include_state, error): """Check rules that are applicable to #include lines. Strings on #include lines are NOT removed from elided line, to make certain tasks easier. However, to prevent false positives, checks applicable to #include lines in CheckLanguage must be put here. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. include_state: An _IncludeState instance in which the headers are inserted. error: The function to call with any errors found. """ fileinfo = FileInfo(filename) line = clean_lines.lines[linenum] # OIF_QML: ignored # "include" should use the new style "foo/bar.h" instead of just "bar.h" #if _RE_PATTERN_INCLUDE_NEW_STYLE.search(line): # error(filename, linenum, 'build/include', 4, # 'Include the directory when naming .h files') # we shouldn't include a file more than once. actually, there are a # handful of instances where doing so is okay, but in general it's # not. match = _RE_PATTERN_INCLUDE.search(line) if match: include = match.group(2) is_system = (match.group(1) == '<') if include in include_state: error(filename, linenum, 'build/include', 4, '"%s" already included at %s:%s' % (include, filename, include_state[include])) else: include_state[include] = linenum # We want to ensure that headers appear in the right order: # 1) for foo.cc, foo.h (preferred location) # 2) c system files # 3) cpp system files # 4) for foo.cc, foo.h (deprecated location) # 5) other google headers # # We classify each include statement as one of those 5 types # using a number of techniques. The include_state object keeps # track of the highest type seen, and complains if we see a # lower type after that. error_message = include_state.CheckNextIncludeOrder( _ClassifyInclude(fileinfo, include, is_system)) if error_message: error(filename, linenum, 'build/include_order', 4, '%s. Should be: %s.h, c system, c++ system, other.' % (error_message, fileinfo.BaseName())) if not include_state.IsInAlphabeticalOrder(include): error(filename, linenum, 'build/include_alpha', 4, 'Include "%s" not in alphabetical order' % include) # Look for any of the stream classes that are part of standard C++. match = _RE_PATTERN_INCLUDE.match(line) if match: include = match.group(2) if Match(r'(f|ind|io|i|o|parse|pf|stdio|str|)?stream$', include): # Many unit tests use cout, so we exempt them. if not _IsTestFilename(filename): error(filename, linenum, 'readability/streams', 3, 'Streams are highly discouraged.') def CheckLanguage(filename, clean_lines, linenum, file_extension, include_state, error): """Checks rules from the 'C++ language rules' section of cppguide.html. Some of these rules are hard to test (function overloading, using uint32 inappropriately), but we do the best we can. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. file_extension: The extension (without the dot) of the filename. include_state: An _IncludeState instance in which the headers are inserted. error: The function to call with any errors found. """ # If the line is empty or consists of entirely a comment, no need to # check it. line = clean_lines.elided[linenum] if not line: return match = _RE_PATTERN_INCLUDE.search(line) if match: CheckIncludeLine(filename, clean_lines, linenum, include_state, error) return # Create an extended_line, which is the concatenation of the current and # next lines, for more effective checking of code that may span more than one # line. if linenum + 1 < clean_lines.NumLines(): extended_line = line + clean_lines.elided[linenum + 1] else: extended_line = line # Make Windows paths like Unix. fullname = os.path.abspath(filename).replace('\\', '/') # TODO(unknown): figure out if they're using default arguments in fn proto. # Check for non-const references in functions. This is tricky because & # is also used to take the address of something. We allow <> for templates, # (ignoring whatever is between the braces) and : for classes. # These are complicated re's. They try to capture the following: # paren (for fn-prototype start), typename, &, varname. For the const # version, we're willing for const to be before typename or after # Don't check the implemention on same line. fnline = line.split('{', 1)[0] if (len(re.findall(r'\([^()]*\b(?:[\w:]|<[^()]*>)+(\s?&|&\s?)\w+', fnline)) > len(re.findall(r'\([^()]*\bconst\s+(?:typename\s+)?(?:struct\s+)?' r'(?:[\w:]|<[^()]*>)+(\s?&|&\s?)\w+', fnline)) + len(re.findall(r'\([^()]*\b(?:[\w:]|<[^()]*>)+\s+const(\s?&|&\s?)[\w]+', fnline))): # We allow non-const references in a few standard places, like functions # called "swap()" or iostream operators like "<<" or ">>". if not Search( r'(swap|Swap|operator[<>][<>])\s*\(\s*(?:[\w:]|<.*>)+\s*&', fnline): error(filename, linenum, 'runtime/references', 2, 'Is this a non-const reference? ' 'If so, make const or use a pointer.') # Check to see if they're using an conversion function cast. # I just try to capture the most common basic types, though there are more. # Parameterless conversion functions, such as bool(), are allowed as they are # probably a member operator declaration or default constructor. match = Search( r'(\bnew\s+)?\b' # Grab 'new' operator, if it's there r'(int|float|double|bool|char|int32|uint32|int64|uint64)\([^)]', line) if match: # gMock methods are defined using some variant of MOCK_METHODx(name, type) # where type may be float(), int(string), etc. Without context they are # virtually indistinguishable from int(x) casts. if (match.group(1) is None and # If new operator, then this isn't a cast not Match(r'^\s*MOCK_(CONST_)?METHOD\d+(_T)?\(', line)): error(filename, linenum, 'readability/casting', 4, 'Using deprecated casting style. ' 'Use static_cast<%s>(...) instead' % match.group(2)) CheckCStyleCast(filename, linenum, line, clean_lines.raw_lines[linenum], 'static_cast', r'\((int|float|double|bool|char|u?int(16|32|64))\)', error) # This doesn't catch all cases. Consider (const char * const)"hello". CheckCStyleCast(filename, linenum, line, clean_lines.raw_lines[linenum], 'reinterpret_cast', r'\((\w+\s?\*+\s?)\)', error) # In addition, we look for people taking the address of a cast. This # is dangerous -- casts can assign to temporaries, so the pointer doesn't # point where you think. if Search( r'(&\([^)]+\)[\w(])|(&(static|dynamic|reinterpret)_cast\b)', line): error(filename, linenum, 'runtime/casting', 4, ('Are you taking an address of a cast? ' 'This is dangerous: could be a temp var. ' 'Take the address before doing the cast, rather than after')) # Check for people declaring static/global STL strings at the top level. # This is dangerous because the C++ language does not guarantee that # globals with constructors are initialized before the first access. match = Match( r'((?:|static +)(?:|const +))string +([a-zA-Z0-9_:]+)\b(.*)', line) # Make sure it's not a function. # Function template specialization looks like: "string foo(...". # Class template definitions look like: "string Foo::Method(...". if match and not Match(r'\s*(<.*>)?(::[a-zA-Z0-9_]+)?\s*\(([^"]|$)', match.group(3)): error(filename, linenum, 'runtime/string', 4, 'For a static/global string constant, use a C style string instead: ' '"%schar %s[]".' % (match.group(1), match.group(2))) # Check that we're not using RTTI outside of testing code. if Search(r'\bdynamic_cast<', line) and not _IsTestFilename(filename): error(filename, linenum, 'runtime/rtti', 5, 'Do not use dynamic_cast<>. If you need to cast within a class ' "hierarchy, use static_cast<> to upcast. Google doesn't support " 'RTTI.') if Search(r'\b([A-Za-z0-9_]*_)\(\1\)', line): error(filename, linenum, 'runtime/init', 4, 'You seem to be initializing a member variable with itself.') if file_extension == 'h': # TODO(unknown): check that 1-arg constructors are explicit. # How to tell it's a constructor? # (handled in CheckForNonStandardConstructs for now) # TODO(unknown): check that classes have DISALLOW_EVIL_CONSTRUCTORS # (level 1 error) pass # Check if people are using the verboten C basic types. The only exception # we regularly allow is "unsigned short port" for port. if Search(r'\bshort port\b', line): if not Search(r'\bunsigned short port\b', line): error(filename, linenum, 'runtime/int', 4, 'Use "unsigned short" for ports, not "short"') else: match = Search(r'\b(short|long(?! +double)|long long)\b', line) if match: error(filename, linenum, 'runtime/int', 4, 'Use int16/int64/etc, rather than the C type %s' % match.group(1)) # When snprintf is used, the second argument shouldn't be a literal. match = Search(r'snprintf\s*\(([^,]*),\s*([0-9]*)\s*,', line) if match and match.group(2) != '0': # If 2nd arg is zero, snprintf is used to calculate size. error(filename, linenum, 'runtime/printf', 3, 'If you can, use sizeof(%s) instead of %s as the 2nd arg ' 'to snprintf.' % (match.group(1), match.group(2))) # Check if some verboten C functions are being used. if Search(r'\bsprintf\b', line): error(filename, linenum, 'runtime/printf', 5, 'Never use sprintf. Use snprintf instead.') match = Search(r'\b(strcpy|strcat)\b', line) if match: error(filename, linenum, 'runtime/printf', 4, 'Almost always, snprintf is better than %s' % match.group(1)) if Search(r'\bsscanf\b', line): error(filename, linenum, 'runtime/printf', 1, 'sscanf can be ok, but is slow and can overflow buffers.') # Check if some verboten operator overloading is going on # TODO(unknown): catch out-of-line unary operator&: # class X {}; # int operator&(const X& x) { return 42; } // unary operator& # The trick is it's hard to tell apart from binary operator&: # class Y { int operator&(const Y& x) { return 23; } }; // binary operator& if Search(r'\boperator\s*&\s*\(\s*\)', line): error(filename, linenum, 'runtime/operator', 4, 'Unary operator& is dangerous. Do not use it.') # Check for suspicious usage of "if" like # } if (a == b) { if Search(r'\}\s*if\s*\(', line): error(filename, linenum, 'readability/braces', 4, 'Did you mean "else if"? If not, start a new line for "if".') # Check for potential format string bugs like printf(foo). # We constrain the pattern not to pick things like DocidForPrintf(foo). # Not perfect but it can catch printf(foo.c_str()) and printf(foo->c_str()) match = re.search(r'\b((?:string)?printf)\s*\(([\w.\->()]+)\)', line, re.I) if match: error(filename, linenum, 'runtime/printf', 4, 'Potential format string bug. Do %s("%%s", %s) instead.' % (match.group(1), match.group(2))) # Check for potential memset bugs like memset(buf, sizeof(buf), 0). match = Search(r'memset\s*\(([^,]*),\s*([^,]*),\s*0\s*\)', line) if match and not Match(r"^''|-?[0-9]+|0x[0-9A-Fa-f]$", match.group(2)): error(filename, linenum, 'runtime/memset', 4, 'Did you mean "memset(%s, 0, %s)"?' % (match.group(1), match.group(2))) if Search(r'\busing namespace\b', line): error(filename, linenum, 'build/namespaces', 5, 'Do not use namespace using-directives. ' 'Use using-declarations instead.') # Detect variable-length arrays. match = Match(r'\s*(.+::)?(\w+) [a-z]\w*\[(.+)];', line) if (match and match.group(2) != 'return' and match.group(2) != 'delete' and match.group(3).find(']') == -1): # Split the size using space and arithmetic operators as delimiters. # If any of the resulting tokens are not compile time constants then # report the error. tokens = re.split(r'\s|\+|\-|\*|\/|<<|>>]', match.group(3)) is_const = True skip_next = False for tok in tokens: if skip_next: skip_next = False continue if Search(r'sizeof\(.+\)', tok): continue if Search(r'arraysize\(\w+\)', tok): continue tok = tok.lstrip('(') tok = tok.rstrip(')') if not tok: continue if Match(r'\d+', tok): continue if Match(r'0[xX][0-9a-fA-F]+', tok): continue if Match(r'k[A-Z0-9]\w*', tok): continue if Match(r'(.+::)?k[A-Z0-9]\w*', tok): continue if Match(r'(.+::)?[A-Z][A-Z0-9_]*', tok): continue # A catch all for tricky sizeof cases, including 'sizeof expression', # 'sizeof(*type)', 'sizeof(const type)', 'sizeof(struct StructName)' # requires skipping the next token becasue we split on ' ' and '*'. if tok.startswith('sizeof'): skip_next = True continue is_const = False break if not is_const: error(filename, linenum, 'runtime/arrays', 1, 'Do not use variable-length arrays. Use an appropriately named ' "('k' followed by CamelCase) compile-time constant for the size.") # If DISALLOW_EVIL_CONSTRUCTORS, DISALLOW_COPY_AND_ASSIGN, or # DISALLOW_IMPLICIT_CONSTRUCTORS is present, then it should be the last thing # in the class declaration. match = Match( (r'\s*' r'(DISALLOW_(EVIL_CONSTRUCTORS|COPY_AND_ASSIGN|IMPLICIT_CONSTRUCTORS))' r'\(.*\);$'), line) if match and linenum + 1 < clean_lines.NumLines(): next_line = clean_lines.elided[linenum + 1] if not Search(r'^\s*};', next_line): error(filename, linenum, 'readability/constructors', 3, match.group(1) + ' should be the last thing in the class') # Check for use of unnamed namespaces in header files. Registration # macros are typically OK, so we allow use of "namespace {" on lines # that end with backslashes. if (file_extension == 'h' and Search(r'\bnamespace\s*{', line) and line[-1] != '\\'): error(filename, linenum, 'build/namespaces', 4, 'Do not use unnamed namespaces in header files. See ' 'http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Namespaces' ' for more information.') def CheckCStyleCast(filename, linenum, line, raw_line, cast_type, pattern, error): """Checks for a C-style cast by looking for the pattern. This also handles sizeof(type) warnings, due to similarity of content. Args: filename: The name of the current file. linenum: The number of the line to check. line: The line of code to check. raw_line: The raw line of code to check, with comments. cast_type: The string for the C++ cast to recommend. This is either reinterpret_cast or static_cast, depending. pattern: The regular expression used to find C-style casts. error: The function to call with any errors found. """ match = Search(pattern, line) if not match: return # e.g., sizeof(int) sizeof_match = Match(r'.*sizeof\s*$', line[0:match.start(1) - 1]) if sizeof_match: error(filename, linenum, 'runtime/sizeof', 1, 'Using sizeof(type). Use sizeof(varname) instead if possible') return remainder = line[match.end(0):] # The close paren is for function pointers as arguments to a function. # eg, void foo(void (*bar)(int)); # The semicolon check is a more basic function check; also possibly a # function pointer typedef. # eg, void foo(int); or void foo(int) const; # The equals check is for function pointer assignment. # eg, void *(*foo)(int) = ... # # Right now, this will only catch cases where there's a single argument, and # it's unnamed. It should probably be expanded to check for multiple # arguments with some unnamed. function_match = Match(r'\s*(\)|=|(const)?\s*(;|\{|throw\(\)))', remainder) if function_match: if (not function_match.group(3) or function_match.group(3) == ';' or raw_line.find('/*') < 0): error(filename, linenum, 'readability/function', 3, 'All parameters should be named in a function') return # At this point, all that should be left is actual casts. error(filename, linenum, 'readability/casting', 4, 'Using C-style cast. Use %s<%s>(...) instead' % (cast_type, match.group(1))) _HEADERS_CONTAINING_TEMPLATES = ( ('', ('deque',)), ('', ('unary_function', 'binary_function', 'plus', 'minus', 'multiplies', 'divides', 'modulus', 'negate', 'equal_to', 'not_equal_to', 'greater', 'less', 'greater_equal', 'less_equal', 'logical_and', 'logical_or', 'logical_not', 'unary_negate', 'not1', 'binary_negate', 'not2', 'bind1st', 'bind2nd', 'pointer_to_unary_function', 'pointer_to_binary_function', 'ptr_fun', 'mem_fun_t', 'mem_fun', 'mem_fun1_t', 'mem_fun1_ref_t', 'mem_fun_ref_t', 'const_mem_fun_t', 'const_mem_fun1_t', 'const_mem_fun_ref_t', 'const_mem_fun1_ref_t', 'mem_fun_ref', )), ('', ('numeric_limits',)), ('', ('list',)), ('', ('map', 'multimap',)), ('', ('allocator',)), ('', ('queue', 'priority_queue',)), ('', ('set', 'multiset',)), ('', ('stack',)), ('', ('char_traits', 'basic_string',)), ('', ('pair',)), ('', ('vector',)), # gcc extensions. # Note: std::hash is their hash, ::hash is our hash ('', ('hash_map', 'hash_multimap',)), ('', ('hash_set', 'hash_multiset',)), ('', ('slist',)), ) _HEADERS_ACCEPTED_BUT_NOT_PROMOTED = { # We can trust with reasonable confidence that map gives us pair<>, too. 'pair<>': ('map', 'multimap', 'hash_map', 'hash_multimap') } _RE_PATTERN_STRING = re.compile(r'\bstring\b') _re_pattern_algorithm_header = [] for _template in ('copy', 'max', 'min', 'min_element', 'sort', 'swap', 'transform'): # Match max(..., ...), max(..., ...), but not foo->max, foo.max or # type::max(). _re_pattern_algorithm_header.append( (re.compile(r'[^>.]\b' + _template + r'(<.*?>)?\([^\)]'), _template, '')) _re_pattern_templates = [] for _header, _templates in _HEADERS_CONTAINING_TEMPLATES: for _template in _templates: _re_pattern_templates.append( (re.compile(r'(\<|\b)' + _template + r'\s*\<'), _template + '<>', _header)) def FilesBelongToSameModule(filename_cc, filename_h): """Check if these two filenames belong to the same module. The concept of a 'module' here is a as follows: foo.h, foo-inl.h, foo.cc, foo_test.cc and foo_unittest.cc belong to the same 'module' if they are in the same directory. some/path/public/xyzzy and some/path/internal/xyzzy are also considered to belong to the same module here. If the filename_cc contains a longer path than the filename_h, for example, '/absolute/path/to/base/sysinfo.cc', and this file would include 'base/sysinfo.h', this function also produces the prefix needed to open the header. This is used by the caller of this function to more robustly open the header file. We don't have access to the real include paths in this context, so we need this guesswork here. Known bugs: tools/base/bar.cc and base/bar.h belong to the same module according to this implementation. Because of this, this function gives some false positives. This should be sufficiently rare in practice. Args: filename_cc: is the path for the .cc file filename_h: is the path for the header path Returns: Tuple with a bool and a string: bool: True if filename_cc and filename_h belong to the same module. string: the additional prefix needed to open the header file. """ if not filename_cc.endswith('.cc'): return (False, '') filename_cc = filename_cc[:-len('.cc')] if filename_cc.endswith('_unittest'): filename_cc = filename_cc[:-len('_unittest')] elif filename_cc.endswith('_test'): filename_cc = filename_cc[:-len('_test')] filename_cc = filename_cc.replace('/public/', '/') filename_cc = filename_cc.replace('/internal/', '/') if not filename_h.endswith('.h'): return (False, '') filename_h = filename_h[:-len('.h')] if filename_h.endswith('-inl'): filename_h = filename_h[:-len('-inl')] filename_h = filename_h.replace('/public/', '/') filename_h = filename_h.replace('/internal/', '/') files_belong_to_same_module = filename_cc.endswith(filename_h) common_path = '' if files_belong_to_same_module: common_path = filename_cc[:-len(filename_h)] return files_belong_to_same_module, common_path def UpdateIncludeState(filename, include_state, io=codecs): """Fill up the include_state with new includes found from the file. Args: filename: the name of the header to read. include_state: an _IncludeState instance in which the headers are inserted. io: The io factory to use to read the file. Provided for testability. Returns: True if a header was succesfully added. False otherwise. """ headerfile = None try: headerfile = io.open(filename, 'r', 'utf8', 'replace') except IOError: return False linenum = 0 for line in headerfile: linenum += 1 clean_line = CleanseComments(line) match = _RE_PATTERN_INCLUDE.search(clean_line) if match: include = match.group(2) # The value formatting is cute, but not really used right now. # What matters here is that the key is in include_state. include_state.setdefault(include, '%s:%d' % (filename, linenum)) return True def CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error, io=codecs): """Reports for missing stl includes. This function will output warnings to make sure you are including the headers necessary for the stl containers and functions that you use. We only give one reason to include a header. For example, if you use both equal_to<> and less<> in a .h file, only one (the latter in the file) of these will be reported as a reason to include the . Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. include_state: An _IncludeState instance. error: The function to call with any errors found. io: The IO factory to use to read the header file. Provided for unittest injection. """ required = {} # A map of header name to linenumber and the template entity. # Example of required: { '': (1219, 'less<>') } for linenum in xrange(clean_lines.NumLines()): line = clean_lines.elided[linenum] if not line or line[0] == '#': continue # String is special -- it is a non-templatized type in STL. m = _RE_PATTERN_STRING.search(line) if m: # Don't warn about strings in non-STL namespaces: # (We check only the first match per line; good enough.) prefix = line[:m.start()] if prefix.endswith('std::') or not prefix.endswith('::'): required[''] = (linenum, 'string') for pattern, template, header in _re_pattern_algorithm_header: if pattern.search(line): required[header] = (linenum, template) # The following function is just a speed up, no semantics are changed. if not '<' in line: # Reduces the cpu time usage by skipping lines. continue for pattern, template, header in _re_pattern_templates: if pattern.search(line): required[header] = (linenum, template) # The policy is that if you #include something in foo.h you don't need to # include it again in foo.cc. Here, we will look at possible includes. # Let's copy the include_state so it is only messed up within this function. include_state = include_state.copy() # Did we find the header for this file (if any) and succesfully load it? header_found = False # Use the absolute path so that matching works properly. abs_filename = os.path.abspath(filename) # For Emacs's flymake. # If cpplint is invoked from Emacs's flymake, a temporary file is generated # by flymake and that file name might end with '_flymake.cc'. In that case, # restore original file name here so that the corresponding header file can be # found. # e.g. If the file name is 'foo_flymake.cc', we should search for 'foo.h' # instead of 'foo_flymake.h' abs_filename = re.sub(r'_flymake\.cc$', '.cc', abs_filename) # include_state is modified during iteration, so we iterate over a copy of # the keys. for header in include_state.keys(): #NOLINT (same_module, common_path) = FilesBelongToSameModule(abs_filename, header) fullpath = common_path + header if same_module and UpdateIncludeState(fullpath, include_state, io): header_found = True # If we can't find the header file for a .cc, assume it's because we don't # know where to look. In that case we'll give up as we're not sure they # didn't include it in the .h file. # TODO(unknown): Do a better job of finding .h files so we are confident that # not having the .h file means there isn't one. if filename.endswith('.cc') and not header_found: return # All the lines have been processed, report the errors found. for required_header_unstripped in required: template = required[required_header_unstripped][1] if template in _HEADERS_ACCEPTED_BUT_NOT_PROMOTED: headers = _HEADERS_ACCEPTED_BUT_NOT_PROMOTED[template] if [True for header in headers if header in include_state]: continue if required_header_unstripped.strip('<>"') not in include_state: error(filename, required[required_header_unstripped][0], 'build/include_what_you_use', 4, 'Add #include ' + required_header_unstripped + ' for ' + template) def ProcessLine(filename, file_extension, clean_lines, line, include_state, function_state, class_state, error): """Processes a single line in the file. Args: filename: Filename of the file that is being processed. file_extension: The extension (dot not included) of the file. clean_lines: An array of strings, each representing a line of the file, with comments stripped. line: Number of line being processed. include_state: An _IncludeState instance in which the headers are inserted. function_state: A _FunctionState instance which counts function lines, etc. class_state: A _ClassState instance which maintains information about the current stack of nested class declarations being parsed. error: A callable to which errors are reported, which takes 4 arguments: filename, line number, error level, and message """ raw_lines = clean_lines.raw_lines ParseNolintSuppressions(filename, raw_lines[line], line, error) CheckForFunctionLengths(filename, clean_lines, line, function_state, error) CheckForMultilineCommentsAndStrings(filename, clean_lines, line, error) CheckStyle(filename, clean_lines, line, file_extension, error) CheckLanguage(filename, clean_lines, line, file_extension, include_state, error) CheckForNonStandardConstructs(filename, clean_lines, line, class_state, error) CheckPosixThreading(filename, clean_lines, line, error) CheckInvalidIncrement(filename, clean_lines, line, error) def ProcessFileData(filename, file_extension, lines, error): """Performs lint checks and reports any errors to the given error function. Args: filename: Filename of the file that is being processed. file_extension: The extension (dot not included) of the file. lines: An array of strings, each representing a line of the file, with the last element being empty if the file is termined with a newline. error: A callable to which errors are reported, which takes 4 arguments: """ lines = (['// marker so line numbers and indices both start at 1'] + lines + ['// marker so line numbers end in a known way']) include_state = _IncludeState() function_state = _FunctionState() class_state = _ClassState() ResetNolintSuppressions() CheckForCopyright(filename, lines, error) if file_extension == 'h': CheckForHeaderGuard(filename, lines, error) RemoveMultiLineComments(filename, lines, error) clean_lines = CleansedLines(lines) for line in xrange(clean_lines.NumLines()): ProcessLine(filename, file_extension, clean_lines, line, include_state, function_state, class_state, error) class_state.CheckFinished(filename, error) CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error) # We check here rather than inside ProcessLine so that we see raw # lines rather than "cleaned" lines. CheckForUnicodeReplacementCharacters(filename, lines, error) CheckForNewlineAtEOF(filename, lines, error) def ProcessFile(filename, vlevel): """Does google-lint on a single file. Args: filename: The name of the file to parse. vlevel: The level of errors to report. Every error of confidence >= verbose_level will be reported. 0 is a good default. """ _SetVerboseLevel(vlevel) try: # Support the UNIX convention of using "-" for stdin. Note that # we are not opening the file with universal newline support # (which codecs doesn't support anyway), so the resulting lines do # contain trailing '\r' characters if we are reading a file that # has CRLF endings. # If after the split a trailing '\r' is present, it is removed # below. If it is not expected to be present (i.e. os.linesep != # '\r\n' as in Windows), a warning is issued below if this file # is processed. if filename == '-': lines = codecs.StreamReaderWriter(sys.stdin, codecs.getreader('utf8'), codecs.getwriter('utf8'), 'replace').read().split('\n') else: lines = codecs.open(filename, 'r', 'utf8', 'replace').read().split('\n') carriage_return_found = False # Remove trailing '\r'. for linenum in range(len(lines)): if lines[linenum].endswith('\r'): lines[linenum] = lines[linenum].rstrip('\r') carriage_return_found = True except IOError: sys.stderr.write( "Skipping input '%s': Can't open for reading\n" % filename) return # Note, if no dot is found, this will give the entire filename as the ext. file_extension = filename[filename.rfind('.') + 1:] # When reading from stdin, the extension is unknown, so no cpplint tests # should rely on the extension. if (filename != '-' and file_extension != 'cc' and file_extension != 'h' and file_extension != 'cpp'): sys.stderr.write('Ignoring %s; not a .cc or .h file\n' % filename) else: ProcessFileData(filename, file_extension, lines, Error) if carriage_return_found and os.linesep != '\r\n': # Use 0 for linenum since outputing only one error for potentially # several lines. Error(filename, 0, 'whitespace/newline', 1, 'One or more unexpected \\r (^M) found;' 'better to use only a \\n') sys.stderr.write('Done processing %s\n' % filename) def PrintUsage(message): """Prints a brief usage string and exits, optionally with an error message. Args: message: The optional error message. """ sys.stderr.write(_USAGE) if message: sys.exit('\nFATAL ERROR: ' + message) else: sys.exit(1) def PrintCategories(): """Prints a list of all the error-categories used by error messages. These are the categories used to filter messages via --filter. """ sys.stderr.write(''.join(' %s\n' % cat for cat in _ERROR_CATEGORIES)) sys.exit(0) def ParseArguments(args): """Parses the command line arguments. This may set the output format and verbosity level as side-effects. Args: args: The command line arguments: Returns: The list of filenames to lint. """ try: (opts, filenames) = getopt.getopt(args, '', ['help', 'output=', 'verbose=', 'counting=', 'filter=']) except getopt.GetoptError: PrintUsage('Invalid arguments.') verbosity = _VerboseLevel() output_format = _OutputFormat() filters = '' counting_style = '' for (opt, val) in opts: if opt == '--help': PrintUsage(None) elif opt == '--output': if not val in ('emacs', 'vs7'): PrintUsage('The only allowed output formats are emacs and vs7.') output_format = val elif opt == '--verbose': verbosity = int(val) elif opt == '--filter': filters = val if not filters: PrintCategories() elif opt == '--counting': if val not in ('total', 'toplevel', 'detailed'): PrintUsage('Valid counting options are total, toplevel, and detailed') counting_style = val if not filenames: PrintUsage('No files were specified.') _SetOutputFormat(output_format) _SetVerboseLevel(verbosity) _SetFilters(filters) _SetCountingStyle(counting_style) return filenames def main(): filenames = ParseArguments(sys.argv[1:]) # Change stderr to write with replacement characters so we don't die # if we try to print something containing non-ASCII characters. sys.stderr = codecs.StreamReaderWriter(sys.stderr, codecs.getreader('utf8'), codecs.getwriter('utf8'), 'replace') _cpplint_state.ResetErrorCounts() for filename in filenames: ProcessFile(filename, _cpplint_state.verbose_level) _cpplint_state.PrintErrorCounts() sys.exit(_cpplint_state.error_count > 0) if __name__ == '__main__': main() oif-qml-1.0.7/formatting/uncrustify.cfg0000644000000000000000000001232212004105261016246 0ustar 00000000000000indent_align_string=true indent_braces=false indent_braces_no_func=false indent_brace_parent=false indent_namespace=true indent_extern=false indent_class=true indent_class_colon=true indent_else_if=false indent_func_call_param=false indent_func_def_param=false indent_func_proto_param=false indent_func_class_param=false indent_func_ctor_var_param=false indent_template_param=false indent_func_param_double=false indent_relative_single_line_comments=false indent_col1_comment=false indent_access_spec_body=false indent_paren_nl=false indent_comma_paren=false indent_bool_paren=false indent_square_nl=false indent_preserve_sql=false indent_align_assign=true sp_balance_nested_parens=false align_keep_tabs=false align_with_tabs=false align_on_tabstop=false align_number_left=false align_func_params=false align_same_func_call_params=false align_var_def_colon=false align_var_def_attribute=false align_var_def_inline=false align_right_cmt_mix=false align_on_operator=false align_mix_var_proto=false align_single_line_func=false align_single_line_brace=false align_nl_cont=false align_left_shift=true nl_collapse_empty_body=true nl_assign_leave_one_liners=true nl_class_leave_one_liners=true nl_enum_leave_one_liners=true nl_getset_leave_one_liners=false nl_func_leave_one_liners=true nl_if_leave_one_liners=true nl_multi_line_cond=false nl_multi_line_define=true nl_before_case=true nl_after_case=false nl_after_return=true nl_after_semicolon=true nl_after_brace_open=true nl_after_brace_open_cmt=false nl_after_vbrace_open=true nl_after_brace_close=true nl_define_macro=false nl_squeeze_ifdef=false nl_ds_struct_enum_cmt=false nl_ds_struct_enum_close_brace=false nl_create_if_one_liner=false nl_create_for_one_liner=false nl_create_while_one_liner=false ls_for_split_full=true ls_func_split_full=true nl_after_multiline_comment=false eat_blanks_after_open_brace=true eat_blanks_before_close_brace=true mod_pawn_semicolon=false mod_full_paren_if_bool=false mod_remove_extra_semicolon=true mod_sort_import=false mod_sort_using=false mod_sort_include=true mod_move_case_break=false mod_remove_empty_return=true cmt_indent_multi=true cmt_c_group=true cmt_c_nl_start=false cmt_c_nl_end=true cmt_cpp_group=true cmt_cpp_nl_start=false cmt_cpp_nl_end=true cmt_cpp_to_c=false cmt_star_cont=true cmt_multi_check_last=false cmt_insert_before_preproc=false pp_indent_at_level=false pp_region_indent_code=false pp_if_indent_code=false pp_define_at_level=false indent_columns=2 indent_switch_case=2 indent_label=1 indent_access_spec=2 nl_end_of_file_min=1 code_width=80 cmt_width=80 cmt_sp_after_star_cont=1 pp_indent_count=1 pp_space_count=1 indent_with_tabs=0 sp_arith=add sp_assign=add sp_enum_assign=add sp_pp_concat=remove sp_pp_stringify=remove sp_bool=add sp_compare=add sp_inside_paren=remove sp_paren_paren=remove sp_paren_brace=add sp_before_ptr_star=remove sp_before_unnamed_ptr_star=remove sp_between_ptr_star=remove sp_after_ptr_star=add sp_after_ptr_star_func=add sp_before_ptr_star_func=remove sp_before_byref=remove sp_before_unnamed_byref=remove sp_after_byref=add sp_after_byref_func=add sp_before_byref_func=remove sp_template_angle=remove sp_before_angle=remove sp_inside_angle=add sp_after_angle=remove sp_angle_paren=remove sp_angle_word=add sp_before_sparen=add sp_inside_sparen=remove sp_sparen_brace=add sp_before_semi=remove sp_before_semi_for=remove sp_before_semi_for_empty=remove sp_after_semi_for_empty=remove sp_before_square=remove sp_before_squares=remove sp_inside_square=remove sp_after_comma=add sp_before_comma=remove sp_after_class_colon=add sp_before_class_colon=add sp_before_case_colon=remove sp_after_cast=remove sp_inside_paren_cast=remove sp_cpp_cast_paren=remove sp_sizeof_paren=remove sp_inside_braces_enum=add sp_inside_braces=add sp_inside_braces_empty=remove sp_func_proto_paren=remove sp_func_def_paren=remove sp_inside_fparens=remove sp_inside_fparen=remove sp_square_fparen=remove sp_fparen_brace=add sp_func_call_paren=remove sp_func_class_paren=remove sp_return_paren=add sp_attribute_paren=remove sp_defined_paren=remove sp_throw_paren=add sp_else_brace=add sp_brace_else=add sp_brace_typedef=add sp_catch_brace=add sp_brace_catch=add sp_finally_brace=add sp_brace_finally=add sp_try_brace=add sp_not=remove sp_inv=remove sp_addr=remove sp_member=remove sp_deref=remove sp_sign=remove sp_incdec=remove sp_before_nl_cont=add sp_cond_colon=add sp_cond_question=add sp_cmt_cpp_start=add nl_start_of_file=remove nl_end_of_file=force nl_fcall_brace=remove nl_enum_brace=remove nl_struct_brace=remove nl_union_brace=remove nl_if_brace=remove nl_brace_else=remove nl_elseif_brace=remove nl_else_brace=remove nl_else_if=remove nl_brace_finally=remove nl_finally_brace=remove nl_try_brace=remove nl_for_brace=remove nl_catch_brace=remove nl_brace_catch=remove nl_while_brace=remove nl_do_brace=remove nl_brace_while=remove nl_switch_brace=remove nl_namespace_brace=remove nl_template_class=add nl_class_brace=remove nl_class_init_args=add nl_func_type_name=remove nl_func_scope_name=remove nl_func_proto_type_name=remove nl_func_paren=remove nl_func_decl_start=remove nl_func_decl_args=remove nl_func_decl_end=remove nl_fdef_brace=remove nl_return_expr=remove pos_class_colon=lead mod_full_brace_do=remove mod_full_brace_for=remove mod_full_brace_while=remove mod_paren_on_return=remove pp_space=add oif-qml-1.0.7/src/CMakeLists.txt0000644000000000000000000000274412004105261014536 0ustar 00000000000000set(oif_SRCS continuousgesturearea.cpp device.cpp geissingleton.cpp gesture.cpp gesturearea.cpp gestureevent.cpp instantaneousgesturearea.cpp touch.cpp oif_plugin.cpp oifdragarea.cpp oifpincharea.cpp oifrotatearea.cpp oiftaparea.cpp ) set(oif_HDRS continuousgesturearea.h device.h geissingleton.h gesture.h gesturearea.h gestureevent.h instantaneousgesturearea.h touch.h oif_plugin.h oifdragarea.h oifpincharea.h oifrotatearea.h oiftaparea.h ) qt4_wrap_cpp(oif_MOC_SRCS ${oif_HDRS}) add_library(oif MODULE ${oif_SRCS} ${oif_MOC_SRCS}) target_link_libraries(oif ${GEIS_LDFLAGS}) set(PLUGIN_INSTALL_DIR lib/qt4/imports/oif) install(TARGETS oif DESTINATION ${PLUGIN_INSTALL_DIR}) install(FILES qmldir DESTINATION ${PLUGIN_INSTALL_DIR}) # Documentation target if (DOXYGEN_FOUND) configure_file(${CMAKE_SOURCE_DIR}/Doxyfile.in ${CMAKE_BINARY_DIR}/Doxyfile @ONLY) add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/html COMMAND ${DOXYGEN_EXECUTABLE} DEPENDS ${oif_SRCS} ${oif_HDRS} ${CMAKE_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${CMAKE_BINARY_DIR} COMMENT "Generating API documentation with Doxygen" VERBATIM) add_custom_target(doc ALL DEPENDS ${CMAKE_BINARY_DIR}/html) install(DIRECTORY ${CMAKE_BINARY_DIR}/html DESTINATION "share/doc/oif-qml") install(FILES ${CMAKE_BINARY_DIR}/qch/oif-qml.qch DESTINATION "share/qt4/doc/qch") endif (DOXYGEN_FOUND) oif-qml-1.0.7/src/attributes.h0000644000000000000000000001251512004105261014332 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #ifndef OIF_QML_ATTRIBUTES_H_ #define OIF_QML_ATTRIBUTES_H_ #include #include #include #include #include #include /* Template functions for getting object attributes from GEIS */ namespace geis_attributes { class bad_object : public std::runtime_error { public: explicit bad_object(const std::string &arg) : std::runtime_error(arg) {} }; class bad_attribute : public std::runtime_error { public: explicit bad_attribute(const std::string &arg) : std::runtime_error(arg) {} }; class bad_pointer : public std::runtime_error { public: explicit bad_pointer(const std::string &arg) : std::runtime_error(arg) {} }; template< typename Object > static GeisAttr GetAttributeValue(Object object, const char* attributeName) { throw bad_object("Unhandled attribute value getter"); } template< > GeisAttr GetAttributeValue(GeisEvent event, const char* attributeName) { GeisAttr attribute = geis_event_attr_by_name(event, attributeName); if (!attribute) { QString msg = QString("Failed to get attribute value for '%1' from event") .arg(attributeName); throw bad_attribute(msg.toUtf8().constData()); } return attribute; } template< > GeisAttr GetAttributeValue(GeisFrame frame, const char* attributeName) { GeisAttr attribute = geis_frame_attr_by_name(frame, attributeName); if (!attribute) { QString msg = QString("Failed to get attribute value for '%1' from frame") .arg(attributeName); throw bad_attribute(msg.toUtf8().constData()); } return attribute; } template< > GeisAttr GetAttributeValue(GeisTouch touch, const char* attributeName) { GeisAttr attribute = geis_touch_attr_by_name(touch, attributeName); if (!attribute) { QString msg = QString("Failed to get attribute value for '%1' from touch") .arg(attributeName); throw bad_attribute(msg.toUtf8().constData()); } return attribute; } template< typename Ret > static Ret GetAttributeReturn(GeisAttr attribute) { Ret object = reinterpret_cast< Ret >(geis_attr_value_to_pointer(attribute)); if (!object) { QString msg = QString("Failed to get valid %1 pointer from attribute '%2'") .arg(typeid(Ret).name()).arg(geis_attr_name(attribute)); throw bad_pointer(msg.toUtf8().constData()); } return object; } template< > GeisBoolean GetAttributeReturn(GeisAttr attribute) { return geis_attr_value_to_boolean(attribute); } template< > GeisInteger GetAttributeReturn(GeisAttr attribute) { return geis_attr_value_to_integer(attribute); } template< > GeisFloat GetAttributeReturn(GeisAttr attribute) { return geis_attr_value_to_float(attribute); } template< > GeisString GetAttributeReturn(GeisAttr attribute) { return geis_attr_value_to_string(attribute); } template< typename Ret, typename Object > Ret GetAttribute(Object object, const char* attributeName) { GeisAttr attribute = GetAttributeValue< Object >(object, attributeName); return GetAttributeReturn< Ret >(attribute); } namespace { void AppendAttributeToMap(GeisAttr attr, QVariantMap* attributes) { GeisString name = geis_attr_name(attr); if (!name) { qCritical("Warning: Failed to get name of device attribute"); return; } switch (geis_attr_type(attr)) { case GEIS_ATTR_TYPE_BOOLEAN: attributes->insert( QString(name), QVariant(static_cast(geis_attr_value_to_boolean(attr)))); break; case GEIS_ATTR_TYPE_FLOAT: attributes->insert( QString(name), QVariant(static_cast(geis_attr_value_to_float(attr)))); break; case GEIS_ATTR_TYPE_INTEGER: attributes->insert( QString(name), QVariant(static_cast(geis_attr_value_to_integer(attr)))); break; case GEIS_ATTR_TYPE_STRING: attributes->insert(QString(name), QVariant(QString(geis_attr_value_to_string(attr)))); break; default: // Unknown or pointer attribute break; } } } // namespace template< typename Object > static void PopulateAttributeMap(Object object, QVariantMap* attributes) { throw bad_object("Unhandled object for populating attribute map"); } template< > void PopulateAttributeMap(GeisDevice device, QVariantMap* attributes) { for (GeisSize i = 0; i < geis_device_attr_count(device); ++i) { GeisAttr attr = geis_device_attr(device, i); if (!attr) { qCritical("Warning: Failed to get device attribute"); continue; } AppendAttributeToMap(attr, attributes); } } template< > void PopulateAttributeMap(GeisFrame frame, QVariantMap* attributes) { for (GeisSize i = 0; i < geis_frame_attr_count(frame); ++i) { GeisAttr attr = geis_frame_attr(frame, i); if (!attr) { qCritical("Warning: Failed to get device attribute"); continue; } AppendAttributeToMap(attr, attributes); } } template< > void PopulateAttributeMap(GeisTouch touch, QVariantMap* attributes) { for (GeisSize i = 0; i < geis_touch_attr_count(touch); ++i) { GeisAttr attr = geis_touch_attr(touch, i); if (!attr) { qCritical("Warning: Failed to get device attribute"); continue; } AppendAttributeToMap(attr, attributes); } } } // namespace geis_attributes #endif // OIF_QML_ATTRIBUTES_H_ oif-qml-1.0.7/src/continuousgesturearea.cpp0000644000000000000000000000232212004105261017130 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #include "continuousgesturearea.h" #include "gestureevent.h" ContinuousGestureArea::ContinuousGestureArea(QDeclarativeItem* parent, Primitive primitive) : GestureArea(parent, primitive), active_(false) { } bool ContinuousGestureArea::IsGestureEventHandled(GestureEvent* event) { bool handled = GestureArea::IsGestureEventHandled(event); emit gestureStart(event); active_ = true; emit activeChanged(); return (handled || receivers(SIGNAL(activeChanged())) > 0 || receivers(SIGNAL(gestureStart(GestureEvent*))) > 0 || receivers(SIGNAL(gestureUpdate(GestureEvent*))) > 0 || receivers(SIGNAL(gestureEnd(GestureEvent*))) > 0) && event->accepted(); } void ContinuousGestureArea::HandleGestureUpdateEvent(bool end, GestureEvent* event) { GestureArea::HandleGestureUpdateEvent(end, event); if (end) { active_ = false; emit activeChanged(); emit gestureEnd(event); } else { emit gestureUpdate(event); } } oif-qml-1.0.7/src/continuousgesturearea.h0000644000000000000000000000403512004105261016600 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #ifndef OIF_QML_CONTINUOUSGESTUREAREA_H_ #define OIF_QML_CONTINUOUSGESTUREAREA_H_ #include #include "gesturearea.h" class ContinuousGestureArea : public GestureArea { Q_OBJECT /** * This property denotes whether the gesture is currently active. * * The value is set to true after onGestureStart is emitted, and set to false * before onGestureEnd is emitted. */ Q_PROPERTY(bool active READ active NOTIFY activeChanged) public: ContinuousGestureArea() {} /* To satisfy QML */ ContinuousGestureArea(QDeclarativeItem* parent, Primitive primitive); bool active() const { return active_; } virtual bool IsGestureEventHandled(GestureEvent* event); virtual void HandleGestureUpdateEvent(bool end, GestureEvent* event); signals: void activeChanged(); /** * This handler is called when a gesture starts. * * The gesture parameter provides information about the gesture. * * If the accepted property of the GestureEvent parameter is set to false in * the handler, the gesture is rejected and no further signals will be emitted * for the gesture. The accepted property defaults to true. */ void gestureStart(GestureEvent* gesture); /** * This handler is called when a gesture is updated. * * The gesture parameter provides information about the gesture. * * The accepted property of the GestureEvent parameter is ignored in this * handler. */ void gestureUpdate(GestureEvent* gesture); /** * This handler is called when a gesture ends. * * The gesture parameter provides information about the gesture. * * The accepted property of the GestureEvent parameter is ignored in this * handler. */ void gestureEnd(GestureEvent* gesture); private: bool active_; Q_DISABLE_COPY(ContinuousGestureArea) }; QML_DECLARE_TYPE(ContinuousGestureArea) #endif // OIF_QML_CONTINUOUSGESTUREAREA_H_ oif-qml-1.0.7/src/device.cpp0000644000000000000000000000257312004105261013741 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #include "device.h" #include "attributes.h" using geis_attributes::PopulateAttributeMap; Device::Device(GeisDevice device, QDeclarativeItem *parent) : QDeclarativeItem(parent), device_(device) { geis_device_ref(device_); PopulateAttributeMap< GeisDevice >(device_, &attributes_); id_ = attributes_[GEIS_DEVICE_ATTRIBUTE_ID].toInt(); bool direct = attributes_[GEIS_DEVICE_ATTRIBUTE_DIRECT_TOUCH].toBool(); bool independent = attributes_[GEIS_DEVICE_ATTRIBUTE_INDEPENDENT_TOUCH].toBool(); if (direct && !independent) { device_type_ = TouchScreen; } else if (!direct && !independent) { device_type_ = TouchPad; } else if (!direct) { device_type_ = Independent; } else { device_type_ = Unknown; } x_ = new AxisInfo(attributes_[GEIS_DEVICE_ATTRIBUTE_MIN_X].toFloat(), attributes_[GEIS_DEVICE_ATTRIBUTE_MAX_X].toFloat(), attributes_[GEIS_DEVICE_ATTRIBUTE_RES_X].toFloat(), this); y_ = new AxisInfo(attributes_[GEIS_DEVICE_ATTRIBUTE_MIN_Y].toFloat(), attributes_[GEIS_DEVICE_ATTRIBUTE_MAX_Y].toFloat(), attributes_[GEIS_DEVICE_ATTRIBUTE_RES_Y].toFloat(), this); } Device::~Device() { geis_device_unref(device_); } oif-qml-1.0.7/src/device.h0000644000000000000000000000721612004105261013405 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #ifndef OIF_QML_DEVICE_H_ #define OIF_QML_DEVICE_H_ #include #include /** * A property type used for providing information about an axis of a touch * device. */ class AxisInfo : public QObject { Q_OBJECT /** * This property holds the minimum value of the axis. */ Q_PROPERTY(float min READ min CONSTANT) /** * This property holds the maximum value of the axis. */ Q_PROPERTY(float max READ max CONSTANT) /** * This property holds the resolution of the axis in units per millimeter. * * When the resolution of the device is unknown, the value of this property is * set to 0. */ Q_PROPERTY(float resolution READ resolution CONSTANT) public: AxisInfo(float min, float max, float resolution, QObject* parent = 0) : QObject(parent), min_(min), max_(max), resolution_(resolution) {} float min() const { return min_; } float max() const { return max_; } float resolution() const { return resolution_; } private: const float min_; const float max_; const float resolution_; Q_DISABLE_COPY(AxisInfo) }; /** * An item that provides information about a gesture input device. */ class Device : public QDeclarativeItem { Q_OBJECT Q_ENUMS(DeviceType) /** * This property holds the ID of the touch. */ Q_PROPERTY(int id READ id CONSTANT) /** * This property holds the type of the device. */ Q_PROPERTY(DeviceType type READ device_type CONSTANT) /** * This property holds information on the X axis */ Q_PROPERTY(AxisInfo* x READ x CONSTANT) /** * This property holds information on the Y axis */ Q_PROPERTY(AxisInfo* y READ y CONSTANT) /** * This property holds a variant map of attributes of the touch. * * All touch attributes are available in this property. The keys may be * referenced in the geis.h header file. */ Q_PROPERTY(const QVariantMap attributes READ attributes CONSTANT) public: Device(GeisDevice device, QDeclarativeItem *parent = 0); ~Device(); /** * An enumeration of classes of multitouch input devices. */ enum DeviceType { /** * A touchscreens or similar direct input devices. * * Individual touches are mapped to the screen. Touch locations are * provided in screen coordinates. */ TouchScreen, /** * A touchpads and similar indirect input devices. * * Individual touches are directed to the location of the associated * cursor. Single touch drags that are not accepted as gesture events * move the cursor. Touch locations are provided in device coordinates. */ TouchPad, /** * An independent input devices. * * Individual touches are directed to the location of the associated * cursor. Cursor movement is completely independent of touch input. * Touch locations are provided in device coordinates. */ Independent, /** * An unknown input device. * * No information is known about how the device interacts with the cursor * or how locations are provided. */ Unknown }; int id() const { return id_; } DeviceType device_type() const { return device_type_; } AxisInfo* x() { return x_; } AxisInfo* y() { return y_; } const QVariantMap attributes() const { return attributes_; } private: GeisDevice device_; int id_; DeviceType device_type_; AxisInfo* x_; AxisInfo* y_; QVariantMap attributes_; Q_DISABLE_COPY(Device) }; QML_DECLARE_TYPE(Device) #endif // OIF_QML_DEVICE_H_ oif-qml-1.0.7/src/geissingleton.cpp0000644000000000000000000003373712004105261015362 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #include "geissingleton.h" #include #include #include #include #include #include #include #include #include "attributes.h" #include "continuousgesturearea.h" #include "device.h" #include "gesture.h" #include "gesturearea.h" #include "gestureevent.h" using geis_attributes::GetAttribute; /****************************************************************************** * Functions for handling the GEIS singleton instance ******************************************************************************/ namespace { Q_GLOBAL_STATIC(GeisSingleton, g_geis_singleton) } // namespace GeisSingleton* GeisSingleton::Instance() { return g_geis_singleton(); } GeisSingleton::GeisSingleton(QObject* parent) : QObject(parent), initialized_(false) { geis_ = geis_new(GEIS_INIT_TRACK_DEVICES, GEIS_INIT_TRACK_GESTURE_CLASSES, NULL); if (!geis_) qCritical("Failed to initialize geis instance"); int fd; geis_get_configuration(geis_, GEIS_CONFIGURATION_FD, &fd); notifier_ = new QSocketNotifier(fd, QSocketNotifier::Read, this); connect(notifier_, SIGNAL(activated(int)), SLOT(GeisEventSlot())); } /******************************************************************************/ void GeisSingleton::RegisterGestureArea(GestureArea* area) { if (!window_map_.contains(area->window_id(), area)) window_map_.insert(area->window_id(), area); } void GeisSingleton::UnregisterGestureArea(GestureArea* area) { window_map_.remove(area->window_id(), area); } void GeisSingleton::GeisEventSlot() { GeisStatus status; do { status = geis_dispatch_events(geis_); if (status != GEIS_STATUS_SUCCESS && status != GEIS_STATUS_CONTINUE) { qWarning("Failed to dispatch geis events"); return; } GeisEvent event; for (status = geis_next_event(geis_, &event); status == GEIS_STATUS_SUCCESS || status == GEIS_STATUS_CONTINUE; status = geis_next_event(geis_, &event)) { switch (geis_event_type(event)) { case GEIS_EVENT_CLASS_AVAILABLE: case GEIS_EVENT_CLASS_CHANGED: case GEIS_EVENT_CLASS_UNAVAILABLE: HandleClassEvent(event); break; case GEIS_EVENT_DEVICE_AVAILABLE: case GEIS_EVENT_DEVICE_UNAVAILABLE: HandleDeviceEvent(event); break; case GEIS_EVENT_INIT_COMPLETE: initialized_ = true; emit Initialized(); break; case GEIS_EVENT_GESTURE_BEGIN: HandleGestureBeginEvent(event); break; case GEIS_EVENT_GESTURE_UPDATE: HandleGestureUpdateEvent(false, event); break; case GEIS_EVENT_GESTURE_END: HandleGestureUpdateEvent(true, event); break; default: break; } geis_event_delete(event); } } while (status == GEIS_STATUS_CONTINUE); } void GeisSingleton::HandleClassEvent(GeisEvent event) { GeisGestureClass gesture_class = GetAttribute< GeisGestureClass, GeisEvent >( event, GEIS_EVENT_ATTRIBUTE_CLASS); GeisString name = geis_gesture_class_name(gesture_class); if (!name) { qCritical("Failed to get name of gesture class"); return; } GestureArea::Primitive primitive; if (QString::compare(name, GEIS_GESTURE_DRAG) == 0) primitive = GestureArea::kDrag; else if (QString::compare(name, GEIS_GESTURE_PINCH) == 0) primitive = GestureArea::kPinch; else if (QString::compare(name, GEIS_GESTURE_ROTATE) == 0) primitive = GestureArea::kRotate; else if (QString::compare(name, GEIS_GESTURE_TAP) == 0) primitive = GestureArea::kTap; else return; switch (geis_event_type(event)) { case GEIS_EVENT_CLASS_AVAILABLE: geis_gesture_class_ref(gesture_class); classes_[primitive] = gesture_class; break; case GEIS_EVENT_CLASS_UNAVAILABLE: classes_.remove(primitive); geis_gesture_class_unref(gesture_class); break; default: break; } } void GeisSingleton::HandleDeviceEvent(GeisEvent event) { GeisDevice geis_device = GetAttribute< GeisDevice, GeisEvent >( event, GEIS_EVENT_ATTRIBUTE_DEVICE); if (geis_event_type(event) == GEIS_EVENT_DEVICE_AVAILABLE) { Device* device = new Device(geis_device); device_map_[device->id()] = device; } else if (geis_event_type(event) == GEIS_EVENT_DEVICE_UNAVAILABLE) { GeisInteger id = geis_device_id(geis_device); delete device_map_[id]; device_map_.remove(id); } } namespace { /* Get a list of gesture frames from the groupset. The groupset mechanism * doesn't really work, so we flatten everything down into a list. The list * must be in order from most touches to least. */ void GetGestureFrameList(GeisGroupSet group_set, QList< GeisFrame >* frames) { QMultiMap< int, GeisFrame > frames_by_touch_count; QList< GeisFrame > handled_gestures; for (GeisSize i = 0; i < geis_groupset_group_count(group_set); ++i) { GeisGroup group = geis_groupset_group(group_set, i); for (GeisSize j = 0; j < geis_group_frame_count(group); ++j) { GeisFrame frame = geis_group_frame(group, j); if (handled_gestures.contains(frame)) continue; frames_by_touch_count.insert(geis_frame_touchid_count(frame), frame); handled_gestures.append(frame); } } for (QMultiMap< int, GeisFrame >::ConstIterator it = frames_by_touch_count.constBegin(); it != frames_by_touch_count.constEnd(); ++it) frames->prepend(*it); } QPointF PointForTouch(GeisTouch touch) { GeisFloat x = GetAttribute< GeisFloat, GeisTouch >(touch, GEIS_TOUCH_ATTRIBUTE_X); GeisFloat y = GetAttribute< GeisFloat, GeisTouch >(touch, GEIS_TOUCH_ATTRIBUTE_Y); return QPointF(x, y); } QRectF RectForTouches(const QSet< GeisTouch >& touches) { QPointF min(0, 0); QPointF max(0, 0); bool first = true; foreach (GeisTouch touch, touches) { QPointF point(PointForTouch(touch)); if (first) { min = point; max = point; first = false; } else { if (point.x() < min.x()) min.setX(point.x()); else if (point.x() > max.x()) max.setX(point.x()); if (point.y() < min.y()) min.setY(point.y()); else if (point.y() > max.y()) max.setY(point.y()); } } return QRectF(min, max); } QRectF RectForFocus(GeisFrame frame) { GeisFloat x = GetAttribute< GeisFloat, GeisFrame >( frame, GEIS_GESTURE_ATTRIBUTE_FOCUS_X); GeisFloat y = GetAttribute< GeisFloat, GeisFrame >( frame, GEIS_GESTURE_ATTRIBUTE_FOCUS_Y); return QRectF(x, y, 0, 0); } bool ContainsClaimedTouches(const QSet< GeisTouch >& touches, const QSet< GeisTouch >& claimed_touches) { foreach (GeisTouch touch, touches) if (claimed_touches.contains(touch)) return true; return false; } bool ContainsOtherUnclaimedTouches(const GestureArea* area, const QSet< GeisTouch >& touches, const QSet< GeisTouch >& unclaimed_touches) { foreach (GeisTouch touch, unclaimed_touches) { if (touches.contains(touch)) continue; if (area->contains(PointForTouch(touch))) return true; } return false; } } // namespace QGraphicsScene* GeisSingleton::FindSceneForTouches(WId window, const QRectF& touches) { foreach (const GestureArea* area, window_map_.values(window)) { QGraphicsScene* scene = area->scene(); QGraphicsView* view = scene->views().first(); /* touches may be null if it consists of only one point */ if (touches.isValid()) { if (view->sceneRect().contains(touches)) return scene; } else if (view->sceneRect().contains(touches.topLeft())) { return scene; } } return NULL; } void GeisSingleton::HandleGestureBeginEvent(GeisEvent event) { GeisTouchSet touch_set = GetAttribute< GeisTouchSet, GeisEvent >( event, GEIS_EVENT_ATTRIBUTE_TOUCHSET); GeisGroupSet group_set = GetAttribute< GeisGroupSet, GeisEvent >( event, GEIS_EVENT_ATTRIBUTE_GROUPSET); QList< GeisFrame > frames; GetGestureFrameList(group_set, &frames); QSet< GeisTouch > unclaimed_touches; for (GeisSize i = 0; i < geis_touchset_touch_count(touch_set); ++i) unclaimed_touches.insert(geis_touchset_touch(touch_set, i)); QSet< GeisTouch > claimed_touches; foreach (GeisFrame frame, frames) { GeisInteger device_id = GetAttribute< GeisInteger, GeisFrame >( frame, GEIS_GESTURE_ATTRIBUTE_DEVICE_ID); WId window = GetAttribute< GeisInteger, GeisFrame >( frame, GEIS_GESTURE_ATTRIBUTE_EVENT_WINDOW_ID); QSet< GeisTouch > touches; for (GeisSize i = 0; i < geis_frame_touchid_count(frame); ++i) { GeisTouchId id = geis_frame_touchid(frame, i); GeisTouch touch = geis_touchset_touch_by_id(touch_set, id); touches.insert(touch); } if (ContainsClaimedTouches(touches, claimed_touches)) { /* FIXME: Need to reject gesture here */ continue; } QList< GestureArea::Primitive > primitives; for (QHash< GestureArea::Primitive, GeisGestureClass >::ConstIterator it = classes_.constBegin(); it != classes_.constEnd(); ++it) if (geis_frame_is_class(frame, it.value())) primitives.append(it.key()); QList< QGraphicsItem* > items; if (window == QApplication::desktop()->winId()) foreach (GestureArea* area, window_map_.values(window)) items.append(area); QRectF touches_rect; if (device_map_[device_id]->device_type() == Device::TouchScreen) touches_rect = RectForTouches(touches); else touches_rect = RectForFocus(frame); QGraphicsScene* scene = FindSceneForTouches(window, touches_rect); if (!scene && items.empty()) { /* FIXME: Need to reject gesture here */ continue; } if (scene) { if (touches_rect.isValid()) items.append(scene->items(touches_rect)); else items.append(scene->items(touches_rect.topLeft())); } bool gesture_handled = false; foreach (QGraphicsItem* item, items) { GestureArea* area = qobject_cast< GestureArea* >(item); if (!area) continue; if (touches.count() != area->subscription()->touches()->start()) continue; if (!area->subscription()->_UNITY_globalGesture()) { /* We have an area that intersects with the box, now check if the * area contains the box. */ if (touches_rect.isValid() && !area->shape().contains(touches_rect)) continue; if (ContainsOtherUnclaimedTouches(area, touches, unclaimed_touches)) continue; } Device::DeviceType type = device_map_[device_id]->device_type(); if (area->subscription()->devices() != Gesture::All && ((type == Device::TouchScreen && area->subscription()->devices() != Gesture::TouchScreens) || (type == Device::TouchPad && area->subscription()->devices() != Gesture::TouchPads) || (type == Device::Independent && area->subscription()->devices() != Gesture::Independents))) continue; if (!primitives.contains(area->primitive())) continue; GestureEvent event(area, frame, touch_set, device_map_[device_id]); if (area->IsGestureEventHandled(&event)) { GestureArea::Primitive primitive = area->primitive(); primitives.removeAll(primitive); gesture_handled = true; /* Don't keep instantaneous gestures around as active */ if (qobject_cast(area)) active_gestures_[geis_frame_id(frame)][primitive] = area; } } if (gesture_handled) /* FIXME: Need a way to accept a gesture frame */ claimed_touches.unite(touches); else /* FIXME: Need to reject gesture here */ ; } } void GeisSingleton::HandleGestureUpdateEvent(bool end, GeisEvent event) { GeisTouchSet touch_set = GetAttribute< GeisTouchSet, GeisEvent >( event, GEIS_EVENT_ATTRIBUTE_TOUCHSET); GeisGroupSet group_set = GetAttribute< GeisGroupSet, GeisEvent >( event, GEIS_EVENT_ATTRIBUTE_GROUPSET); QList< GeisFrame > frames; GetGestureFrameList(group_set, &frames); foreach (GeisFrame frame, frames) { GeisGestureId id = geis_frame_id(frame); GeisInteger device_id = GetAttribute< GeisInteger, GeisFrame >( frame, GEIS_GESTURE_ATTRIBUTE_DEVICE_ID); QList< GestureArea::Primitive > primitives; for (QHash< GestureArea::Primitive, GeisGestureClass >::ConstIterator it = classes_.constBegin(); it != classes_.constEnd(); ++it) if (geis_frame_is_class(frame, it.value())) primitives.append(it.key()); /* Tap events only send update events. Handle them like begin events. */ if (primitives.length() == 1 && primitives.first() == GestureArea::kTap && frames.length() == 1) { HandleGestureBeginEvent(event); return; } foreach (GestureArea::Primitive primitive, primitives) { if (!active_gestures_.contains(id) || !active_gestures_[id].contains(primitive)) continue; GestureArea* area = active_gestures_[geis_frame_id(frame)][primitive]; GestureEvent event(area, frame, touch_set, device_map_[device_id]); area->HandleGestureUpdateEvent(end, &event); if (end) { active_gestures_[id].remove(primitive); if (active_gestures_[id].empty()) active_gestures_.remove(id); } } } } GeisSingleton::~GeisSingleton() { delete notifier_; foreach (GeisGestureClass gesture_class, classes_) geis_gesture_class_unref(gesture_class); foreach (const Device* device, device_map_) delete device; if (geis_) geis_delete(geis_); } oif-qml-1.0.7/src/geissingleton.h0000644000000000000000000000273712004105261015023 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #ifndef OIF_QML_GEISSINGLETON_H_ #define OIF_QML_GEISSINGLETON_H_ #include #include #include #include #include "gesture.h" #include "gesturearea.h" class Device; class GestureArea; class QSocketNotifier; class GeisSingleton : public QObject { Q_OBJECT public: explicit GeisSingleton(QObject* parent = 0); ~GeisSingleton(); static GeisSingleton* Instance(); Geis geis() const { return geis_; } bool initialized() const { return initialized_; } void RegisterGestureArea(GestureArea* area); void UnregisterGestureArea(GestureArea* area); signals: void Initialized(); private: void HandleClassEvent(GeisEvent event); void HandleDeviceEvent(GeisEvent event); void HandleGestureBeginEvent(GeisEvent event); void HandleGestureUpdateEvent(bool end, GeisEvent event); QGraphicsScene* FindSceneForTouches(WId window, const QRectF& touches); Geis geis_; bool initialized_; QSocketNotifier* notifier_; QHash< GestureArea::Primitive, GeisGestureClass > classes_; QHash< GeisGestureId, QMap< GestureArea::Primitive, GestureArea* > > active_gestures_; QMultiHash< WId, GestureArea* > window_map_; QHash< GeisInteger, Device* > device_map_; Q_DISABLE_COPY(GeisSingleton) private slots: void GeisEventSlot(); }; #endif // OIF_QML_GEISSINGLETON_H_ oif-qml-1.0.7/src/gesture.cpp0000644000000000000000000000356612004105261014163 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #include "gesture.h" #include "geissingleton.h" Gesture::Gesture(QDeclarativeItem* parent) : QDeclarativeItem(parent), touches_(this), devices_(All), _UNITY_globalGesture_(false), subscription_(NULL) {} void Gesture::set_devices(Gesture::DeviceType new_value) { if (devices_ != new_value) { devices_ = new_value; emit devicesChanged(); } } void Gesture::set_subscription(GeisSubscription subscription) { DeleteSubscription(); subscription_ = subscription; } void Gesture::set_UNITY_globalGesture(bool new_value) { if (_UNITY_globalGesture_ != new_value) { _UNITY_globalGesture_ = new_value; emit _UNITY_globalGestureChanged(); } } bool Gesture::EnableSubscription() { if (!subscription_) { qWarning("Attempted to enable non-existent subscription"); return false; } GeisStatus status = geis_subscription_activate(subscription_); if (status != GEIS_STATUS_SUCCESS) { qWarning("Failed to enable subscription"); return false; } return true; } bool Gesture::DisableSubscription() { if (!subscription_) { qWarning("Attempted to disable non-existent subscription"); return false; } GeisStatus status = geis_subscription_deactivate(subscription_); if (status != GEIS_STATUS_SUCCESS) { qWarning("Failed to disable subscription"); return false; } return true; } void Gesture::DeleteSubscription() { if (subscription_) geis_subscription_delete(subscription_); subscription_ = NULL; } Gesture::~Gesture() { DeleteSubscription(); } TouchLimits::TouchLimits(QObject* parent) : QObject(parent), start_(2) {} void TouchLimits::set_start(int new_value) { if (start_ != new_value) { start_ = new_value; emit startChanged(); } } oif-qml-1.0.7/src/gesture.h0000644000000000000000000000613712004105261013625 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #ifndef OIF_QML_GESTURE_H_ #define OIF_QML_GESTURE_H_ #include #include class GestureArea; /** * A property type used for configuring gesture begin and end conditions based * on the number of active touches. */ class TouchLimits : public QObject { Q_OBJECT /** * This property holds the number of touches required to begin a gesture. * * The default value is two touches. */ Q_PROPERTY(int start READ start WRITE set_start NOTIFY startChanged) public: explicit TouchLimits(QObject* parent = 0); int start() const { return start_; } void set_start(int new_value); signals: void startChanged(); private: int start_; Q_DISABLE_COPY(TouchLimits) }; /** * An item describing a gesture subscription. */ class Gesture : public QDeclarativeItem { Q_OBJECT Q_ENUMS(DeviceType) /** * This property holds the gesture begin and end conditions based on the * number of active touches. */ Q_PROPERTY(TouchLimits* touches READ touches) /** * This property holds the device type. * * Only devices matching the device type will generate events. The default * value is All. */ Q_PROPERTY( DeviceType devices READ devices WRITE set_devices NOTIFY devicesChanged) /** * \internal * * This property holds whether the gesture is a global system gesture. * * This property is only intended to be used by Unity. The existence and * implementation of this property may change without notice. A fully * supported public alternative may be provided in the future. */ Q_PROPERTY( bool _UNITY_globalGesture READ _UNITY_globalGesture WRITE set_UNITY_globalGesture NOTIFY _UNITY_globalGestureChanged) public: explicit Gesture(QDeclarativeItem* parent = 0); ~Gesture(); /** * An enumeration of classes of multitouch input devices for subscriptions. * * See Device::DeviceType for descriptions of the device classes. */ enum DeviceType { /** All Device::TouchScreen devices */ TouchScreens, /** All Device::TouchPad devices */ TouchPads, /** All Device::Independent devices */ Independents, /** All devices */ All }; TouchLimits* touches() { return &touches_; } DeviceType devices() const { return devices_; } void set_devices(DeviceType new_value); bool _UNITY_globalGesture() const { return _UNITY_globalGesture_; } void set_UNITY_globalGesture(bool new_value); GeisSubscription subscription() const { return subscription_; } void set_subscription(GeisSubscription subscription); bool EnableSubscription(); bool DisableSubscription(); void DeleteSubscription(); signals: void typeChanged(); void devicesChanged(); void _UNITY_globalGestureChanged(); private: TouchLimits touches_; DeviceType devices_; bool _UNITY_globalGesture_; GeisSubscription subscription_; Q_DISABLE_COPY(Gesture) }; QML_DECLARE_TYPE(Gesture) QML_DECLARE_TYPE(TouchLimits) #endif // OIF_QML_GESTURE_H_ oif-qml-1.0.7/src/gesturearea.cpp0000644000000000000000000002054712004105261015012 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #include "gesturearea.h" #include #include #include #include #include #include "device.h" #include "geissingleton.h" #include "gesture.h" #include "gestureevent.h" GestureArea::GestureArea(QDeclarativeItem* parent, Primitive primitive) : QDeclarativeItem(parent), primitive_(primitive), window_id_(0), subscription_(parent), enabled_(true) { connect(GeisSingleton::Instance(), SIGNAL(Initialized()), SLOT(GeisInitialized())); connect(&subscription_, SIGNAL(devicesChanged()), SLOT(SubscriptionChanged())); connect(&subscription_, SIGNAL(_UNITY_globalGestureChanged()), SLOT(SubscriptionChanged())); connect(subscription_.touches(), SIGNAL(startChanged()), SLOT(SubscriptionChanged())); } QVariant GestureArea::itemChange(GraphicsItemChange change, const QVariant& value) { if (change == QGraphicsItem::ItemSceneHasChanged) { if (subscription_._UNITY_globalGesture()) window_id_ = QApplication::desktop()->winId(); else window_id_ = scene()->views().first()->winId(); if (window_id_) { if (GeisSingleton::Instance()->initialized()) BuildSubscription(&subscription_); } else { qCritical("Failed to determine window ID of GestureArea"); } } return QDeclarativeItem::itemChange(change, value); } void GestureArea::GeisInitialized() { if (window_id_) BuildSubscription(&subscription_); } #define ADD_FILTER_TERM(filter, facility, term ...) \ if (geis_filter_add_term((filter), (facility), \ ##term) != GEIS_STATUS_SUCCESS) { \ qCritical("Failed to add term to filter"); \ throw; \ } void GestureArea::SubscriptionChanged() { GeisSingleton::Instance()->UnregisterGestureArea(this); subscription_.DeleteSubscription(); if (window_id_) { if (subscription_._UNITY_globalGesture()) window_id_ = QApplication::desktop()->winId(); else window_id_ = scene()->views().first()->window()->effectiveWinId(); if (window_id_) { BuildSubscription(&subscription_); GeisSingleton::Instance()->RegisterGestureArea(this); } } } void GestureArea::BuildSubscription(Gesture* gesture) { GeisStatus status; GeisSubscriptionFlags flags; GeisSubscription subscription; /* Return if already built */ if (gesture->subscription()) return; Geis geis = GeisSingleton::Instance()->geis(); GeisFilter filter = geis_filter_new(geis, "GestureArea subscription filter"); if (!filter) { qCritical("Failed to create GeisFilter for subscription"); return; } ADD_FILTER_TERM(filter, GEIS_FILTER_REGION, GEIS_REGION_ATTRIBUTE_WINDOWID, GEIS_FILTER_OP_EQ, window_id_, NULL); switch (gesture->devices()) { case Gesture::TouchScreens: ADD_FILTER_TERM(filter, GEIS_FILTER_DEVICE, GEIS_DEVICE_ATTRIBUTE_DIRECT_TOUCH, GEIS_FILTER_OP_EQ, GEIS_TRUE, NULL); ADD_FILTER_TERM(filter, GEIS_FILTER_DEVICE, GEIS_DEVICE_ATTRIBUTE_INDEPENDENT_TOUCH, GEIS_FILTER_OP_EQ, GEIS_FALSE, NULL); break; case Gesture::TouchPads: ADD_FILTER_TERM(filter, GEIS_FILTER_DEVICE, GEIS_DEVICE_ATTRIBUTE_DIRECT_TOUCH, GEIS_FILTER_OP_EQ, GEIS_FALSE, NULL); ADD_FILTER_TERM(filter, GEIS_FILTER_DEVICE, GEIS_DEVICE_ATTRIBUTE_INDEPENDENT_TOUCH, GEIS_FILTER_OP_EQ, GEIS_FALSE, NULL); break; case Gesture::Independents: ADD_FILTER_TERM(filter, GEIS_FILTER_DEVICE, GEIS_DEVICE_ATTRIBUTE_DIRECT_TOUCH, GEIS_FILTER_OP_EQ, GEIS_FALSE, NULL); ADD_FILTER_TERM(filter, GEIS_FILTER_DEVICE, GEIS_DEVICE_ATTRIBUTE_INDEPENDENT_TOUCH, GEIS_FILTER_OP_EQ, GEIS_TRUE, NULL); break; default: /* Gesture::All */ break; } const char* primitive; switch (primitive_) { case kDrag: primitive = GEIS_GESTURE_DRAG; break; case kPinch: primitive = GEIS_GESTURE_PINCH; break; case kRotate: primitive = GEIS_GESTURE_ROTATE; break; case kTap: primitive = GEIS_GESTURE_TAP; break; default: qCritical("Bad gesture type when building subscription (%d)", primitive_); goto error; } ADD_FILTER_TERM(filter, GEIS_FILTER_CLASS, GEIS_CLASS_ATTRIBUTE_NAME, GEIS_FILTER_OP_EQ, primitive, NULL); ADD_FILTER_TERM(filter, GEIS_FILTER_CLASS, GEIS_GESTURE_ATTRIBUTE_TOUCHES, GEIS_FILTER_OP_EQ, gesture->touches()->start(), NULL); flags = subscription_._UNITY_globalGesture() ? (GeisSubscriptionFlags)( GEIS_SUBSCRIPTION_GRAB | GEIS_SUBSCRIPTION_CONT) : GEIS_SUBSCRIPTION_NONE; subscription = geis_subscription_new(geis, "GestureArea subscription", flags); if (!subscription) { qCritical("Failed to create GeisSubscription"); goto error; } status = geis_subscription_add_filter(subscription, filter); if (status != GEIS_STATUS_SUCCESS) { qCritical("Failed to add filter to subscription"); geis_subscription_delete(subscription); goto error; } subscription_.set_subscription(subscription); if (!subscription_.EnableSubscription()) goto error; GeisSingleton::Instance()->RegisterGestureArea(this); error: geis_filter_delete(filter); } void GestureArea::set_enabled(bool new_value) { if (enabled_ != new_value) { if (new_value == true) { if (!subscription_.EnableSubscription()) return; } else if (!subscription_.DisableSubscription()) { return; } enabled_ = new_value; emit enabledChanged(); } } bool GestureArea::IsGestureEventHandled(GestureEvent* event) { float x; float y; if (primitive_ == kDrag || primitive_ == kTap) { x = event->attributes().value(GEIS_GESTURE_ATTRIBUTE_POSITION_X).toFloat(); y = event->attributes().value(GEIS_GESTURE_ATTRIBUTE_POSITION_Y).toFloat(); } else { x = event->attributes().value(GEIS_GESTURE_ATTRIBUTE_CENTROID_X).toFloat(); y = event->attributes().value(GEIS_GESTURE_ATTRIBUTE_CENTROID_Y).toFloat(); } QPointF point(x, y); if (!subscription_._UNITY_globalGesture() && event->device()->device_type() == Device::TouchScreen) { point = scene()->views().first()->mapFromGlobal(point.toPoint()); point = mapFromScene(point); } centroid_.set(point); x = event->attributes().value(GEIS_GESTURE_ATTRIBUTE_FOCUS_X).toFloat(); y = event->attributes().value(GEIS_GESTURE_ATTRIBUTE_FOCUS_Y).toFloat(); if (subscription_._UNITY_globalGesture()) { focus_ = QPointF(x, y); } else { point = scene()->views().first()->mapFromGlobal(QPoint(x, y)); focus_ = mapFromScene(point); } emit focusChanged(); return centroid_.receivers(SIGNAL(initialChanged())) > 0 || centroid_.receivers(SIGNAL(currentChanged())) > 0 || receivers(SIGNAL(focusChanged())) > 0; } void GestureArea::HandleGestureUpdateEvent(bool end, GestureEvent* event) { float x; float y; if (primitive_ == kDrag) { x = event->attributes().value(GEIS_GESTURE_ATTRIBUTE_POSITION_X).toFloat(); y = event->attributes().value(GEIS_GESTURE_ATTRIBUTE_POSITION_Y).toFloat(); } else { x = event->attributes().value(GEIS_GESTURE_ATTRIBUTE_CENTROID_X).toFloat(); y = event->attributes().value(GEIS_GESTURE_ATTRIBUTE_CENTROID_Y).toFloat(); } centroid_.update(QPointF(x, y)); } GestureArea::~GestureArea() { GeisSingleton::Instance()->UnregisterGestureArea(this); } oif-qml-1.0.7/src/gesturearea.h0000644000000000000000000000744012004105261014454 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #ifndef OIF_QML_GESTUREAREA_H_ #define OIF_QML_GESTUREAREA_H_ #include #include "gesture.h" class GestureArea; class GestureEvent; /** * A property type that conveys the initial and current value of a variant. */ class GestureProperty : public QObject { Q_OBJECT /** * This property holds the initial value of the variant. */ Q_PROPERTY(QVariant initial READ initial NOTIFY initialChanged) /** * This property holds the current value of the variant. */ Q_PROPERTY(QVariant current READ current NOTIFY currentChanged) public: explicit GestureProperty(QObject* parent = 0) : QObject(parent) {} QVariant initial() const { return initial_; } QVariant current() const { return current_; } signals: void initialChanged(); void currentChanged(); private: void set(QVariant new_value) { initial_ = new_value; emit initialChanged(); current_ = new_value; emit currentChanged(); } void update(QVariant new_value) { if (current_ != new_value) { current_ = new_value; emit currentChanged(); } } QVariant initial_; QVariant current_; friend class GestureArea; friend class OIFPinchArea; friend class OIFRotateArea; Q_DISABLE_COPY(GestureProperty) }; class GestureArea : public QDeclarativeItem { Q_OBJECT /** * This property holds the subscription for the item. * * When the subscription is modified, the old subscription is deleted and a * new subscription is created. */ Q_PROPERTY(Gesture* subscription READ subscription CONSTANT) /** * This property holds whether the item accepts gesture events. * * By default, this property is true. */ Q_PROPERTY(bool enabled READ enabled WRITE set_enabled NOTIFY enabledChanged) /** * This property holds the position of the centroid of the touches * comprising the gesture. * * For TouchScreen devices, the centroid is mapped to item coordinates. For * all other devices, the centroid is left in device coordinates. */ Q_PROPERTY(GestureProperty* centroid READ centroid CONSTANT) /** * This property holds the focus point of the gesture. * * For TouchScreen devices, the focus point is the centroid of the touches * when the gesture begins. For other devices, the focus point is the * location of the pointer when the gesture begins. * * The focus point is always mapped to item coordinates. */ Q_PROPERTY(QPointF focus READ focus NOTIFY focusChanged) public: enum Primitive { kDrag, kPinch, kRotate, kTap }; GestureArea() {} /* To satisfy QML */ GestureArea(QDeclarativeItem* parent, Primitive primitive); virtual ~GestureArea(); Primitive primitive() const { return primitive_; } Gesture* subscription() { return &subscription_; } bool enabled() const { return enabled_; } void set_enabled(bool new_value); GestureProperty* centroid() { return ¢roid_; } QPointF focus() const { return focus_; } WId window_id() const { return window_id_; } virtual bool IsGestureEventHandled(GestureEvent* event); virtual void HandleGestureUpdateEvent(bool end, GestureEvent* event); signals: void enabledChanged(); void focusChanged(); protected: virtual QVariant itemChange(GraphicsItemChange change, const QVariant& value); private: void BuildSubscription(Gesture* gesture); Primitive primitive_; WId window_id_; Gesture subscription_; bool enabled_; GestureProperty centroid_; QPointF focus_; Q_DISABLE_COPY(GestureArea) private slots: void SubscriptionChanged(); void GeisInitialized(); }; QML_DECLARE_TYPE(GestureArea) QML_DECLARE_TYPE(GestureProperty) #endif // OIF_QML_GESTUREAREA_H_ oif-qml-1.0.7/src/gestureevent.cpp0000644000000000000000000000222112004105261015210 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #include "gestureevent.h" #include "attributes.h" #include "device.h" #include "gesturearea.h" #include "touch.h" using geis_attributes::PopulateAttributeMap; namespace { Touch touch_pool[5]; } // namespace GestureEvent::GestureEvent(GestureArea* area, GeisFrame frame, GeisTouchSet touch_set, Device* device) : QDeclarativeItem(area), gesture_(area->subscription()), accepted_(true), device_(device) { PopulateAttributeMap< GeisFrame >(frame, &attributes_); id_ = geis_frame_id(frame); for (GeisSize i = 0; i < geis_frame_touchid_count(frame); ++i) { GeisTouchId touch_id = geis_frame_touchid(frame, i); GeisTouch touch = geis_touchset_touch_by_id(touch_set, touch_id); touch_pool[i].Initialize(touch); touches_.append(&touch_pool[i]); } } void GestureEvent::set_accepted(bool new_value) { if (accepted_ != new_value) { accepted_ = new_value; emit acceptedChanged(); } } oif-qml-1.0.7/src/gestureevent.h0000644000000000000000000000464112004105261014665 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #ifndef OIF_QML_GESTUREEVENT_H_ #define OIF_QML_GESTUREEVENT_H_ #include #include "gesture.h" class Touch; class Device; /** * An item that provides information about a gesture event. */ class GestureEvent : public QDeclarativeItem { Q_OBJECT /** * Setting accepted to false in the onGestureBegin handler causes the * gesture to be rejected. * * Other GestureArea items may accept the event, or the event may be * rejected entirely, and the touch events may be reprocessed by the system. * This property defaults to true. */ Q_PROPERTY(bool accepted READ accepted WRITE set_accepted NOTIFY acceptedChanged) /** * This property holds the list of touches comprising the gesture. */ Q_PROPERTY(const QDeclarativeListProperty< Touch > touches READ touches) /** * This property holds a reference to the gesture subscription. */ Q_PROPERTY(const Gesture* gesture READ gesture CONSTANT) /** * This property holds the ID of the gesture event. */ Q_PROPERTY(int id READ id CONSTANT) /** * This property holds the information of the device. */ Q_PROPERTY(Device* device READ device CONSTANT) /** * This property holds a variant map of attributes of the gesture. * * All gesture attributes are available in this property. The keys may be * referenced in the geis.h header file. */ Q_PROPERTY(const QVariantMap attributes READ attributes CONSTANT) public: GestureEvent() {} /* To satisfy QML */ GestureEvent(GestureArea* area, GeisFrame frame, GeisTouchSet touch_set, Device* device); bool accepted() const { return accepted_; } void set_accepted(bool new_value); const Gesture* gesture() { return gesture_; } int id() const { return id_; } Device* device() { return device_; } const QVariantMap attributes() const { return attributes_; } QDeclarativeListProperty< Touch > touches() { return QDeclarativeListProperty< Touch >(this, touches_); } signals: void acceptedChanged(); private: int id_; Gesture* gesture_; QList< Touch* > touches_; QVariantMap attributes_; bool accepted_; Device* device_; Q_DISABLE_COPY(GestureEvent) }; QML_DECLARE_TYPE(GestureEvent) #endif // OIF_QML_GESTUREEVENT_H_ oif-qml-1.0.7/src/instantaneousgesturearea.cpp0000644000000000000000000000161712004105261017623 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #include "instantaneousgesturearea.h" #include "gestureevent.h" InstantaneousGestureArea::InstantaneousGestureArea(QDeclarativeItem* parent, Primitive primitive) : GestureArea(parent, primitive) { } bool InstantaneousGestureArea::IsGestureEventHandled(GestureEvent* event) { bool handled = GestureArea::IsGestureEventHandled(event); emit gestureOccurred(event); return (handled || receivers(SIGNAL(gestureOccurred(GestureEvent*))) > 0) && event->accepted(); } void InstantaneousGestureArea::HandleGestureUpdateEvent(bool end, GestureEvent* event) { qWarning("Attempted to handle update/end event for instantaneous gesture"); } oif-qml-1.0.7/src/instantaneousgesturearea.h0000644000000000000000000000230512004105261017263 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #ifndef OIF_QML_INSTANTANEOUSGESTUREAREA_H_ #define OIF_QML_INSTANTANEOUSGESTUREAREA_H_ #include #include "gesturearea.h" class InstantaneousGestureArea : public GestureArea { Q_OBJECT public: InstantaneousGestureArea() {} /* To satisfy QML */ InstantaneousGestureArea(QDeclarativeItem* parent, Primitive primitive); virtual bool IsGestureEventHandled(GestureEvent* event); virtual void HandleGestureUpdateEvent(bool end, GestureEvent* event); signals: /** * This handler is called when an instantaneous gesture occurs. * * The gesture parameter provides information about the gesture. * * If the accepted property of the GestureEvent parameter is set to false in * the handler, the gesture is rejected and no further signals will be emitted * for the gesture. The accepted property defaults to true. */ void gestureOccurred(GestureEvent* gesture); private: Q_DISABLE_COPY(InstantaneousGestureArea) }; QML_DECLARE_TYPE(InstantaneousGestureArea) #endif // OIF_QML_INSTANTANEOUSGESTUREAREA_H_ oif-qml-1.0.7/src/oif_plugin.cpp0000644000000000000000000000170412004105261014630 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #include "oif_plugin.h" #include #include "device.h" #include "gesture.h" #include "gestureevent.h" #include "touch.h" #include "oifdragarea.h" #include "oifpincharea.h" #include "oifrotatearea.h" #include "oiftaparea.h" void oifPlugin::registerTypes(const char* uri) { qmlRegisterType< OIFDragArea >(uri, 1, 0, "OIFDragArea"); qmlRegisterType< OIFPinchArea >(uri, 1, 0, "OIFPinchArea"); qmlRegisterType< OIFRotateArea >(uri, 1, 0, "OIFRotateArea"); qmlRegisterType< OIFTapArea >(uri, 1, 0, "OIFTapArea"); qmlRegisterType< Gesture >(); qmlRegisterType< TouchLimits >(); qmlRegisterType< GestureEvent >(); qmlRegisterType< GestureProperty >(); qmlRegisterType< Touch >(); qmlRegisterType< Device >(); qmlRegisterType< AxisInfo >(); } Q_EXPORT_PLUGIN2(oif, oifPlugin) oif-qml-1.0.7/src/oif_plugin.h0000644000000000000000000000063012004105261014272 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #ifndef OIF_QML_OIF_PLUGIN_H_ #define OIF_QML_OIF_PLUGIN_H_ #include class oifPlugin : public QDeclarativeExtensionPlugin { Q_OBJECT public: void registerTypes(const char* uri); }; #endif // OIF_QML_OIF_PLUGIN_H_ oif-qml-1.0.7/src/oifdragarea.cpp0000644000000000000000000000045712004105261014745 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #include "oifdragarea.h" #include "gestureevent.h" OIFDragArea::OIFDragArea(QDeclarativeItem* parent) : ContinuousGestureArea(parent, kDrag) {} oif-qml-1.0.7/src/oifdragarea.h0000644000000000000000000000107612004105261014410 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #ifndef OIF_QML_OIFDRAGAREA_H_ #define OIF_QML_OIFDRAGAREA_H_ #include "continuousgesturearea.h" /** * An input-only item for receiving non-instantaneous drag gesture events. */ class OIFDragArea : public ContinuousGestureArea { Q_OBJECT public: explicit OIFDragArea(QDeclarativeItem* parent = 0); private: Q_DISABLE_COPY(OIFDragArea) }; QML_DECLARE_TYPE(OIFDragArea) #endif // OIF_QML_OIFDRAGAREA_H_ oif-qml-1.0.7/src/oifpincharea.cpp0000644000000000000000000000165212004105261015127 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #include "oifpincharea.h" #include "gestureevent.h" OIFPinchArea::OIFPinchArea(QDeclarativeItem* parent) : ContinuousGestureArea(parent, kPinch) {} bool OIFPinchArea::IsGestureEventHandled(GestureEvent* event) { GeisFloat radius = event->attributes().value(GEIS_GESTURE_ATTRIBUTE_RADIUS).toFloat(); radius_.set(radius); return ContinuousGestureArea::IsGestureEventHandled(event) || radius_.receivers(SIGNAL(initialChanged())) > 0 || radius_.receivers(SIGNAL(currentChanged())) > 0; } void OIFPinchArea::HandleGestureUpdateEvent(bool end, GestureEvent* event) { GeisFloat radius = event->attributes().value(GEIS_GESTURE_ATTRIBUTE_RADIUS).toFloat(); radius_.update(radius); ContinuousGestureArea::HandleGestureUpdateEvent(end, event); } oif-qml-1.0.7/src/oifpincharea.h0000644000000000000000000000163312004105261014573 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #ifndef OIF_QML_OIFPINCHAREA_H_ #define OIF_QML_OIFPINCHAREA_H_ #include "continuousgesturearea.h" /** * An input-only item for receiving non-instantaneous pinch gesture events. */ class OIFPinchArea : public ContinuousGestureArea { Q_OBJECT /** * This property holds the average radius of the touches. */ Q_PROPERTY(GestureProperty* radius READ radius CONSTANT) public: explicit OIFPinchArea(QDeclarativeItem* parent = 0); GestureProperty* radius() { return &radius_; } virtual bool IsGestureEventHandled(GestureEvent* event); virtual void HandleGestureUpdateEvent(bool end, GestureEvent* event); private: GestureProperty radius_; Q_DISABLE_COPY(OIFPinchArea) }; QML_DECLARE_TYPE(OIFPinchArea) #endif // OIF_QML_OIFPINCHAREA_H_ oif-qml-1.0.7/src/oifrotatearea.cpp0000644000000000000000000000172612004105261015326 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #include "oifrotatearea.h" #include "gestureevent.h" OIFRotateArea::OIFRotateArea(QDeclarativeItem* parent) : ContinuousGestureArea(parent, kRotate) {} bool OIFRotateArea::IsGestureEventHandled(GestureEvent* event) { GeisFloat angle = event->attributes().value(GEIS_GESTURE_ATTRIBUTE_ANGLE).toFloat(); angle_.set(angle); return ContinuousGestureArea::IsGestureEventHandled(event) || angle_.receivers(SIGNAL(initialChanged())) > 0 || angle_.receivers(SIGNAL(currentChanged())) > 0; } void OIFRotateArea::HandleGestureUpdateEvent(bool end, GestureEvent* event) { GeisFloat angle = event->attributes().value(GEIS_GESTURE_ATTRIBUTE_ANGLE).toFloat(); angle_.update(angle); ContinuousGestureArea::HandleGestureUpdateEvent(end, event); } oif-qml-1.0.7/src/oifrotatearea.h0000644000000000000000000000163612004105261014773 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #ifndef OIF_QML_OIFROTATEAREA_H_ #define OIF_QML_OIFROTATEAREA_H_ #include "continuousgesturearea.h" /** * An input-only item for receiving non-instantaneous rotate gesture events. */ class OIFRotateArea : public ContinuousGestureArea { Q_OBJECT /** * This property holds the rotation angle of the touches. */ Q_PROPERTY(GestureProperty* angle READ angle CONSTANT) public: explicit OIFRotateArea(QDeclarativeItem* parent = 0); GestureProperty* angle() { return &angle_; } virtual bool IsGestureEventHandled(GestureEvent* event); virtual void HandleGestureUpdateEvent(bool end, GestureEvent* event); private: GestureProperty angle_; Q_DISABLE_COPY(OIFRotateArea) }; QML_DECLARE_TYPE(OIFRotateArea) #endif // OIF_QML_OIFROTATEAREA_H_ oif-qml-1.0.7/src/oiftaparea.cpp0000644000000000000000000000045612004105261014613 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #include "oiftaparea.h" #include "gestureevent.h" OIFTapArea::OIFTapArea(QDeclarativeItem* parent) : InstantaneousGestureArea(parent, kTap) {} oif-qml-1.0.7/src/oiftaparea.h0000644000000000000000000000107012004105261014251 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #ifndef OIF_QML_OIFTAPAREA_H_ #define OIF_QML_OIFTAPAREA_H_ #include "instantaneousgesturearea.h" /** * An input-only item for receiving instantaneous tap gesture events. */ class OIFTapArea : public InstantaneousGestureArea { Q_OBJECT public: explicit OIFTapArea(QDeclarativeItem* parent = 0); private: Q_DISABLE_COPY(OIFTapArea) }; QML_DECLARE_TYPE(OIFTapArea) #endif // OIF_QML_OIFTAPAREA_H_ oif-qml-1.0.7/src/qmldir0000644000000000000000000000001412004105261013175 0ustar 00000000000000plugin oif oif-qml-1.0.7/src/touch.cpp0000644000000000000000000000113212004105261013612 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #include "touch.h" #include "attributes.h" using geis_attributes::PopulateAttributeMap; Touch::Touch() { } void Touch::Initialize(GeisTouch touch) { attributes_.clear(); PopulateAttributeMap< GeisTouch >(touch, &attributes_); id_ = attributes_[GEIS_TOUCH_ATTRIBUTE_ID].toInt(); GeisFloat x = attributes_[GEIS_TOUCH_ATTRIBUTE_X].toFloat(); GeisFloat y = attributes_[GEIS_TOUCH_ATTRIBUTE_Y].toFloat(); location_ = QPointF(x, y); } oif-qml-1.0.7/src/touch.h0000644000000000000000000000247212004105261013267 0ustar 00000000000000/* Copyright 2011 Canonical, Ltd. This software is licensed under the GNU * Lesser General Public License version 3 or later (see the file COPYING). */ #ifndef OIF_QML_TOUCH_H_ #define OIF_QML_TOUCH_H_ #include #include /** * An item that provides information about a touch point. */ class Touch : public QDeclarativeItem { Q_OBJECT /** * This property holds the ID of the touch. */ Q_PROPERTY(int id READ id) /** * This property holds the coordinates of the touch. * * For Indirect and Independent devices, the value is in device coordinates. * For Direct devices, the value is in screen coordinates. */ Q_PROPERTY(QPointF location READ location) /** * This property holds a variant map of attributes of the touch. * * All touch attributes are available in this property. The keys may be * referenced in the geis.h header file. */ Q_PROPERTY(const QVariantMap attributes READ attributes) public: Touch(); void Initialize(GeisTouch touch); int id() const { return id_; } QPointF location() const { return location_; } const QVariantMap attributes() const { return attributes_; } private: int id_; QPointF location_; QVariantMap attributes_; Q_DISABLE_COPY(Touch) }; QML_DECLARE_TYPE(Touch) #endif // OIF_QML_TOUCH_H_