http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/f45ce6f5/_site/docs/useralepyqt/start.html ---------------------------------------------------------------------- diff --git a/_site/docs/useralepyqt/start.html b/_site/docs/useralepyqt/start.html deleted file mode 100644 index d107e34..0000000 --- a/_site/docs/useralepyqt/start.html +++ /dev/null @@ -1,364 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - - <head> - <meta charset="utf-8"> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - - <title>Getting Started</title> - <meta name="description" content="Instrumenting Your Application Globally with Apache UserALE.PyQt5"> - - <link rel="stylesheet" type="text/css" href="/semantic/dist/semantic.min.css"> - <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> - <script src="/semantic/dist/semantic.min.js"></script> - <script src="https://d3js.org/d3.v4.min.js"></script> - <script src="/js/main.js"></script> - - <link rel="stylesheet" href="/assets/main.css"> - <link rel="canonical" href="http://localhost:4000/docs/useralepyqt/start.html"> - <link rel="alternate" type="application/rss+xml" title="Apache SensSoft" href="/feed.xml"> - - -</head> - - - <body> - - <div class="site-header"> - <div id="main-menu" class="ui inverted padded fixed top borderless menu"> - <a class="site-title" href="/"> - <h3 class="ui inverted header item">Apache SensSoft</h3> - </a> - - <div class="right menu"> - <div class="ui dropdown item"> - Components - <div class="menu"> - <a class="item" href="/system">System</a> - <a class="item" href="/userale">UserALE</a> - <a class="item" href="/distill">Distill</a> - <a class="item" href="/tap">Tap</a> - <a class="item" href="/stout">Stout</a> - </div> - </div> - <div class="ui dropdown item"> - <a href="/docs">Docs</a> - <div class="menu"> - <a class="item" href="/docs/system">System</a> - <a class="item" href="/docs/userale">UserALE</a> - <a class="item" href="/docs/useralejs">UserALE.js</a> - <a class="item" href="/docs/useralepyqt">UserALE.pyqt</a> - <a class="item" href="/docs/distill">Distill</a> - <a class="item" href="/docs/tap">Tap</a> - <a class="item" href="/docs/stout">Stout</a> - </div> - </div> - <a class="item" href="/releases">Releases</a> - <a class="item" href="/community">Community</a> - </div> - </div> -</div> - - - <div class="main-wrapper"> - <div class="docs-wrapper"> - <div class="docs-sidebar"> - - - - - - - - - -<!-- <div class="ui inverted list"> - <a class="item" href="/docs">About the Docs</a> -</div> --> -<div id="docs-nav" class="ui inverted accordion"> - - <div class="title"> - - <i class="dropdown icon"></i> - Apache SensSoft - </div> - - <div class="content"> - - <div class="ui inverted bulleted list docs-list"> - - <a class="item" href="/docs/">About the Docs</a> - - <a class="item" href="/docs/contributing.html">Contributing</a> - - </div> - </div> - - - - <div class="title"> - - <i class="dropdown icon"></i> - System - </div> - - <div class="content"> - - <div class="ui inverted bulleted list docs-list"> - - <a class="item" href="/docs/system/">Getting Started</a> - - </div> - </div> - - - <div class="title"> - - <i class="dropdown icon"></i> - UserALE - </div> - - <div class="content"> - - <div class="ui inverted bulleted list docs-list"> - - <a class="item" href="/docs/userale/">About UserALE</a> - - </div> - </div> - - - <div class="title"> - - <i class="dropdown icon"></i> - UserALE.js - </div> - - <div class="content"> - - <div class="ui inverted bulleted list docs-list"> - - <a class="item" href="/docs/useralejs/">Getting Started</a> - - <a class="item" href="/docs/useralejs/troubleshooting.html">Troubleshooting</a> - - <a class="item" href="/docs/useralejs/contributing.html">Contributing</a> - - </div> - </div> - - - <div class="active title"> - - <i class="dropdown icon"></i> - UserALE.pyqt - </div> - - <div class="active content"> - - <div class="ui inverted bulleted list docs-list"> - - <a class="item" href="/docs/useralepyqt/">Installation</a> - - <a class="item" href="/docs/useralepyqt/start.html">Getting Started</a> - - <a class="item" href="/docs/useralepyqt/api.html">API Documentation</a> - - <a class="item" href="/docs/useralepyqt/changelog.html">Changelog</a> - - </div> - </div> - - - <div class="title"> - - <i class="dropdown icon"></i> - Distill - </div> - - <div class="content"> - - <div class="ui inverted bulleted list docs-list"> - - <a class="item" href="/docs/distill/">Installation</a> - - <a class="item" href="/docs/distill/start.html">Getting Started</a> - - <a class="item" href="/docs/distill/api.html">API Documentation</a> - - <a class="item" href="/docs/distill/utilities.html">Apache Distill Utilities</a> - - <a class="item" href="/docs/distill/http.html">Apache Distill HTTP Client</a> - - <a class="item" href="/docs/distill/models.html">Apache Distill Models</a> - - <a class="item" href="/docs/distill/analytics.html">Apache Distill Analytics</a> - - <a class="item" href="/docs/distill/changelog.html">Changelog</a> - - </div> - </div> - - - <div class="title"> - - <i class="dropdown icon"></i> - Tap - </div> - - <div class="content"> - - <div class="ui inverted bulleted list docs-list"> - - <a class="item" href="/docs/tap/">Getting Started</a> - - </div> - </div> - - - <div class="title"> - - <i class="dropdown icon"></i> - Stout - </div> - - <div class="content"> - - <div class="ui inverted bulleted list docs-list"> - - <a class="item" href="/docs/stout/">About Stout</a> - - <a class="item" href="/docs/stout/start.html">Getting Started</a> - - </div> - </div> -</div> - - </div> - <div class="docs-content"> - <h2 class="ui header">Getting Started</h2> - <h3 id="instrumenting-your-application-globally-with-apache-useralepyqt5">Instrumenting Your Application Globally with Apache UserALE.PyQt5</h3> - -<p>Itâs very simple to instrument a PyQt5 application with Apache UserALE.PyQt5. Simply import the Apache UserALE.PyQt5 library and register it with your application.</p> - -<p>Below is an example PyQt5 application taken from ZetCode PyQt5 tutorial instrumented with Apache UserALE.PyQt5.</p> - -<div class="language-python highlighter-rouge"><pre class="highlight"><code> <span class="kn">import</span> <span class="nn">sys</span> - <span class="kn">from</span> <span class="nn">PyQt5.QtWidgets</span> <span class="kn">import</span> <span class="n">QWidget</span><span class="p">,</span> <span class="n">QLabel</span><span class="p">,</span> <span class="n">QPushButton</span><span class="p">,</span> <span class="n">QApplication</span><span class="p">,</span> <span class="n">QMessageBox</span> - <span class="kn">from</span> <span class="nn">PyQt5.QtCore</span> <span class="kn">import</span> <span class="n">QCoreApplication</span><span class="p">,</span> <span class="n">QObject</span><span class="p">,</span> <span class="n">QEvent</span> - - <span class="kn">from</span> <span class="nn">userale.ale</span> <span class="kn">import</span> <span class="n">Ale</span> - - <span class="k">class</span> <span class="nc">TestApplication</span> <span class="p">(</span><span class="n">QWidget</span><span class="p">):</span> - - <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> - <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">__init__</span><span class="p">()</span> - <span class="bp">self</span><span class="o">.</span><span class="n">initUI</span><span class="p">()</span> - - <span class="k">def</span> <span class="nf">initUI</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> - <span class="n">qbtn</span> <span class="o">=</span> <span class="n">QPushButton</span><span class="p">(</span><span class="s">'Quit'</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span> - <span class="n">qbtn</span><span class="o">.</span><span class="n">setObjectName</span> <span class="p">(</span><span class="s">"testApplicationButton"</span><span class="p">)</span> - <span class="n">qbtn</span><span class="o">.</span><span class="n">clicked</span><span class="o">.</span><span class="n">connect</span><span class="p">(</span><span class="n">QCoreApplication</span><span class="o">.</span><span class="n">instance</span><span class="p">()</span><span class="o">.</span><span class="n">quit</span><span class="p">)</span> - <span class="n">qbtn</span><span class="o">.</span><span class="n">resize</span><span class="p">(</span><span class="n">qbtn</span><span class="o">.</span><span class="n">sizeHint</span><span class="p">())</span> - <span class="n">qbtn</span><span class="o">.</span><span class="n">move</span><span class="p">(</span><span class="mi">50</span><span class="p">,</span> <span class="mi">50</span><span class="p">)</span> - - <span class="bp">self</span><span class="o">.</span><span class="n">setGeometry</span><span class="p">(</span><span class="mi">300</span><span class="p">,</span> <span class="mi">300</span><span class="p">,</span> <span class="mi">250</span><span class="p">,</span> <span class="mi">150</span><span class="p">)</span> - <span class="bp">self</span><span class="o">.</span><span class="n">setWindowTitle</span><span class="p">(</span><span class="s">'Quit button'</span><span class="p">)</span> - <span class="bp">self</span><span class="o">.</span><span class="n">show</span><span class="p">()</span> - - <span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">'__main__'</span><span class="p">:</span> - <span class="n">app</span> <span class="o">=</span> <span class="n">QApplication</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">)</span> - <span class="n">ex</span> <span class="o">=</span> <span class="n">TestApplication</span><span class="p">()</span> - <span class="c"># Initiate Apache UserALE.PyQt5</span> - <span class="n">ale</span> <span class="o">=</span> <span class="n">Ale</span> <span class="p">(</span><span class="n">output</span><span class="o">=</span><span class="s">"mouse.log"</span><span class="p">,</span> <span class="n">user</span><span class="o">=</span><span class="s">"testUser"</span><span class="p">,</span> <span class="n">toolversion</span><span class="o">=</span><span class="s">"0.0.1"</span><span class="p">)</span> - <span class="c"># install globally</span> - <span class="n">app</span><span class="o">.</span><span class="n">installEventFilter</span> <span class="p">(</span><span class="n">ale</span><span class="p">)</span> - - <span class="n">sys</span><span class="o">.</span><span class="nb">exit</span> <span class="p">(</span><span class="n">app</span><span class="o">.</span><span class="n">exec_</span><span class="p">())</span> -</code></pre> -</div> - -<p>Before we enter the mainloop of the application, UserAle needs to register the application to be instrumented. Simply instantiate Apache UserALE.PyQt5 and install it as an event filter in your application.</p> - -<div class="language-python highlighter-rouge"><pre class="highlight"><code> <span class="c"># Initiate UserAle</span> - <span class="n">ale</span> <span class="o">=</span> <span class="n">Ale</span> <span class="p">(</span><span class="n">output</span><span class="o">=</span><span class="s">"mouse.log"</span><span class="p">,</span> <span class="n">user</span><span class="o">=</span><span class="s">"testUser"</span><span class="p">,</span> <span class="n">toolversion</span><span class="o">=</span><span class="s">"0.0.1"</span><span class="p">)</span> - <span class="c"># install globally</span> - <span class="n">app</span><span class="o">.</span><span class="n">installEventFilter</span> <span class="p">(</span><span class="n">ale</span><span class="p">)</span> -</code></pre> -</div> - -<h3 id="instrumenting-your-application-manually-with-apache-useralepyqt5">Instrumenting Your Application Manually with Apache UserALE.PyQt5</h3> - -<p><em>Todo:</em> Write guidelines for instrumenting specific PyQt5 Widgets with Apache UserALE.PyQt5.</p> - - </div> -</div> - - </div> - - <div class="footer ui inverted very padded vertical segment"> - <div class="ui vertical segment"> - <div class="ui four column grid"> - <div class="column"> - <h4 class="ui inverted header">About</h4> - <div class="ui inverted link list"> - <a class="item" href="/system">System</a> - <a class="item" href="/userale">UserALE</a> - <a class="item" href="/distill">Distill</a> - <a class="item" href="/tap">Tap</a> - <a class="item" href="/stout">Stout</a> - </div> - </div> - <div class="column"> - <h4 class="ui inverted header">Docs</h4> - <div class="ui inverted link list"> - <a class="item" href="/docs/system">System</a> - <a class="item" href="/docs/userale">UserALE</a> - <a class="item" href="/docs/useralejs">UserAle.js</a> - <a class="item" href="/docs/useralepyqt">UserAle.pyqt</a> - <a class="item" href="/docs/distill">Distill</a> - <a class="item" href="/docs/tap">Tap</a> - <a class="item" href="/docs/stout">Stout</a> - </div> - </div> - <div class="column"> - <h4 class="ui inverted header">Community</h4> - <div class="ui inverted link list"> - <a class="item" href="https://github.com/apache?q=senssoft">GitHub</a> - <a class="item" href="http://stackoverflow.com/questions/tagged/apache-senssoft">StackOverflow</a> - <a class="item" href="https://issues.apache.org/jira/browse/SENSSOFT">Jira Issue Tracker</a> - <a class="item" href="https://cwiki.apache.org/confluence/display/SENSSOFT">Project Wiki</a> - <a class="item" href="https://twitter.com/apachesenssoft">Twitter</a> - </div> - </div> - <div class="column"> - <h4 class="ui inverted header">Apache</h4> - <div class="ui inverted link list"> - <a class="item" href="http://www.apache.org/licenses/LICENSE-2.0.html">License</a> - <a class="item" href="http://www.apache.org/">Apache Software Foundation</a> - <a class="item" href="http://incubator.apache.org/">Apache Incubator</a> - <a class="item" href="http://www.apache.org/foundation/sponsorship.html">Sponsor Apache</a> - <a class="item" href="http://www.apache.org/foundation/thanks.html">Thank you</a> - </div> - </div> - </div> - </div> - <div class="ui inverted vertical segment"> - <div class="ui two column middle aligned grid"> - <div class="column"> - Apache SensSoft is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF. - </div> - <div class="center aligned column"> - <img class="component-image" src="/images/incubator-logo-white.png"> - <br> - Copyright © 2017 The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, and the Apache Incubator logo are trademarks of The Apache Software Foundation. Software as a Sensor is a trademark of the Charles Stark Draper Laboratory, Inc. - </div> - </div> - </div> -</div> - - - </body> - -</html>
http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/f45ce6f5/_site/feed.xml ---------------------------------------------------------------------- diff --git a/_site/feed.xml b/_site/feed.xml deleted file mode 100644 index 459cf32..0000000 --- a/_site/feed.xml +++ /dev/null @@ -1 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/xml" href="http://localhost:4000/feed.xslt.xml"?><feed xmlns="http://www.w3.org/2005/Atom"><generator uri="http://jekyllrb.com" version="3.3.1">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2017-01-12T12:02:56-05:00</updated><id>http://localhost:4000//</id><title type="html">Apache SensSoft</title><subtitle>The homepage for Apache SensSoft</subtitle></feed> http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/f45ce6f5/_site/feed.xslt.xml ---------------------------------------------------------------------- diff --git a/_site/feed.xslt.xml b/_site/feed.xslt.xml deleted file mode 100644 index 15901c1..0000000 --- a/_site/feed.xslt.xml +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?><xsl:transform version="1.0" - xmlns:a="http://www.w3.org/2005/Atom" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -><xsl:strip-space elements="*"/><xsl:output method="text"/><xsl:template match="*"/><xsl:template match="a:feed"><xsl:text>Atom Feed:</xsl:text><xsl:value-of select="a:id"/><xsl:text> </xsl:text><xsl:apply-templates/></xsl:template><xsl:template match="a:entry"><xsl:text> ---------------------------------------- </xsl:text><xsl:text> Feed entry:</xsl:text><xsl:value-of select="a:id"/><xsl:text> </xsl:text><xsl:apply-templates/></xsl:template><xsl:template match="a:title"><xsl:if test="parent::a:entry"><xsl:value-of select="' '"/></xsl:if><xsl:value-of select="local-name()"/>:<xsl:apply-templates/><xsl:text> </xsl:text></xsl:template><xsl:template match="a:published|a:updated"><xsl:if test="parent::a:entry"><xsl:value-of select="' '"/></xsl:if><xsl:value-of select="local-name()"/>:<xsl:apply-templates/><xsl:text> </xsl:text></xsl:template></xsl:transform> http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/f45ce6f5/_site/images/distill.png ---------------------------------------------------------------------- diff --git a/_site/images/distill.png b/_site/images/distill.png deleted file mode 100644 index 0d215aa..0000000 Binary files a/_site/images/distill.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/f45ce6f5/_site/images/distill_inverted.png ---------------------------------------------------------------------- diff --git a/_site/images/distill_inverted.png b/_site/images/distill_inverted.png deleted file mode 100644 index afaa8c9..0000000 Binary files a/_site/images/distill_inverted.png and /dev/null differ