-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 50f4ceadb5651794d817cedd16469637 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,199 @@ | ||
<!DOCTYPE html> | ||
<html class="writer-html5" lang="en" data-content_root="../../../../../"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>siriushla.as_ap_configdb.pvsconfigs.delegate.pv_configuration_delegate — siriushla 1.6.0 documentation</title> | ||
<link rel="stylesheet" type="text/css" href="../../../../../_static/pygments.css?v=b86133f3" /> | ||
<link rel="stylesheet" type="text/css" href="../../../../../_static/css/theme.css?v=19f00094" /> | ||
|
||
|
||
<!--[if lt IE 9]> | ||
<script src="../../../../../_static/js/html5shiv.min.js"></script> | ||
<![endif]--> | ||
|
||
<script src="../../../../../_static/jquery.js?v=5d32c60e"></script> | ||
<script src="../../../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> | ||
<script src="../../../../../_static/documentation_options.js?v=72d88caf"></script> | ||
<script src="../../../../../_static/doctools.js?v=888ff710"></script> | ||
<script src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script src="../../../../../_static/js/theme.js"></script> | ||
<link rel="index" title="Index" href="../../../../../genindex.html" /> | ||
<link rel="search" title="Search" href="../../../../../search.html" /> | ||
</head> | ||
|
||
<body class="wy-body-for-nav"> | ||
<div class="wy-grid-for-nav"> | ||
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> | ||
<div class="wy-side-scroll"> | ||
<div class="wy-side-nav-search" > | ||
|
||
|
||
|
||
<a href="../../../../../index.html" class="icon icon-home"> | ||
siriushla | ||
</a> | ||
<div class="version"> | ||
1.6.0 | ||
</div> | ||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../../../../../search.html" method="get"> | ||
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" /> | ||
<input type="hidden" name="check_keywords" value="yes" /> | ||
<input type="hidden" name="area" value="default" /> | ||
</form> | ||
</div> | ||
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> | ||
<p class="caption" role="heading"><span class="caption-text">GUIs:</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_configdb.html">siriushla.as_ap_configdb</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_currinfo.html">siriushla.as_ap_currinfo</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_energybutton.html">siriushla.as_ap_energybutton</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_injcontrol.html">siriushla.as_ap_injcontrol</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_injection.html">siriushla.as_ap_injection</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_launcher.html">siriushla.as_ap_launcher</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_machshift.html">siriushla.as_ap_machshift</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_macreport.html">siriushla.as_ap_macreport</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_magoffconv.html">siriushla.as_ap_magoffconv</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_measure.html">siriushla.as_ap_measure</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_monitor.html">siriushla.as_ap_monitor</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_opticscorr.html">siriushla.as_ap_opticscorr</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_posang.html">siriushla.as_ap_posang</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_rabpmmon.html">siriushla.as_ap_rabpmmon</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_radmon.html">siriushla.as_ap_radmon</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ap_sofb.html">siriushla.as_ap_sofb</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_di_bpms.html">siriushla.as_di_bpms</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_di_dccts.html">siriushla.as_di_dccts</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_di_icts.html">siriushla.as_di_icts</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_di_scrns.html">siriushla.as_di_scrns</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_di_tune.html">siriushla.as_di_tune</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_di_vlight.html">siriushla.as_di_vlight</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ps_commands.html">siriushla.as_ps_commands</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ps_control.html">siriushla.as_ps_control</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ps_cycle.html">siriushla.as_ps_cycle</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ps_diag.html">siriushla.as_ps_diag</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_pu_control.html">siriushla.as_pu_control</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_rf_control.html">siriushla.as_rf_control</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.as_ti_control.html">siriushla.as_ti_control</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.bl_ap_imgproc.html">siriushla.bl_ap_imgproc</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.bo_ap_ramp.html">siriushla.bo_ap_ramp</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.common.html">siriushla.common</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.li_ap_mps.html">siriushla.li_ap_mps</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.li_di_bpms.html">siriushla.li_di_bpms</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.li_di_scrns.html">siriushla.li_di_scrns</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.li_eg_control.html">siriushla.li_eg_control</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.li_pu_modltr.html">siriushla.li_pu_modltr</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.li_rf_llrf.html">siriushla.li_rf_llrf</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.li_va_control.html">siriushla.li_va_control</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.si_ap_fofb.html">siriushla.si_ap_fofb</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.si_ap_genstatus.html">siriushla.si_ap_genstatus</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.si_ap_idff.html">siriushla.si_ap_idff</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.si_ap_orbintlk.html">siriushla.si_ap_orbintlk</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.si_di_bbb.html">siriushla.si_di_bbb</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.si_di_equalize_bpms.html">siriushla.si_di_equalize_bpms</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.si_di_scraps.html">siriushla.si_di_scraps</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.si_id_control.html">siriushla.si_id_control</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.tb_di_slits.html">siriushla.tb_di_slits</a></li> | ||
</ul> | ||
<p class="caption" role="heading"><span class="caption-text">Widgets:</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.html">Sirius HLA</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../../siriushla.widgets.html">Widgets</a></li> | ||
</ul> | ||
<p class="caption" role="heading"><span class="caption-text">Source Code:</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference external" href="https://github.com/lnls-sirius/hla">HLA Github</a></li> | ||
</ul> | ||
|
||
</div> | ||
</div> | ||
</nav> | ||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > | ||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> | ||
<a href="../../../../../index.html">siriushla</a> | ||
</nav> | ||
|
||
<div class="wy-nav-content"> | ||
<div class="rst-content"> | ||
<div role="navigation" aria-label="Page navigation"> | ||
<ul class="wy-breadcrumbs"> | ||
<li><a href="../../../../../index.html" class="icon icon-home" aria-label="Home"></a></li> | ||
<li class="breadcrumb-item"><a href="../../../../index.html">Module code</a></li> | ||
<li class="breadcrumb-item active">siriushla.as_ap_configdb.pvsconfigs.delegate.pv_configuration_delegate</li> | ||
<li class="wy-breadcrumbs-aside"> | ||
</li> | ||
</ul> | ||
<hr/> | ||
</div> | ||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<div itemprop="articleBody"> | ||
|
||
<h1>Source code for siriushla.as_ap_configdb.pvsconfigs.delegate.pv_configuration_delegate</h1><div class="highlight"><pre> | ||
<span></span><span class="sd">"""Configuration Delegate."""</span> | ||
|
||
<span class="kn">from</span><span class="w"> </span><span class="nn">qtpy.QtCore</span><span class="w"> </span><span class="kn">import</span> <span class="n">Qt</span> | ||
<span class="kn">from</span><span class="w"> </span><span class="nn">qtpy.QtWidgets</span><span class="w"> </span><span class="kn">import</span> <span class="n">QItemDelegate</span><span class="p">,</span> <span class="n">QDoubleSpinBox</span> | ||
|
||
|
||
<div class="viewcode-block" id="PVConfigurationDelegate"> | ||
<a class="viewcode-back" href="../../../../../siriushla.as_ap_configdb.pvsconfigs.delegate.html#siriushla.as_ap_configdb.pvsconfigs.delegate.pv_configuration_delegate.PVConfigurationDelegate">[docs]</a> | ||
<span class="k">class</span><span class="w"> </span><span class="nc">PVConfigurationDelegate</span><span class="p">(</span><span class="n">QItemDelegate</span><span class="p">):</span> | ||
|
||
<div class="viewcode-block" id="PVConfigurationDelegate.createEditor"> | ||
<a class="viewcode-back" href="../../../../../siriushla.as_ap_configdb.pvsconfigs.delegate.html#siriushla.as_ap_configdb.pvsconfigs.delegate.pv_configuration_delegate.PVConfigurationDelegate.createEditor">[docs]</a> | ||
<span class="k">def</span><span class="w"> </span><span class="nf">createEditor</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">parent</span><span class="p">,</span> <span class="n">option</span><span class="p">,</span> <span class="n">index</span><span class="p">):</span> | ||
<span class="w"> </span><span class="sd">"""Override.</span> | ||
|
||
<span class="sd"> Create and editor based on the cell type</span> | ||
<span class="sd"> """</span> | ||
<span class="k">if</span> <span class="n">index</span><span class="o">.</span><span class="n">column</span><span class="p">()</span> <span class="o">==</span> <span class="mi">2</span><span class="p">:</span> | ||
<span class="n">editor</span> <span class="o">=</span> <span class="n">QDoubleSpinBox</span><span class="p">(</span><span class="n">parent</span><span class="p">)</span> | ||
<span class="n">editor</span><span class="o">.</span><span class="n">setDecimals</span><span class="p">(</span><span class="mi">3</span><span class="p">)</span> | ||
<span class="n">editor</span><span class="o">.</span><span class="n">setMaximum</span><span class="p">(</span><span class="mi">10</span><span class="p">)</span> | ||
<span class="n">editor</span><span class="o">.</span><span class="n">setMinimum</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span> | ||
<span class="n">editor</span><span class="o">.</span><span class="n">setSingleStep</span><span class="p">(</span><span class="mf">0.001</span><span class="p">)</span> | ||
<span class="k">return</span> <span class="n">editor</span></div> | ||
|
||
|
||
<div class="viewcode-block" id="PVConfigurationDelegate.setEditorData"> | ||
<a class="viewcode-back" href="../../../../../siriushla.as_ap_configdb.pvsconfigs.delegate.html#siriushla.as_ap_configdb.pvsconfigs.delegate.pv_configuration_delegate.PVConfigurationDelegate.setEditorData">[docs]</a> | ||
<span class="k">def</span><span class="w"> </span><span class="nf">setEditorData</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">editor</span><span class="p">,</span> <span class="n">index</span><span class="p">):</span> | ||
<span class="w"> </span><span class="sd">"""Override.</span> | ||
|
||
<span class="sd"> Set cell data as float.</span> | ||
<span class="sd"> """</span> | ||
<span class="n">value</span> <span class="o">=</span> <span class="n">index</span><span class="o">.</span><span class="n">model</span><span class="p">()</span><span class="o">.</span><span class="n">data</span><span class="p">(</span><span class="n">index</span><span class="p">,</span> <span class="n">Qt</span><span class="o">.</span><span class="n">DisplayRole</span><span class="p">)</span> | ||
<span class="n">editor</span><span class="o">.</span><span class="n">setValue</span><span class="p">(</span><span class="n">value</span><span class="p">)</span></div> | ||
</div> | ||
|
||
</pre></div> | ||
|
||
</div> | ||
</div> | ||
<footer> | ||
|
||
<hr/> | ||
|
||
<div role="contentinfo"> | ||
<p>© Copyright 2025, lnls-sirius.</p> | ||
</div> | ||
|
||
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a | ||
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> | ||
provided by <a href="https://readthedocs.org">Read the Docs</a>. | ||
|
||
|
||
</footer> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
<script> | ||
jQuery(function () { | ||
SphinxRtdTheme.Navigation.enable(true); | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |