2
0

class_a_settings.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.18"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>openPilotLog: ASettings Class Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  17. <script type="text/javascript" src="search/searchdata.js"></script>
  18. <script type="text/javascript" src="search/search.js"></script>
  19. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  20. <link href="custom_dark_theme.css" rel="stylesheet" type="text/css"/>
  21. </head>
  22. <body>
  23. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  24. <div id="titlearea">
  25. <table cellspacing="0" cellpadding="0">
  26. <tbody>
  27. <tr style="height: 56px;">
  28. <td id="projectlogo"><img alt="Logo" src="icon_main.png"/></td>
  29. <td id="projectalign" style="padding-left: 0.5em;">
  30. <div id="projectname">openPilotLog
  31. </div>
  32. </td>
  33. </tr>
  34. </tbody>
  35. </table>
  36. </div>
  37. <!-- end header part -->
  38. <!-- Generated by Doxygen 1.8.18 -->
  39. <script type="text/javascript">
  40. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  41. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  42. /* @license-end */
  43. </script>
  44. <script type="text/javascript" src="menudata.js"></script>
  45. <script type="text/javascript" src="menu.js"></script>
  46. <script type="text/javascript">
  47. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  48. $(function() {
  49. initMenu('',true,false,'search.php','Search');
  50. $(document).ready(function() { init_search(); });
  51. });
  52. /* @license-end */</script>
  53. <div id="main-nav"></div>
  54. </div><!-- top -->
  55. <div id="side-nav" class="ui-resizable side-nav-resizable">
  56. <div id="nav-tree">
  57. <div id="nav-tree-contents">
  58. <div id="nav-sync" class="sync"></div>
  59. </div>
  60. </div>
  61. <div id="splitbar" style="-moz-user-select:none;"
  62. class="ui-resizable-handle">
  63. </div>
  64. </div>
  65. <script type="text/javascript">
  66. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  67. $(document).ready(function(){initNavTree('class_a_settings.html',''); initResizable(); });
  68. /* @license-end */
  69. </script>
  70. <div id="doc-content">
  71. <!-- window showing the filter options -->
  72. <div id="MSearchSelectWindow"
  73. onmouseover="return searchBox.OnSearchSelectShow()"
  74. onmouseout="return searchBox.OnSearchSelectHide()"
  75. onkeydown="return searchBox.OnSearchSelectKey(event)">
  76. </div>
  77. <!-- iframe showing the search results (closed by default) -->
  78. <div id="MSearchResultsWindow">
  79. <iframe src="javascript:void(0)" frameborder="0"
  80. name="MSearchResults" id="MSearchResults">
  81. </iframe>
  82. </div>
  83. <div class="header">
  84. <div class="summary">
  85. <a href="#pub-types">Public Types</a> &#124;
  86. <a href="#pub-static-methods">Static Public Member Functions</a> &#124;
  87. <a href="class_a_settings-members.html">List of all members</a> </div>
  88. <div class="headertitle">
  89. <div class="title">ASettings Class Reference</div> </div>
  90. </div><!--header-->
  91. <div class="contents">
  92. <p>Thin wrapper for the QSettings class, simplifying reading and writing of settings.
  93. <a href="class_a_settings.html#details">More...</a></p>
  94. <p><code>#include &lt;<a class="el" href="asettings_8h_source.html">asettings.h</a>&gt;</code></p>
  95. <table class="memberdecls">
  96. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  97. Public Types</h2></td></tr>
  98. <tr class="memitem:aba5614e128b0474ef4830842e5054c5c"><td class="memItemLeft" align="right" valign="top"><a id="aba5614e128b0474ef4830842e5054c5c"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>Main</b> { <br />
  99. &#160;&#160;<b>SetupComplete</b>,
  100. <b>Style</b>,
  101. <b>Font</b>,
  102. <b>FontSize</b>,
  103. <br />
  104. &#160;&#160;<b>UseSystemFont</b>,
  105. <b>LogbookView</b>,
  106. <b>DateFormat</b>
  107. <br />
  108. }</td></tr>
  109. <tr class="separator:aba5614e128b0474ef4830842e5054c5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:ad5929c2e477b65d82afd89afa7c8af48"><td class="memItemLeft" align="right" valign="top"><a id="ad5929c2e477b65d82afd89afa7c8af48"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>UserData</b> { <br />
  111. &#160;&#160;<b>DisplaySelfAs</b>,
  112. <b>TailSortColumn</b>,
  113. <b>PilotSortColumn</b>,
  114. <b>AcftAllowIncomplete</b>,
  115. <br />
  116. &#160;&#160;<b>FtlWarningThreshold</b>,
  117. <b>CurrWarningEnabled</b>,
  118. <b>CurrWarningThreshold</b>,
  119. <b>ShowToLgdCurrency</b>,
  120. <br />
  121. &#160;&#160;<b>ShowLicCurrency</b>,
  122. <b>ShowTrCurrency</b>,
  123. <b>ShowLckCurrency</b>,
  124. <b>ShowMedCurrency</b>,
  125. <br />
  126. &#160;&#160;<b>ShowCustom1Currency</b>,
  127. <b>ShowCustom2Currency</b>,
  128. <b>Custom1CurrencyName</b>,
  129. <b>Custom2CurrencyName</b>
  130. <br />
  131. }</td></tr>
  132. <tr class="separator:ad5929c2e477b65d82afd89afa7c8af48"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <tr class="memitem:a14b8b4d54cec3c1474f7a4402223a59a"><td class="memItemLeft" align="right" valign="top"><a id="a14b8b4d54cec3c1474f7a4402223a59a"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>FlightLogging</b> { <br />
  134. &#160;&#160;<b>Function</b>,
  135. <b>Approach</b>,
  136. <b>NightLoggingEnabled</b>,
  137. <b>LogIFR</b>,
  138. <br />
  139. &#160;&#160;<b>FlightNumberPrefix</b>,
  140. <b>NumberTakeoffs</b>,
  141. <b>NumberLandings</b>,
  142. <b>PilotFlying</b>,
  143. <br />
  144. &#160;&#160;<b>NightAngle</b>,
  145. <b>Rules</b>,
  146. <b>FlightTimeFormat</b>,
  147. <b>FunctionComboBox</b>
  148. <br />
  149. }</td></tr>
  150. <tr class="separator:a14b8b4d54cec3c1474f7a4402223a59a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. </table><table class="memberdecls">
  152. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
  153. Static Public Member Functions</h2></td></tr>
  154. <tr class="memitem:a383ea9d59ea8878ca873465eb19bbe85"><td class="memItemLeft" align="right" valign="top"><a id="a383ea9d59ea8878ca873465eb19bbe85"></a>
  155. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_settings.html#a383ea9d59ea8878ca873465eb19bbe85">setup</a> ()</td></tr>
  156. <tr class="memdesc:a383ea9d59ea8878ca873465eb19bbe85"><td class="mdescLeft">&#160;</td><td class="mdescRight">Should be called after QCoreApplication::set...Name have been called. <br /></td></tr>
  157. <tr class="separator:a383ea9d59ea8878ca873465eb19bbe85"><td class="memSeparator" colspan="2">&#160;</td></tr>
  158. <tr class="memitem:a2dbc2e3510363c09e45223f4bbdc5e59"><td class="memItemLeft" align="right" valign="top"><a id="a2dbc2e3510363c09e45223f4bbdc5e59"></a>
  159. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_settings.html#a2dbc2e3510363c09e45223f4bbdc5e59">resetToDefaults</a> ()</td></tr>
  160. <tr class="memdesc:a2dbc2e3510363c09e45223f4bbdc5e59"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_a_settings.html#a2dbc2e3510363c09e45223f4bbdc5e59" title="ASettings::resetToDefaults (Re-)sets all settings to the default value.">ASettings::resetToDefaults</a> (Re-)sets all settings to the default value. <br /></td></tr>
  161. <tr class="separator:a2dbc2e3510363c09e45223f4bbdc5e59"><td class="memSeparator" colspan="2">&#160;</td></tr>
  162. <tr class="memitem:ab5cfc5a86610f8cf8567189adbfa0128"><td class="memItemLeft" align="right" valign="top"><a id="ab5cfc5a86610f8cf8567189adbfa0128"></a>
  163. static QVariant&#160;</td><td class="memItemRight" valign="bottom"><b>read</b> (const Main key)</td></tr>
  164. <tr class="separator:ab5cfc5a86610f8cf8567189adbfa0128"><td class="memSeparator" colspan="2">&#160;</td></tr>
  165. <tr class="memitem:aef4b7accf9d89792ce44ee6d80bac158"><td class="memItemLeft" align="right" valign="top"><a id="aef4b7accf9d89792ce44ee6d80bac158"></a>
  166. static void&#160;</td><td class="memItemRight" valign="bottom"><b>write</b> (const Main key, const QVariant &amp;val)</td></tr>
  167. <tr class="separator:aef4b7accf9d89792ce44ee6d80bac158"><td class="memSeparator" colspan="2">&#160;</td></tr>
  168. <tr class="memitem:afea41d25282ca14260b73ffc10680aee"><td class="memItemLeft" align="right" valign="top"><a id="afea41d25282ca14260b73ffc10680aee"></a>
  169. static QVariant&#160;</td><td class="memItemRight" valign="bottom"><b>read</b> (const FlightLogging key)</td></tr>
  170. <tr class="separator:afea41d25282ca14260b73ffc10680aee"><td class="memSeparator" colspan="2">&#160;</td></tr>
  171. <tr class="memitem:a1066e997c99110d47d1575e8a80a972c"><td class="memItemLeft" align="right" valign="top"><a id="a1066e997c99110d47d1575e8a80a972c"></a>
  172. static void&#160;</td><td class="memItemRight" valign="bottom"><b>write</b> (const UserData key, const QVariant &amp;val)</td></tr>
  173. <tr class="separator:a1066e997c99110d47d1575e8a80a972c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. <tr class="memitem:ad39dee6fce95bc95dae6780ef4ace0c3"><td class="memItemLeft" align="right" valign="top"><a id="ad39dee6fce95bc95dae6780ef4ace0c3"></a>
  175. static QVariant&#160;</td><td class="memItemRight" valign="bottom"><b>read</b> (const UserData key)</td></tr>
  176. <tr class="separator:ad39dee6fce95bc95dae6780ef4ace0c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  177. <tr class="memitem:ae6af53e2e9d86457eb7b6cf511519f8c"><td class="memItemLeft" align="right" valign="top"><a id="ae6af53e2e9d86457eb7b6cf511519f8c"></a>
  178. static void&#160;</td><td class="memItemRight" valign="bottom"><b>write</b> (const FlightLogging key, const QVariant &amp;val)</td></tr>
  179. <tr class="separator:ae6af53e2e9d86457eb7b6cf511519f8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. <tr class="memitem:a6fc09922de0182271c6c1ff001792da1"><td class="memItemLeft" align="right" valign="top"><a id="a6fc09922de0182271c6c1ff001792da1"></a>
  181. static QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_settings.html#a6fc09922de0182271c6c1ff001792da1">groupOfKey</a> (const Main key)</td></tr>
  182. <tr class="memdesc:a6fc09922de0182271c6c1ff001792da1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return string representation of group of key: "ini_header/key". <br /></td></tr>
  183. <tr class="separator:a6fc09922de0182271c6c1ff001792da1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  184. <tr class="memitem:aa0ebfd1eaa72d79d607f1b4f07ec3881"><td class="memItemLeft" align="right" valign="top"><a id="aa0ebfd1eaa72d79d607f1b4f07ec3881"></a>
  185. static QString&#160;</td><td class="memItemRight" valign="bottom"><b>groupOfKey</b> (const FlightLogging key)</td></tr>
  186. <tr class="separator:aa0ebfd1eaa72d79d607f1b4f07ec3881"><td class="memSeparator" colspan="2">&#160;</td></tr>
  187. <tr class="memitem:a94f25ca42be1f5ad302ac4093724114b"><td class="memItemLeft" align="right" valign="top"><a id="a94f25ca42be1f5ad302ac4093724114b"></a>
  188. static QString&#160;</td><td class="memItemRight" valign="bottom"><b>groupOfKey</b> (const UserData key)</td></tr>
  189. <tr class="separator:a94f25ca42be1f5ad302ac4093724114b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  190. <tr class="memitem:af88194014c7599e8c9fe488c5b1ebf99"><td class="memItemLeft" align="right" valign="top"><a id="af88194014c7599e8c9fe488c5b1ebf99"></a>
  191. static QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_settings.html#af88194014c7599e8c9fe488c5b1ebf99">stringOfKey</a> (const Main key)</td></tr>
  192. <tr class="memdesc:af88194014c7599e8c9fe488c5b1ebf99"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return string representation of key. <br /></td></tr>
  193. <tr class="separator:af88194014c7599e8c9fe488c5b1ebf99"><td class="memSeparator" colspan="2">&#160;</td></tr>
  194. <tr class="memitem:a3df6522cd6b0151792ba73dd00dd2f65"><td class="memItemLeft" align="right" valign="top"><a id="a3df6522cd6b0151792ba73dd00dd2f65"></a>
  195. static QString&#160;</td><td class="memItemRight" valign="bottom"><b>stringOfKey</b> (const FlightLogging key)</td></tr>
  196. <tr class="separator:a3df6522cd6b0151792ba73dd00dd2f65"><td class="memSeparator" colspan="2">&#160;</td></tr>
  197. <tr class="memitem:af23a3c23274e3105572f9b66532daf77"><td class="memItemLeft" align="right" valign="top"><a id="af23a3c23274e3105572f9b66532daf77"></a>
  198. static QString&#160;</td><td class="memItemRight" valign="bottom"><b>stringOfKey</b> (const UserData key)</td></tr>
  199. <tr class="separator:af23a3c23274e3105572f9b66532daf77"><td class="memSeparator" colspan="2">&#160;</td></tr>
  200. <tr class="memitem:ab1c6651ff2fd050d7759557f9cfe0054"><td class="memItemLeft" align="right" valign="top"><a id="ab1c6651ff2fd050d7759557f9cfe0054"></a>
  201. static QSettings&#160;</td><td class="memItemRight" valign="bottom"><b>settings</b> ()</td></tr>
  202. <tr class="separator:ab1c6651ff2fd050d7759557f9cfe0054"><td class="memSeparator" colspan="2">&#160;</td></tr>
  203. </table>
  204. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  205. <div class="textblock"><p>Thin wrapper for the QSettings class, simplifying reading and writing of settings. </p>
  206. </div><hr/>The documentation for this class was generated from the following files:<ul>
  207. <li>src/classes/<a class="el" href="asettings_8h_source.html">asettings.h</a></li>
  208. <li>src/classes/asettings.cpp</li>
  209. </ul>
  210. </div><!-- contents -->
  211. </div><!-- doc-content -->
  212. <!-- start footer part -->
  213. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  214. <ul>
  215. <li class="navelem"><a class="el" href="class_a_settings.html">ASettings</a></li>
  216. <li class="footer">Generated by
  217. <a href="http://www.doxygen.org/index.html">
  218. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.18 </li>
  219. </ul>
  220. </div>
  221. </body>
  222. </html>