Now presets auto reload inner timers. New icon. New version
6
Doxyfile
|
@ -38,7 +38,7 @@ PROJECT_NAME = "Boxing Timer"
|
|||
# could be handy for archiving the generated documentation or if some version
|
||||
# control system is used.
|
||||
|
||||
PROJECT_NUMBER = 1.0
|
||||
PROJECT_NUMBER = 0.1a
|
||||
|
||||
# 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
|
||||
|
@ -51,7 +51,7 @@ PROJECT_BRIEF =
|
|||
# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
|
||||
# the logo to the output directory.
|
||||
|
||||
PROJECT_LOGO =
|
||||
PROJECT_LOGO = /home/penguyman/Progetti/harbour-boxing-timer/icons/256x256/harbour-boxing-timer.png
|
||||
|
||||
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
|
||||
# into which the generated documentation will be written. If a relative path is
|
||||
|
@ -238,7 +238,7 @@ TAB_SIZE = 4
|
|||
# "Side Effects:". You can put \n's in the value part of an alias to insert
|
||||
# newlines.
|
||||
|
||||
ALIASES = "accessors=\par Accessors:\n"
|
||||
ALIASES = "accessors=\par Accessors:\n"
|
||||
|
||||
# This tag can be used to specify a number of word-keyword mappings (TCL only).
|
||||
# A mapping has the form "name=value". For example adding "class=itcl::class"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
@ -69,6 +70,7 @@ $(function() {
|
|||
<div class="contents">
|
||||
<div class="textblock"><code>#include "<a class="el" href="boxingsettings_8h_source.html">boxingsettings.h</a>"</code><br />
|
||||
<code>#include <QString></code><br />
|
||||
<code>#include <QVariant></code><br />
|
||||
</div></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
@ -72,6 +73,7 @@ $(function() {
|
|||
<div class="textblock"><code>#include <QString></code><br />
|
||||
<code>#include <QStringList></code><br />
|
||||
<code>#include <QSettings></code><br />
|
||||
<code>#include <QList></code><br />
|
||||
</div>
|
||||
<p><a href="boxingsettings_8h_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
@ -69,6 +70,8 @@ $(function() {
|
|||
<tr class="even"><td class="entry"><a class="el" href="class_boxing_settings.html#a62af206ef42670b751e0cec59c206896">BoxingSettings</a>()</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_boxing_settings.html#a6dc7071565573dbd59d3eb94613b2433">BoxingSettings</a>(const int &rounds, const int &roundMilliseconds, const int &restMilliseconds)</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_boxing_settings.html#a6475be7b9b7eacc3b4a9ca853311b5a9">deletePreset</a>(const QString &name)</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_boxing_settings.html#a7ddc31fa4c9bea682674cb938d2d9e24">getInnerTimer</a>(const int &index)</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_boxing_settings.html#abdabae9cd200706c2d207ada15b1c04c">getInnerTimers</a>()</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_boxing_settings.html#a2d03c793ed7ad6e97894e21b1f85105b">getPreset</a>()</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_boxing_settings.html#ac0641004a9f244dcce8056c722685065">getPresetName</a>()</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_boxing_settings.html#a84fd6052ef19488b015638c68fa2be72">getRestMilliseconds</a>()</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
|
@ -76,7 +79,7 @@ $(function() {
|
|||
<tr><td class="entry"><a class="el" href="class_boxing_settings.html#ae57079ed791d793bfb310712063b1dab">getRounds</a>()</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_boxing_settings.html#a811dbd6c80f86ad219bbb9166571a2e9">presetChanged</a>()</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_boxing_settings.html#a507b3038f2851cff0d17fffc027019de">presetsList</a>()</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_boxing_settings.html#a24906b544896052c08f0b93ded92823b">savePreset</a>(const QString &name, const int &rounds, const int &roundMilliseconds, const int &restMilliseconds)</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_boxing_settings.html#a8402eca09f44d4b3773ac1fd12e8dcda">savePreset</a>(const QString &name, const int &rounds, const int &roundMilliseconds, const int &restMilliseconds, const QList< int > &innerTimers)</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_boxing_settings.html#a71e6d017856266fa95b07ed0030ed05b">setPreset</a>(const QString &preset)</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_boxing_settings.html#ad7c283d2b4ebe1333c1680a0fd19cb0c">setRestMilliseconds</a>(const int &restMilliseconds)</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_boxing_settings.html#aaa691ab3a2fa5d1812975207b7e9f9ed">setRoundMilliseconds</a>(const int &roundMilliseconds)</td><td class="entry"><a class="el" href="class_boxing_settings.html">BoxingSettings</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
@ -90,12 +91,15 @@ Signals</h2></td></tr>
|
|||
Public Member Functions</h2></td></tr>
|
||||
<tr class="memitem:a507b3038f2851cff0d17fffc027019de"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE const QStringList </td><td class="memItemRight" valign="bottom"><a class="el" href="class_boxing_settings.html#a507b3038f2851cff0d17fffc027019de">presetsList</a> ()</td></tr>
|
||||
<tr class="separator:a507b3038f2851cff0d17fffc027019de"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a24906b544896052c08f0b93ded92823b"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_boxing_settings.html#a24906b544896052c08f0b93ded92823b">savePreset</a> (const QString &name, const int &rounds, const int &roundMilliseconds, const int &restMilliseconds)</td></tr>
|
||||
<tr class="memdesc:a24906b544896052c08f0b93ded92823b"><td class="mdescLeft"> </td><td class="mdescRight">Save or override settings about specific preset. <a href="#a24906b544896052c08f0b93ded92823b">More...</a><br /></td></tr>
|
||||
<tr class="separator:a24906b544896052c08f0b93ded92823b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a8402eca09f44d4b3773ac1fd12e8dcda"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_boxing_settings.html#a8402eca09f44d4b3773ac1fd12e8dcda">savePreset</a> (const QString &name, const int &rounds, const int &roundMilliseconds, const int &restMilliseconds, const QList< int > &innerTimers)</td></tr>
|
||||
<tr class="memdesc:a8402eca09f44d4b3773ac1fd12e8dcda"><td class="mdescLeft"> </td><td class="mdescRight">Save or override settings about specific preset. <a href="#a8402eca09f44d4b3773ac1fd12e8dcda">More...</a><br /></td></tr>
|
||||
<tr class="separator:a8402eca09f44d4b3773ac1fd12e8dcda"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6475be7b9b7eacc3b4a9ca853311b5a9"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_boxing_settings.html#a6475be7b9b7eacc3b4a9ca853311b5a9">deletePreset</a> (const QString &name)</td></tr>
|
||||
<tr class="memdesc:a6475be7b9b7eacc3b4a9ca853311b5a9"><td class="mdescLeft"> </td><td class="mdescRight">Delete a specified preset. <a href="#a6475be7b9b7eacc3b4a9ca853311b5a9">More...</a><br /></td></tr>
|
||||
<tr class="separator:a6475be7b9b7eacc3b4a9ca853311b5a9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a7ddc31fa4c9bea682674cb938d2d9e24"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_boxing_settings.html#a7ddc31fa4c9bea682674cb938d2d9e24">getInnerTimer</a> (const int &index)</td></tr>
|
||||
<tr class="memdesc:a7ddc31fa4c9bea682674cb938d2d9e24"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="class_boxing_settings.html#a7ddc31fa4c9bea682674cb938d2d9e24" title="getInnerTimer(const int &index) ">getInnerTimer(const int &index)</a> <a href="#a7ddc31fa4c9bea682674cb938d2d9e24">More...</a><br /></td></tr>
|
||||
<tr class="separator:a7ddc31fa4c9bea682674cb938d2d9e24"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a62af206ef42670b751e0cec59c206896"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_boxing_settings.html#a62af206ef42670b751e0cec59c206896">BoxingSettings</a> ()</td></tr>
|
||||
<tr class="separator:a62af206ef42670b751e0cec59c206896"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6dc7071565573dbd59d3eb94613b2433"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_boxing_settings.html#a6dc7071565573dbd59d3eb94613b2433">BoxingSettings</a> (const int &rounds, const int &roundMilliseconds, const int &restMilliseconds)</td></tr>
|
||||
|
@ -106,6 +110,9 @@ Public Member Functions</h2></td></tr>
|
|||
<tr class="separator:a2b9ff4ab1dbd14f5e8f37b88677e73f4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a84fd6052ef19488b015638c68fa2be72"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_boxing_settings.html#a84fd6052ef19488b015638c68fa2be72">getRestMilliseconds</a> ()</td></tr>
|
||||
<tr class="separator:a84fd6052ef19488b015638c68fa2be72"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:abdabae9cd200706c2d207ada15b1c04c"><td class="memItemLeft" align="right" valign="top">QList< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_boxing_settings.html#abdabae9cd200706c2d207ada15b1c04c">getInnerTimers</a> ()</td></tr>
|
||||
<tr class="memdesc:abdabae9cd200706c2d207ada15b1c04c"><td class="mdescLeft"> </td><td class="mdescRight">gerInnerTimers() <a href="#abdabae9cd200706c2d207ada15b1c04c">More...</a><br /></td></tr>
|
||||
<tr class="separator:abdabae9cd200706c2d207ada15b1c04c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2d03c793ed7ad6e97894e21b1f85105b"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="class_boxing_settings.html#a2d03c793ed7ad6e97894e21b1f85105b">getPreset</a> ()</td></tr>
|
||||
<tr class="separator:a2d03c793ed7ad6e97894e21b1f85105b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ac0641004a9f244dcce8056c722685065"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="class_boxing_settings.html#ac0641004a9f244dcce8056c722685065">getPresetName</a> ()</td></tr>
|
||||
|
@ -204,6 +211,55 @@ Public Member Functions</h2></td></tr>
|
|||
</dl>
|
||||
<dl class="section author"><dt>Author</dt><dd>Claudio Maradonna <a href="#" onclick="location.href='mai'+'lto:'+'cla'+'ud'+'io@'+'un'+'ito'+'o.'+'pw'; return false;">claud<span style="display: none;">.nosp@m.</span>io@u<span style="display: none;">.nosp@m.</span>nitoo<span style="display: none;">.nosp@m.</span>.pw</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a7ddc31fa4c9bea682674cb938d2d9e24"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a7ddc31fa4c9bea682674cb938d2d9e24">◆ </a></span>getInnerTimer()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int BoxingSettings::getInnerTimer </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const int & </td>
|
||||
<td class="paramname"><em>index</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p><a class="el" href="class_boxing_settings.html#a7ddc31fa4c9bea682674cb938d2d9e24" title="getInnerTimer(const int &index) ">getInnerTimer(const int &index)</a> </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the specific timer in milliseconds </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="abdabae9cd200706c2d207ada15b1c04c"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#abdabae9cd200706c2d207ada15b1c04c">◆ </a></span>getInnerTimers()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QList<int> BoxingSettings::getInnerTimers </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>gerInnerTimers() </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the list of inner timers </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a2d03c793ed7ad6e97894e21b1f85105b"></a>
|
||||
|
@ -380,8 +436,8 @@ Public Member Functions</h2></td></tr>
|
|||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a24906b544896052c08f0b93ded92823b"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a24906b544896052c08f0b93ded92823b">◆ </a></span>savePreset()</h2>
|
||||
<a id="a8402eca09f44d4b3773ac1fd12e8dcda"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a8402eca09f44d4b3773ac1fd12e8dcda">◆ </a></span>savePreset()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
|
@ -408,7 +464,13 @@ Public Member Functions</h2></td></tr>
|
|||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const int & </td>
|
||||
<td class="paramname"><em>restMilliseconds</em> </td>
|
||||
<td class="paramname"><em>restMilliseconds</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const QList< int > & </td>
|
||||
<td class="paramname"><em>innerTimers</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
@ -89,6 +90,12 @@ $(function() {
|
|||
|
||||
|
||||
<h3><a id="index_g"></a>- g -</h3><ul>
|
||||
<li>getInnerTimer()
|
||||
: <a class="el" href="class_boxing_settings.html#a7ddc31fa4c9bea682674cb938d2d9e24">BoxingSettings</a>
|
||||
</li>
|
||||
<li>getInnerTimers()
|
||||
: <a class="el" href="class_boxing_settings.html#abdabae9cd200706c2d207ada15b1c04c">BoxingSettings</a>
|
||||
</li>
|
||||
<li>getPreset()
|
||||
: <a class="el" href="class_boxing_settings.html#a2d03c793ed7ad6e97894e21b1f85105b">BoxingSettings</a>
|
||||
, <a class="el" href="class_boxing_timer.html#aae9b18b16d38e1dd98a33ff0d0bed959">BoxingTimer</a>
|
||||
|
@ -150,7 +157,7 @@ $(function() {
|
|||
|
||||
<h3><a id="index_s"></a>- s -</h3><ul>
|
||||
<li>savePreset()
|
||||
: <a class="el" href="class_boxing_settings.html#a24906b544896052c08f0b93ded92823b">BoxingSettings</a>
|
||||
: <a class="el" href="class_boxing_settings.html#a8402eca09f44d4b3773ac1fd12e8dcda">BoxingSettings</a>
|
||||
</li>
|
||||
<li>setPreset()
|
||||
: <a class="el" href="class_boxing_settings.html#a71e6d017856266fa95b07ed0030ed05b">BoxingSettings</a>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
@ -89,6 +90,12 @@ $(function() {
|
|||
|
||||
|
||||
<h3><a id="index_g"></a>- g -</h3><ul>
|
||||
<li>getInnerTimer()
|
||||
: <a class="el" href="class_boxing_settings.html#a7ddc31fa4c9bea682674cb938d2d9e24">BoxingSettings</a>
|
||||
</li>
|
||||
<li>getInnerTimers()
|
||||
: <a class="el" href="class_boxing_settings.html#abdabae9cd200706c2d207ada15b1c04c">BoxingSettings</a>
|
||||
</li>
|
||||
<li>getPreset()
|
||||
: <a class="el" href="class_boxing_settings.html#a2d03c793ed7ad6e97894e21b1f85105b">BoxingSettings</a>
|
||||
, <a class="el" href="class_boxing_timer.html#aae9b18b16d38e1dd98a33ff0d0bed959">BoxingTimer</a>
|
||||
|
@ -150,7 +157,7 @@ $(function() {
|
|||
|
||||
<h3><a id="index_s"></a>- s -</h3><ul>
|
||||
<li>savePreset()
|
||||
: <a class="el" href="class_boxing_settings.html#a24906b544896052c08f0b93ded92823b">BoxingSettings</a>
|
||||
: <a class="el" href="class_boxing_settings.html#a8402eca09f44d4b3773ac1fd12e8dcda">BoxingSettings</a>
|
||||
</li>
|
||||
<li>setPreset()
|
||||
: <a class="el" href="class_boxing_settings.html#a71e6d017856266fa95b07ed0030ed05b">BoxingSettings</a>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
After Width: | Height: | Size: 11 KiB |
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
@ -70,6 +71,7 @@ $(function() {
|
|||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><code>#include <QtQuick></code><br />
|
||||
<code>#include <QList></code><br />
|
||||
<code>#include <sailfishapp.h></code><br />
|
||||
<code>#include "<a class="el" href="boxingtimer_8h_source.html">boxingtimer.h</a>"</code><br />
|
||||
<code>#include "<a class="el" href="boxingsettings_8h_source.html">boxingsettings.h</a>"</code><br />
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Boxing Timer
|
||||
 <span id="projectnumber">0.1a</span>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
var searchData=
|
||||
[
|
||||
['getinnertimer',['getInnerTimer',['../class_boxing_settings.html#a7ddc31fa4c9bea682674cb938d2d9e24',1,'BoxingSettings']]],
|
||||
['getinnertimers',['getInnerTimers',['../class_boxing_settings.html#abdabae9cd200706c2d207ada15b1c04c',1,'BoxingSettings']]],
|
||||
['getpreset',['getPreset',['../class_boxing_settings.html#a2d03c793ed7ad6e97894e21b1f85105b',1,'BoxingSettings::getPreset()'],['../class_boxing_timer.html#aae9b18b16d38e1dd98a33ff0d0bed959',1,'BoxingTimer::getPreset()']]],
|
||||
['getpresetname',['getPresetName',['../class_boxing_settings.html#ac0641004a9f244dcce8056c722685065',1,'BoxingSettings']]],
|
||||
['getrestmilliseconds',['getRestMilliseconds',['../class_boxing_settings.html#a84fd6052ef19488b015638c68fa2be72',1,'BoxingSettings']]],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
var searchData=
|
||||
[
|
||||
['savepreset',['savePreset',['../class_boxing_settings.html#a24906b544896052c08f0b93ded92823b',1,'BoxingSettings']]],
|
||||
['savepreset',['savePreset',['../class_boxing_settings.html#a8402eca09f44d4b3773ac1fd12e8dcda',1,'BoxingSettings']]],
|
||||
['setpreset',['setPreset',['../class_boxing_settings.html#a71e6d017856266fa95b07ed0030ed05b',1,'BoxingSettings']]],
|
||||
['setrestmilliseconds',['setRestMilliseconds',['../class_boxing_settings.html#ad7c283d2b4ebe1333c1680a0fd19cb0c',1,'BoxingSettings']]],
|
||||
['setroundmilliseconds',['setRoundMilliseconds',['../class_boxing_settings.html#aaa691ab3a2fa5d1812975207b7e9f9ed',1,'BoxingSettings']]],
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
var searchData=
|
||||
[
|
||||
['getinnertimer',['getInnerTimer',['../class_boxing_settings.html#a7ddc31fa4c9bea682674cb938d2d9e24',1,'BoxingSettings']]],
|
||||
['getinnertimers',['getInnerTimers',['../class_boxing_settings.html#abdabae9cd200706c2d207ada15b1c04c',1,'BoxingSettings']]],
|
||||
['getpreset',['getPreset',['../class_boxing_settings.html#a2d03c793ed7ad6e97894e21b1f85105b',1,'BoxingSettings::getPreset()'],['../class_boxing_timer.html#aae9b18b16d38e1dd98a33ff0d0bed959',1,'BoxingTimer::getPreset()']]],
|
||||
['getpresetname',['getPresetName',['../class_boxing_settings.html#ac0641004a9f244dcce8056c722685065',1,'BoxingSettings']]],
|
||||
['getrestmilliseconds',['getRestMilliseconds',['../class_boxing_settings.html#a84fd6052ef19488b015638c68fa2be72',1,'BoxingSettings']]],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
var searchData=
|
||||
[
|
||||
['savepreset',['savePreset',['../class_boxing_settings.html#a24906b544896052c08f0b93ded92823b',1,'BoxingSettings']]],
|
||||
['savepreset',['savePreset',['../class_boxing_settings.html#a8402eca09f44d4b3773ac1fd12e8dcda',1,'BoxingSettings']]],
|
||||
['setpreset',['setPreset',['../class_boxing_settings.html#a71e6d017856266fa95b07ed0030ed05b',1,'BoxingSettings']]],
|
||||
['setrestmilliseconds',['setRestMilliseconds',['../class_boxing_settings.html#ad7c283d2b4ebe1333c1680a0fd19cb0c',1,'BoxingSettings']]],
|
||||
['setroundmilliseconds',['setRoundMilliseconds',['../class_boxing_settings.html#aaa691ab3a2fa5d1812975207b7e9f9ed',1,'BoxingSettings']]],
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
\label{boxingsettings_8cpp}\index{src/boxingsettings.\+cpp@{src/boxingsettings.\+cpp}}
|
||||
{\ttfamily \#include \char`\"{}boxingsettings.\+h\char`\"{}}\newline
|
||||
{\ttfamily \#include $<$Q\+String$>$}\newline
|
||||
{\ttfamily \#include $<$Q\+Variant$>$}\newline
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
{\ttfamily \#include $<$Q\+String$>$}\newline
|
||||
{\ttfamily \#include $<$Q\+String\+List$>$}\newline
|
||||
{\ttfamily \#include $<$Q\+Settings$>$}\newline
|
||||
{\ttfamily \#include $<$Q\+List$>$}\newline
|
||||
\subsection*{Classes}
|
||||
\begin{DoxyCompactItemize}
|
||||
\item
|
||||
|
|
|
@ -25,10 +25,12 @@ void \hyperlink{class_boxing_settings_a811dbd6c80f86ad219bbb9166571a2e9}{preset\
|
|||
\item
|
||||
Q\+\_\+\+I\+N\+V\+O\+K\+A\+B\+LE const Q\+String\+List \hyperlink{class_boxing_settings_a507b3038f2851cff0d17fffc027019de}{presets\+List} ()
|
||||
\item
|
||||
Q\+\_\+\+I\+N\+V\+O\+K\+A\+B\+LE void \hyperlink{class_boxing_settings_a24906b544896052c08f0b93ded92823b}{save\+Preset} (const Q\+String \&name, const int \&rounds, const int \&round\+Milliseconds, const int \&rest\+Milliseconds)
|
||||
Q\+\_\+\+I\+N\+V\+O\+K\+A\+B\+LE void \hyperlink{class_boxing_settings_a8402eca09f44d4b3773ac1fd12e8dcda}{save\+Preset} (const Q\+String \&name, const int \&rounds, const int \&round\+Milliseconds, const int \&rest\+Milliseconds, const Q\+List$<$ int $>$ \&inner\+Timers)
|
||||
\begin{DoxyCompactList}\small\item\em Save or override settings about specific preset. \end{DoxyCompactList}\item
|
||||
Q\+\_\+\+I\+N\+V\+O\+K\+A\+B\+LE void \hyperlink{class_boxing_settings_a6475be7b9b7eacc3b4a9ca853311b5a9}{delete\+Preset} (const Q\+String \&name)
|
||||
\begin{DoxyCompactList}\small\item\em Delete a specified preset. \end{DoxyCompactList}\item
|
||||
Q\+\_\+\+I\+N\+V\+O\+K\+A\+B\+LE int \hyperlink{class_boxing_settings_a7ddc31fa4c9bea682674cb938d2d9e24}{get\+Inner\+Timer} (const int \&index)
|
||||
\begin{DoxyCompactList}\small\item\em \hyperlink{class_boxing_settings_a7ddc31fa4c9bea682674cb938d2d9e24}{get\+Inner\+Timer(const int \&index)} \end{DoxyCompactList}\item
|
||||
\hyperlink{class_boxing_settings_a62af206ef42670b751e0cec59c206896}{Boxing\+Settings} ()
|
||||
\item
|
||||
\hyperlink{class_boxing_settings_a6dc7071565573dbd59d3eb94613b2433}{Boxing\+Settings} (const int \&rounds, const int \&round\+Milliseconds, const int \&rest\+Milliseconds)
|
||||
|
@ -39,6 +41,8 @@ int \hyperlink{class_boxing_settings_a2b9ff4ab1dbd14f5e8f37b88677e73f4}{get\+Rou
|
|||
\item
|
||||
int \hyperlink{class_boxing_settings_a84fd6052ef19488b015638c68fa2be72}{get\+Rest\+Milliseconds} ()
|
||||
\item
|
||||
Q\+List$<$ int $>$ \hyperlink{class_boxing_settings_abdabae9cd200706c2d207ada15b1c04c}{get\+Inner\+Timers} ()
|
||||
\begin{DoxyCompactList}\small\item\em ger\+Inner\+Timers() \end{DoxyCompactList}\item
|
||||
Q\+String \hyperlink{class_boxing_settings_a2d03c793ed7ad6e97894e21b1f85105b}{get\+Preset} ()
|
||||
\item
|
||||
Q\+String \hyperlink{class_boxing_settings_ac0641004a9f244dcce8056c722685065}{get\+Preset\+Name} ()
|
||||
|
@ -92,6 +96,32 @@ Delete a specified preset.
|
|||
\begin{DoxyAuthor}{Author}
|
||||
Claudio Maradonna \href{mailto:claudio@unitoo.pw}{\tt claudio@unitoo.\+pw}
|
||||
\end{DoxyAuthor}
|
||||
\mbox{\Hypertarget{class_boxing_settings_a7ddc31fa4c9bea682674cb938d2d9e24}\label{class_boxing_settings_a7ddc31fa4c9bea682674cb938d2d9e24}}
|
||||
\index{Boxing\+Settings@{Boxing\+Settings}!get\+Inner\+Timer@{get\+Inner\+Timer}}
|
||||
\index{get\+Inner\+Timer@{get\+Inner\+Timer}!Boxing\+Settings@{Boxing\+Settings}}
|
||||
\subsubsection{\texorpdfstring{get\+Inner\+Timer()}{getInnerTimer()}}
|
||||
{\footnotesize\ttfamily int Boxing\+Settings\+::get\+Inner\+Timer (\begin{DoxyParamCaption}\item[{const int \&}]{index }\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
\hyperlink{class_boxing_settings_a7ddc31fa4c9bea682674cb938d2d9e24}{get\+Inner\+Timer(const int \&index)}
|
||||
|
||||
\begin{DoxyReturn}{Returns}
|
||||
the specific timer in milliseconds
|
||||
\end{DoxyReturn}
|
||||
\mbox{\Hypertarget{class_boxing_settings_abdabae9cd200706c2d207ada15b1c04c}\label{class_boxing_settings_abdabae9cd200706c2d207ada15b1c04c}}
|
||||
\index{Boxing\+Settings@{Boxing\+Settings}!get\+Inner\+Timers@{get\+Inner\+Timers}}
|
||||
\index{get\+Inner\+Timers@{get\+Inner\+Timers}!Boxing\+Settings@{Boxing\+Settings}}
|
||||
\subsubsection{\texorpdfstring{get\+Inner\+Timers()}{getInnerTimers()}}
|
||||
{\footnotesize\ttfamily Q\+List$<$int$>$ Boxing\+Settings\+::get\+Inner\+Timers (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
||||
|
||||
|
||||
|
||||
ger\+Inner\+Timers()
|
||||
|
||||
\begin{DoxyReturn}{Returns}
|
||||
the list of inner timers
|
||||
\end{DoxyReturn}
|
||||
\mbox{\Hypertarget{class_boxing_settings_a2d03c793ed7ad6e97894e21b1f85105b}\label{class_boxing_settings_a2d03c793ed7ad6e97894e21b1f85105b}}
|
||||
\index{Boxing\+Settings@{Boxing\+Settings}!get\+Preset@{get\+Preset}}
|
||||
\index{get\+Preset@{get\+Preset}!Boxing\+Settings@{Boxing\+Settings}}
|
||||
|
@ -155,11 +185,11 @@ Claudio Maradonna \href{mailto:claudio@unitoo.pw}{\tt claudio@unitoo.\+pw}
|
|||
\begin{DoxyReturn}{Returns}
|
||||
a list with available (probably saved) presets
|
||||
\end{DoxyReturn}
|
||||
\mbox{\Hypertarget{class_boxing_settings_a24906b544896052c08f0b93ded92823b}\label{class_boxing_settings_a24906b544896052c08f0b93ded92823b}}
|
||||
\mbox{\Hypertarget{class_boxing_settings_a8402eca09f44d4b3773ac1fd12e8dcda}\label{class_boxing_settings_a8402eca09f44d4b3773ac1fd12e8dcda}}
|
||||
\index{Boxing\+Settings@{Boxing\+Settings}!save\+Preset@{save\+Preset}}
|
||||
\index{save\+Preset@{save\+Preset}!Boxing\+Settings@{Boxing\+Settings}}
|
||||
\subsubsection{\texorpdfstring{save\+Preset()}{savePreset()}}
|
||||
{\footnotesize\ttfamily void Boxing\+Settings\+::save\+Preset (\begin{DoxyParamCaption}\item[{const Q\+String \&}]{name, }\item[{const int \&}]{rounds, }\item[{const int \&}]{round\+Milliseconds, }\item[{const int \&}]{rest\+Milliseconds }\end{DoxyParamCaption})}
|
||||
{\footnotesize\ttfamily void Boxing\+Settings\+::save\+Preset (\begin{DoxyParamCaption}\item[{const Q\+String \&}]{name, }\item[{const int \&}]{rounds, }\item[{const int \&}]{round\+Milliseconds, }\item[{const int \&}]{rest\+Milliseconds, }\item[{const Q\+List$<$ int $>$ \&}]{inner\+Timers }\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
|
|
After Width: | Height: | Size: 11 KiB |
|
@ -1,6 +1,7 @@
|
|||
\hypertarget{harbour-boxing-timer_8cpp}{}\section{src/harbour-\/boxing-\/timer.cpp File Reference}
|
||||
\label{harbour-boxing-timer_8cpp}\index{src/harbour-\/boxing-\/timer.\+cpp@{src/harbour-\/boxing-\/timer.\+cpp}}
|
||||
{\ttfamily \#include $<$Qt\+Quick$>$}\newline
|
||||
{\ttfamily \#include $<$Q\+List$>$}\newline
|
||||
{\ttfamily \#include $<$sailfishapp.\+h$>$}\newline
|
||||
{\ttfamily \#include \char`\"{}boxingtimer.\+h\char`\"{}}\newline
|
||||
{\ttfamily \#include \char`\"{}boxingsettings.\+h\char`\"{}}\newline
|
||||
|
|
|
@ -18,7 +18,7 @@ OTHER_FILES += qml/harbour-boxing-timer.qml \
|
|||
translations/*.ts \
|
||||
harbour-boxing-timer.desktop
|
||||
|
||||
SAILFISHAPP_ICONS = 86x86 108x108 128x128 256x256
|
||||
SAILFISHAPP_ICONS += 86x86 108x108 128x128 256x256
|
||||
|
||||
# to disable building translations every time, comment out the
|
||||
# following CONFIG line
|
||||
|
@ -39,7 +39,11 @@ DISTFILES += \
|
|||
COPYING \
|
||||
rpm/harbour-boxing-timer.changes \
|
||||
qml/pages/js/helpers.js \
|
||||
README.md
|
||||
README.md \
|
||||
icons/86x86/harbour-boxing-timer.png \
|
||||
icons/108x108/harbour-boxing-timer.png \
|
||||
icons/128x128/harbour-boxing-timer.png \
|
||||
icons/256x256/harbour-boxing-timer.png
|
||||
|
||||
HEADERS += \
|
||||
src/boxingtimer.h \
|
||||
|
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 3.7 KiB |
|
@ -97,6 +97,24 @@ Sources at: <a href=\"https://github.com/UnitooTeam/harbour-boxing-timer\">https
|
|||
}
|
||||
}
|
||||
|
||||
SectionHeader { text: qsTr("Artists") }
|
||||
Label {
|
||||
anchors {
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
|
||||
leftMargin: Theme.paddingLarge
|
||||
rightMargin: Theme.paddingLarge
|
||||
}
|
||||
|
||||
wrapMode: Text.Wrap
|
||||
|
||||
font.pixelSize: Theme.fontSizeSmall
|
||||
text: qsTr("
|
||||
Stefano Amandonico
|
||||
")
|
||||
}
|
||||
|
||||
SectionHeader { text: qsTr("License") }
|
||||
Label {
|
||||
anchors {
|
||||
|
|
|
@ -25,8 +25,9 @@ Page {
|
|||
|
||||
width: parent.width; height: parent.height
|
||||
|
||||
model: listModel
|
||||
VerticalScrollDecorator { flickable: presetsList }
|
||||
|
||||
model: listModel
|
||||
delegate: ListItem {
|
||||
width: parent.width
|
||||
|
||||
|
|
|
@ -47,26 +47,18 @@ Page {
|
|||
property int mRoundMs: settings.roundsMs
|
||||
property int mRestMs: settings.restMs
|
||||
|
||||
property var mListOfInnerTimers: []
|
||||
property var mListOfInnerTimers: settings.innerTimers
|
||||
|
||||
onStatusChanged: {
|
||||
if (status === PageStatus.Active) {
|
||||
Helper.pushPresetListPage()
|
||||
|
||||
var counter = 0
|
||||
for (var i = 0; i < settingsColumn.children.length; i++) {
|
||||
if (settingsColumn.children[i].objectName === 'innerSlider') {
|
||||
// if (counter in mListOfInnerTimers) {
|
||||
// counter++
|
||||
// } else {
|
||||
// settingsColumn.children[i].destroy()
|
||||
// }
|
||||
}
|
||||
}
|
||||
Helper.generateSlidersForInnerTimers()
|
||||
}
|
||||
}
|
||||
|
||||
SilicaFlickable {
|
||||
id: flickable
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
PullDownMenu {
|
||||
|
@ -92,7 +84,10 @@ Page {
|
|||
PushUpMenu {
|
||||
MenuItem {
|
||||
text: qsTr("Add inner time")
|
||||
onClicked: Helper.addSliderForInnerTime()
|
||||
onClicked: {
|
||||
Helper.addSliderForInnerTime()
|
||||
Helper.generateSlidersForInnerTimers()
|
||||
}
|
||||
}
|
||||
|
||||
MenuItem {
|
||||
|
@ -105,6 +100,8 @@ Page {
|
|||
|
||||
contentHeight: settingsColumn.height
|
||||
|
||||
VerticalScrollDecorator { flickable: flickable }
|
||||
|
||||
Column {
|
||||
id: settingsColumn
|
||||
|
||||
|
|
|
@ -12,45 +12,11 @@ function playPauseTimer() {
|
|||
}
|
||||
}
|
||||
|
||||
function addSliderForInnerTime(value) {
|
||||
if (value === undefined) value = 5
|
||||
function addSliderForInnerTime() {
|
||||
var newArray = settingsPage.mListOfInnerTimers
|
||||
newArray.push(5)
|
||||
|
||||
var remainingTimeForInner = settingsPage.mRoundMs
|
||||
var numberOfInnerTimers = settingsPage.mListOfInnerTimers.length
|
||||
for (var i = 0; i < numberOfInnerTimers; i++) {
|
||||
remainingTimeForInner -= settingsPage.mListOfInnerTimers[i].value
|
||||
}
|
||||
|
||||
if (remainingTimeForInner > 0) {
|
||||
var number = parseInt(numberOfInnerTimers) + 1
|
||||
var id = "innerTime_" + number
|
||||
var newSlider = Qt.createQmlObject(
|
||||
"import QtQuick 2.2;" +
|
||||
"import Sailfish.Silica 1.0;" +
|
||||
"import 'converter.js' as Converter;" +
|
||||
"Slider {" +
|
||||
"id: " + id + ";" +
|
||||
"objectName: 'innerSlider';" +
|
||||
|
||||
"width: parent.width;" +
|
||||
|
||||
"minimumValue: Converter.sToMs(5);" +
|
||||
"maximumValue: "+ remainingTimeForInner +";" +
|
||||
"stepSize: Converter.sToMs(5);" +
|
||||
|
||||
"value: "+ value +";" +
|
||||
"valueText: Converter.msToTime(value);" +
|
||||
|
||||
"label: qsTr('Inner time "+ number +"');" +
|
||||
"}",
|
||||
settingsColumn,
|
||||
"dynamicInnerTimerSlider"
|
||||
);
|
||||
|
||||
var newArray = settingsPage.mListOfInnerTimers
|
||||
newArray.push(newSlider);
|
||||
settingsPage.mListOfInnerTimers = newArray;
|
||||
}
|
||||
settingsPage.mListOfInnerTimers = newArray
|
||||
}
|
||||
|
||||
function removeLastSliderFromInnerTimers() {
|
||||
|
@ -72,3 +38,51 @@ function getListOfInnerTimers() {
|
|||
|
||||
return list;
|
||||
}
|
||||
|
||||
function generateSlidersForInnerTimers() {
|
||||
for (var i = 0; i < settingsColumn.children.length; i++) {
|
||||
if (settingsColumn.children[i].objectName === 'innerSlider') {
|
||||
settingsColumn.children[i].destroy()
|
||||
}
|
||||
}
|
||||
|
||||
var value = 5
|
||||
var remainingTimeForInner = settingsPage.mRoundMs
|
||||
var numberOfInnerTimers = settingsPage.mListOfInnerTimers.length
|
||||
var newArray = []
|
||||
|
||||
for (i = 0; i < numberOfInnerTimers; i++) {
|
||||
value = settings.getInnerTimer(i)
|
||||
if (value === undefined) {
|
||||
value = 5
|
||||
}
|
||||
|
||||
remainingTimeForInner -= settings.getInnerTimer(i)
|
||||
|
||||
var newSlider = Qt.createQmlObject(
|
||||
"import QtQuick 2.2;" +
|
||||
"import Sailfish.Silica 1.0;" +
|
||||
"import 'converter.js' as Converter;" +
|
||||
"Slider {" +
|
||||
"objectName: 'innerSlider';" +
|
||||
|
||||
"width: parent.width;" +
|
||||
|
||||
"minimumValue: Converter.sToMs(5);" +
|
||||
"maximumValue: "+ remainingTimeForInner +";" +
|
||||
"stepSize: Converter.sToMs(5);" +
|
||||
|
||||
"value: "+ value +";" +
|
||||
"valueText: Converter.msToTime(value);" +
|
||||
|
||||
"label: qsTr('"+ (i + 1) +"° inner time');" +
|
||||
"}",
|
||||
settingsColumn,
|
||||
"dynamicInnerTimerSlider"
|
||||
);
|
||||
|
||||
newArray.push(newSlider);
|
||||
}
|
||||
|
||||
settingsPage.mListOfInnerTimers = newArray;
|
||||
}
|
||||
|
|
|
@ -55,17 +55,8 @@ void BoxingSettings::loadPreset() {
|
|||
this->mRoundMilliseconds = this->value("roundmilliseconds").toInt();
|
||||
this->mRestMilliseconds = this->value("restmilliseconds").toInt();
|
||||
|
||||
// QList<int> list = this->value("innerTimers").value<QList<int>>();
|
||||
this->mInnerTimers = this->value("innerTimers").value<QList<int>>();
|
||||
|
||||
//#ifdef QT_DEBUG
|
||||
// qDebug() << list;
|
||||
//#endif
|
||||
|
||||
// foreach(QVariant v, list) {
|
||||
// this->mInnerTimers.append(v.toInt());
|
||||
// }
|
||||
|
||||
this->endGroup();
|
||||
}
|
||||
}
|
||||
|
@ -78,11 +69,6 @@ void BoxingSettings::savePreset(const QString &name, const int &rounds, const in
|
|||
this->setValue("rounds", rounds);
|
||||
this->setValue("roundmilliseconds", roundMilliseconds);
|
||||
this->setValue("restmilliseconds", restMilliseconds);
|
||||
|
||||
#ifdef QT_DEBUG
|
||||
qDebug() << innerTimers;
|
||||
#endif
|
||||
|
||||
this->setValue("innerTimers", QVariant::fromValue(innerTimers));
|
||||
this->endGroup();
|
||||
|
||||
|
@ -110,3 +96,7 @@ const QStringList BoxingSettings::presetsList() {
|
|||
|
||||
return presets;
|
||||
}
|
||||
|
||||
int BoxingSettings::getInnerTimer(const int &index) {
|
||||
return this->mInnerTimers.value(index);
|
||||
}
|
||||
|
|
|
@ -93,6 +93,13 @@ class BoxingSettings : public QSettings {
|
|||
*/
|
||||
Q_INVOKABLE void deletePreset(const QString &name);
|
||||
|
||||
/**
|
||||
* @brief getInnerTimer(const int &index)
|
||||
*
|
||||
* @return the specific timer in milliseconds
|
||||
*/
|
||||
Q_INVOKABLE int getInnerTimer(const int &index);
|
||||
|
||||
BoxingSettings();
|
||||
BoxingSettings(const int &rounds, const int &roundMilliseconds, const int &restMilliseconds);
|
||||
|
||||
|
@ -124,13 +131,6 @@ class BoxingSettings : public QSettings {
|
|||
*/
|
||||
inline QList<int> getInnerTimers() { return this->mInnerTimers; }
|
||||
|
||||
/**
|
||||
* @brief getInnerTimer(const int &index)
|
||||
*
|
||||
* @return the specific timer in milliseconds
|
||||
*/
|
||||
inline int getInnerTimer(const int &index) { return this->mInnerTimers.at(index); }
|
||||
|
||||
/**
|
||||
* @fn QString getPreset()
|
||||
*
|
||||
|
|