source: flair-dev/trunk/doc/Flair/classflair_1_1gui_1_1_widget.html @ 44

Last change on this file since 44 was 44, checked in by Sanahuja Guillaume, 4 years ago

m

File size: 36.3 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.9.1"/>
7<title>Flair: flair::gui::Widget Class Reference</title>
8<link href="tabs.css" rel="stylesheet" type="text/css"/>
9<script type="text/javascript" src="jquery.js"></script>
10<script type="text/javascript" src="dynsections.js"></script>
11<link href="navtree.css" rel="stylesheet" type="text/css"/>
12<script type="text/javascript" src="resize.js"></script>
13<script type="text/javascript" src="navtreedata.js"></script>
14<script type="text/javascript" src="navtree.js"></script>
15<script type="text/javascript">
16  $(document).ready(initResizable);
17  $(window).load(resizeHeight);
18</script>
19<link href="search/search.css" rel="stylesheet" type="text/css"/>
20<script type="text/javascript" src="search/searchdata.js"></script>
21<script type="text/javascript" src="search/search.js"></script>
22<script type="text/javascript">
23  $(document).ready(function() { init_search(); });
24</script>
25<link href="doxygen.css" rel="stylesheet" type="text/css" />
26</head>
27<body>
28<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
29<div id="titlearea">
30<table cellspacing="0" cellpadding="0">
31 <tbody>
32 <tr style="height: 56px;">
33  <td id="projectlogo"><img alt="Logo" src="logo_hds.png"/></td>
34  <td style="padding-left: 0.5em;">
35   <div id="projectname">Flair
36   </div>
37   <div id="projectbrief">Framework Libre Air</div>
38  </td>
39 </tr>
40 </tbody>
41</table>
42</div>
43<!-- end header part -->
44<!-- Generated by Doxygen 1.8.9.1 -->
45<script type="text/javascript">
46var searchBox = new SearchBox("searchBox", "search",false,'Search');
47</script>
48  <div id="navrow1" class="tabs">
49    <ul class="tablist">
50      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
51      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
52      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
53      <li><a href="files.html"><span>Files</span></a></li>
54      <li>
55        <div id="MSearchBox" class="MSearchBoxInactive">
56        <span class="left">
57          <img id="MSearchSelect" src="search/mag_sel.png"
58               onmouseover="return searchBox.OnSearchSelectShow()"
59               onmouseout="return searchBox.OnSearchSelectHide()"
60               alt=""/>
61          <input type="text" id="MSearchField" value="Search" accesskey="S"
62               onfocus="searchBox.OnSearchFieldFocus(true)" 
63               onblur="searchBox.OnSearchFieldFocus(false)" 
64               onkeyup="searchBox.OnSearchFieldChange(event)"/>
65          </span><span class="right">
66            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
67          </span>
68        </div>
69      </li>
70    </ul>
71  </div>
72  <div id="navrow2" class="tabs2">
73    <ul class="tablist">
74      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
75      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
76      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
77      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
78    </ul>
79  </div>
80</div><!-- top -->
81<div id="side-nav" class="ui-resizable side-nav-resizable">
82  <div id="nav-tree">
83    <div id="nav-tree-contents">
84      <div id="nav-sync" class="sync"></div>
85    </div>
86  </div>
87  <div id="splitbar" style="-moz-user-select:none;" 
88       class="ui-resizable-handle">
89  </div>
90</div>
91<script type="text/javascript">
92$(document).ready(function(){initNavTree('classflair_1_1gui_1_1_widget.html','');});
93</script>
94<div id="doc-content">
95<!-- window showing the filter options -->
96<div id="MSearchSelectWindow"
97     onmouseover="return searchBox.OnSearchSelectShow()"
98     onmouseout="return searchBox.OnSearchSelectHide()"
99     onkeydown="return searchBox.OnSearchSelectKey(event)">
100</div>
101
102<!-- iframe showing the search results (closed by default) -->
103<div id="MSearchResultsWindow">
104<iframe src="javascript:void(0)" frameborder="0" 
105        name="MSearchResults" id="MSearchResults">
106</iframe>
107</div>
108
109<div class="header">
110  <div class="summary">
111<a href="#pub-methods">Public Member Functions</a> &#124;
112<a href="#pro-methods">Protected Member Functions</a> &#124;
113<a href="classflair_1_1gui_1_1_widget-members.html">List of all members</a>  </div>
114  <div class="headertitle">
115<div class="title">flair::gui::Widget Class Reference</div>  </div>
116</div><!--header-->
117<div class="contents">
118
119<p>Abstract class for all Framework's widget classes. 
120 <a href="classflair_1_1gui_1_1_widget.html#details">More...</a></p>
121
122<p><code>#include &lt;<a class="el" href="_widget_8h_source.html">Widget.h</a>&gt;</code></p>
123<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
124  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for flair::gui::Widget:</div>
125<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
126</div>
127<div id="dynsection-0-content" class="dyncontent" style="display:none;">
128 <div class="center">
129  <img src="classflair_1_1gui_1_1_widget.png" usemap="#flair::gui::Widget_map" alt=""/>
130  <map id="flair::gui::Widget_map" name="flair::gui::Widget_map">
131<area href="classflair_1_1core_1_1_object.html" title="Base class for all Framework&#39;s classes. " alt="flair::core::Object" shape="rect" coords="0,0,126,24"/>
132<area href="classflair_1_1gui_1_1_box.html" title="Abstract class to display a box on the ground station. " alt="flair::gui::Box" shape="rect" coords="136,112,262,136"/>
133<area href="classflair_1_1gui_1_1_label.html" title="Class displaying a QLabel on the ground station. " alt="flair::gui::Label" shape="rect" coords="136,168,262,192"/>
134<area href="classflair_1_1gui_1_1_layout.html" title="Abstract class to display a layout on the ground station. " alt="flair::gui::Layout" shape="rect" coords="136,224,262,248"/>
135<area href="classflair_1_1gui_1_1_list_widget.html" title="Class displaying a QListWidget on the ground station. " alt="flair::gui::ListWidget" shape="rect" coords="136,280,262,304"/>
136<area href="classflair_1_1gui_1_1_push_button.html" title="Class displaying a QPushButton on the ground station. " alt="flair::gui::PushButton" shape="rect" coords="136,336,262,360"/>
137<area href="classflair_1_1gui_1_1_send_data.html" title="Abstract class for sending datas to ground station. " alt="flair::gui::SendData" shape="rect" coords="136,392,262,416"/>
138<area href="classflair_1_1gui_1_1_tab_widget.html" title="Class displaying a QTabWidget on the ground station. " alt="flair::gui::TabWidget" shape="rect" coords="136,448,262,472"/>
139<area href="classflair_1_1gui_1_1_text_edit.html" title="Class displaying a QTextEdit on the ground station. " alt="flair::gui::TextEdit" shape="rect" coords="136,504,262,528"/>
140</map>
141 </div></div>
142<table class="memberdecls">
143<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
144Public Member Functions</h2></td></tr>
145<tr class="memitem:a7b867cc6c603cbc5e5a2f39f083a9494"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1gui_1_1_widget.html#a7b867cc6c603cbc5e5a2f39f083a9494">Widget</a> (const <a class="el" href="classflair_1_1gui_1_1_widget.html">Widget</a> *parent, std::string name, std::string type)</td></tr>
146<tr class="memdesc:a7b867cc6c603cbc5e5a2f39f083a9494"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#a7b867cc6c603cbc5e5a2f39f083a9494">More...</a><br /></td></tr>
147<tr class="separator:a7b867cc6c603cbc5e5a2f39f083a9494"><td class="memSeparator" colspan="2">&#160;</td></tr>
148<tr class="memitem:a81110928e09e909dc1cc90971de4e8a9"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1gui_1_1_widget.html#a81110928e09e909dc1cc90971de4e8a9">~Widget</a> ()</td></tr>
149<tr class="memdesc:a81110928e09e909dc1cc90971de4e8a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a81110928e09e909dc1cc90971de4e8a9">More...</a><br /></td></tr>
150<tr class="separator:a81110928e09e909dc1cc90971de4e8a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
151<tr class="memitem:a814a933622114ad9c8f5d49014262d89"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1gui_1_1_widget.html#a814a933622114ad9c8f5d49014262d89">setEnabled</a> (bool status)</td></tr>
152<tr class="memdesc:a814a933622114ad9c8f5d49014262d89"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set enabled.  <a href="#a814a933622114ad9c8f5d49014262d89">More...</a><br /></td></tr>
153<tr class="separator:a814a933622114ad9c8f5d49014262d89"><td class="memSeparator" colspan="2">&#160;</td></tr>
154<tr class="memitem:a299877c38b297ada04542e4dfc5a2f4f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1gui_1_1_widget.html#a299877c38b297ada04542e4dfc5a2f4f">isEnabled</a> (void) const </td></tr>
155<tr class="memdesc:a299877c38b297ada04542e4dfc5a2f4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is enabled?  <a href="#a299877c38b297ada04542e4dfc5a2f4f">More...</a><br /></td></tr>
156<tr class="separator:a299877c38b297ada04542e4dfc5a2f4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
157<tr class="inherit_header pub_methods_classflair_1_1core_1_1_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classflair_1_1core_1_1_object')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classflair_1_1core_1_1_object.html">flair::core::Object</a></td></tr>
158<tr class="memitem:aec92383fd5bf68d9df10414862b7e95c inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#aec92383fd5bf68d9df10414862b7e95c">Object</a> (const <a class="el" href="classflair_1_1core_1_1_object.html">Object</a> *parent=NULL, std::string name=&quot;&quot;, std::string type=&quot;&quot;)</td></tr>
159<tr class="memdesc:aec92383fd5bf68d9df10414862b7e95c inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#aec92383fd5bf68d9df10414862b7e95c">More...</a><br /></td></tr>
160<tr class="separator:aec92383fd5bf68d9df10414862b7e95c inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
161<tr class="memitem:aa2bde0e6677bbef705c96c93cb06ad09 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#aa2bde0e6677bbef705c96c93cb06ad09">~Object</a> ()</td></tr>
162<tr class="memdesc:aa2bde0e6677bbef705c96c93cb06ad09 inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#aa2bde0e6677bbef705c96c93cb06ad09">More...</a><br /></td></tr>
163<tr class="separator:aa2bde0e6677bbef705c96c93cb06ad09 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
164<tr class="memitem:a9b0344dff7e1c05424d9152c8274523a inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#a9b0344dff7e1c05424d9152c8274523a">ObjectName</a> (void) const </td></tr>
165<tr class="memdesc:a9b0344dff7e1c05424d9152c8274523a inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Name.  <a href="#a9b0344dff7e1c05424d9152c8274523a">More...</a><br /></td></tr>
166<tr class="separator:a9b0344dff7e1c05424d9152c8274523a inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
167<tr class="memitem:a609a250ec037fbcaf8957c8f1dcbfc53 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#a609a250ec037fbcaf8957c8f1dcbfc53">ObjectType</a> (void) const </td></tr>
168<tr class="memdesc:a609a250ec037fbcaf8957c8f1dcbfc53 inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Type.  <a href="#a609a250ec037fbcaf8957c8f1dcbfc53">More...</a><br /></td></tr>
169<tr class="separator:a609a250ec037fbcaf8957c8f1dcbfc53 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
170<tr class="memitem:a360c112cc3017a5152ebf6e84d2efa70 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classflair_1_1core_1_1_object.html">Object</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#a360c112cc3017a5152ebf6e84d2efa70">Parent</a> (void) const </td></tr>
171<tr class="memdesc:a360c112cc3017a5152ebf6e84d2efa70 inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parent.  <a href="#a360c112cc3017a5152ebf6e84d2efa70">More...</a><br /></td></tr>
172<tr class="separator:a360c112cc3017a5152ebf6e84d2efa70 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
173<tr class="memitem:ae22db4d723ec2d50b3ba48f26a6a770c inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">std::vector&lt; const <a class="el" href="classflair_1_1core_1_1_object.html">Object</a> * &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#ae22db4d723ec2d50b3ba48f26a6a770c">TypeChilds</a> (void) const </td></tr>
174<tr class="memdesc:ae22db4d723ec2d50b3ba48f26a6a770c inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Childs of the same type.  <a href="#ae22db4d723ec2d50b3ba48f26a6a770c">More...</a><br /></td></tr>
175<tr class="separator:ae22db4d723ec2d50b3ba48f26a6a770c inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
176<tr class="memitem:a344f81cd35805a9501098bf727ac1a10 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">std::vector&lt; const <a class="el" href="classflair_1_1core_1_1_object.html">Object</a> * &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#a344f81cd35805a9501098bf727ac1a10">Childs</a> (void) const </td></tr>
177<tr class="memdesc:a344f81cd35805a9501098bf727ac1a10 inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Childs.  <a href="#a344f81cd35805a9501098bf727ac1a10">More...</a><br /></td></tr>
178<tr class="separator:a344f81cd35805a9501098bf727ac1a10 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
179<tr class="memitem:af001feba14fc053aa778e61080a0b4cf inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#af001feba14fc053aa778e61080a0b4cf">Information</a> (const char *function, int line, const char *format,...) const </td></tr>
180<tr class="memdesc:af001feba14fc053aa778e61080a0b4cf inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Formatted information.  <a href="#af001feba14fc053aa778e61080a0b4cf">More...</a><br /></td></tr>
181<tr class="separator:af001feba14fc053aa778e61080a0b4cf inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
182<tr class="memitem:a168b18451b2ee6126e1e81d452005ff6 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#a168b18451b2ee6126e1e81d452005ff6">Warning</a> (const char *function, const char *format,...) const </td></tr>
183<tr class="memdesc:a168b18451b2ee6126e1e81d452005ff6 inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Formatted warning.  <a href="#a168b18451b2ee6126e1e81d452005ff6">More...</a><br /></td></tr>
184<tr class="separator:a168b18451b2ee6126e1e81d452005ff6 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
185<tr class="memitem:a3ca9694d29ec2b0491739879685df5ca inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#a3ca9694d29ec2b0491739879685df5ca">Error</a> (const char *function, const char *format,...) const </td></tr>
186<tr class="memdesc:a3ca9694d29ec2b0491739879685df5ca inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Formatted error.  <a href="#a3ca9694d29ec2b0491739879685df5ca">More...</a><br /></td></tr>
187<tr class="separator:a3ca9694d29ec2b0491739879685df5ca inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
188<tr class="memitem:a36cdd7f556e78b1bddd1d1fe4264bb85 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#a36cdd7f556e78b1bddd1d1fe4264bb85">ErrorOccured</a> (bool recursive=true) const </td></tr>
189<tr class="memdesc:a36cdd7f556e78b1bddd1d1fe4264bb85 inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Has an errror occured?  <a href="#a36cdd7f556e78b1bddd1d1fe4264bb85">More...</a><br /></td></tr>
190<tr class="separator:a36cdd7f556e78b1bddd1d1fe4264bb85 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
191</table><table class="memberdecls">
192<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
193Protected Member Functions</h2></td></tr>
194<tr class="memitem:a0e81847db5a84b2e7e26545c9b1b704f"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
195<tr class="memitem:a0e81847db5a84b2e7e26545c9b1b704f"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflair_1_1gui_1_1_widget.html#a0e81847db5a84b2e7e26545c9b1b704f">SetPersistentXmlProp</a> (std::string prop, T value)</td></tr>
196<tr class="memdesc:a0e81847db5a84b2e7e26545c9b1b704f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a persistent xml property.  <a href="#a0e81847db5a84b2e7e26545c9b1b704f">More...</a><br /></td></tr>
197<tr class="separator:a0e81847db5a84b2e7e26545c9b1b704f"><td class="memSeparator" colspan="2">&#160;</td></tr>
198<tr class="memitem:a6404c7f474be994ec4e72a97e45dfffa"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
199<tr class="memitem:a6404c7f474be994ec4e72a97e45dfffa"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflair_1_1gui_1_1_widget.html#a6404c7f474be994ec4e72a97e45dfffa">GetPersistentXmlProp</a> (std::string prop, T &amp;value)</td></tr>
200<tr class="memdesc:a6404c7f474be994ec4e72a97e45dfffa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a persistent xml property.  <a href="#a6404c7f474be994ec4e72a97e45dfffa">More...</a><br /></td></tr>
201<tr class="separator:a6404c7f474be994ec4e72a97e45dfffa"><td class="memSeparator" colspan="2">&#160;</td></tr>
202<tr class="memitem:abe5ab96255919238138527c92fbeb6d8"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
203<tr class="memitem:abe5ab96255919238138527c92fbeb6d8"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflair_1_1gui_1_1_widget.html#abe5ab96255919238138527c92fbeb6d8">SetVolatileXmlProp</a> (std::string prop, T value, xmlNodePtr node=NULL)</td></tr>
204<tr class="memdesc:abe5ab96255919238138527c92fbeb6d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a volatile xml property.  <a href="#abe5ab96255919238138527c92fbeb6d8">More...</a><br /></td></tr>
205<tr class="separator:abe5ab96255919238138527c92fbeb6d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
206<tr class="memitem:ac80f72906580f269b5881c1ef0b35afb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1gui_1_1_widget.html#ac80f72906580f269b5881c1ef0b35afb">SendXml</a> (void)</td></tr>
207<tr class="memdesc:ac80f72906580f269b5881c1ef0b35afb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send xml.  <a href="#ac80f72906580f269b5881c1ef0b35afb">More...</a><br /></td></tr>
208<tr class="separator:ac80f72906580f269b5881c1ef0b35afb"><td class="memSeparator" colspan="2">&#160;</td></tr>
209<tr class="memitem:a92d4e0613146c9b348b388f3f75cca9e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1gui_1_1_widget.html#a92d4e0613146c9b348b388f3f75cca9e">XmlEvent</a> (void)</td></tr>
210<tr class="memdesc:a92d4e0613146c9b348b388f3f75cca9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Xml event.  <a href="#a92d4e0613146c9b348b388f3f75cca9e">More...</a><br /></td></tr>
211<tr class="separator:a92d4e0613146c9b348b388f3f75cca9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
212<tr class="memitem:a9ba37bd7fad0f4a97175d922b93b5434"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1gui_1_1_widget.html#a9ba37bd7fad0f4a97175d922b93b5434">UnsetPersistentXmlProp</a> (std::string prop)</td></tr>
213<tr class="memdesc:a9ba37bd7fad0f4a97175d922b93b5434"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unset a persistent xml property.  <a href="#a9ba37bd7fad0f4a97175d922b93b5434">More...</a><br /></td></tr>
214<tr class="separator:a9ba37bd7fad0f4a97175d922b93b5434"><td class="memSeparator" colspan="2">&#160;</td></tr>
215</table><table class="memberdecls">
216<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
217Additional Inherited Members</h2></td></tr>
218<tr class="inherit_header pub_types_classflair_1_1core_1_1_object"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classflair_1_1core_1_1_object')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classflair_1_1core_1_1_object.html">flair::core::Object</a></td></tr>
219<tr class="memitem:aed5fccda511f97487040fed29f4efc97 inherit pub_types_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed5fccda511f97487040fed29f4efc97"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>color_t</b> { <b>Auto</b> = 0,
220<b>Red</b> = 31,
221<b>Green</b> = 32,
222<b>Orange</b> = 33
223 }</td></tr>
224<tr class="separator:aed5fccda511f97487040fed29f4efc97 inherit pub_types_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
225</table>
226<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
227<div class="textblock"><p>Abstract class for all Framework's widget classes. </p>
228<p>A widget is an object to display on the ground station. <br />
229 Communication with ground station is done through xml files; properties of theses files are modified through appropriate method. <br />
230 A xml file is used for default values of the <a class="el" href="classflair_1_1gui_1_1_widget.html" title="Abstract class for all Framework&#39;s widget classes. ">Widget</a>, if it has been specified in the constructor of the FrameworkManager. </p>
231</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
232<a class="anchor" id="a7b867cc6c603cbc5e5a2f39f083a9494"></a>
233<div class="memitem">
234<div class="memproto">
235      <table class="memname">
236        <tr>
237          <td class="memname">flair::gui::Widget::Widget </td>
238          <td>(</td>
239          <td class="paramtype">const <a class="el" href="classflair_1_1gui_1_1_widget.html">Widget</a> *&#160;</td>
240          <td class="paramname"><em>parent</em>, </td>
241        </tr>
242        <tr>
243          <td class="paramkey"></td>
244          <td></td>
245          <td class="paramtype">std::string&#160;</td>
246          <td class="paramname"><em>name</em>, </td>
247        </tr>
248        <tr>
249          <td class="paramkey"></td>
250          <td></td>
251          <td class="paramtype">std::string&#160;</td>
252          <td class="paramname"><em>type</em>&#160;</td>
253        </tr>
254        <tr>
255          <td></td>
256          <td>)</td>
257          <td></td><td></td>
258        </tr>
259      </table>
260</div><div class="memdoc">
261
262<p>Constructor. </p>
263<p>Construct a <a class="el" href="classflair_1_1gui_1_1_widget.html" title="Abstract class for all Framework&#39;s widget classes. ">Widget</a>, the xml file specified to the FrameworkManager's constructor is sued for default values. <br />
264 Two <a class="el" href="classflair_1_1gui_1_1_widget.html" title="Abstract class for all Framework&#39;s widget classes. ">Widget</a> with same parent must have different names. If a brother <a class="el" href="classflair_1_1gui_1_1_widget.html" title="Abstract class for all Framework&#39;s widget classes. ">Widget</a> already has the same name, the name of the new one will be automatically changed. <br />
265 Type must agree with predifined (hard coded) types in ground station code.</p>
266<dl class="params"><dt>Parameters</dt><dd>
267  <table class="params">
268    <tr><td class="paramname">parent</td><td>parent </td></tr>
269    <tr><td class="paramname">name</td><td>name </td></tr>
270    <tr><td class="paramname">type</td><td>type </td></tr>
271  </table>
272  </dd>
273</dl>
274
275</div>
276</div>
277<a class="anchor" id="a81110928e09e909dc1cc90971de4e8a9"></a>
278<div class="memitem">
279<div class="memproto">
280<table class="mlabels">
281  <tr>
282  <td class="mlabels-left">
283      <table class="memname">
284        <tr>
285          <td class="memname">virtual flair::gui::Widget::~Widget </td>
286          <td>(</td>
287          <td class="paramname"></td><td>)</td>
288          <td></td>
289        </tr>
290      </table>
291  </td>
292  <td class="mlabels-right">
293<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
294  </tr>
295</table>
296</div><div class="memdoc">
297
298<p>Destructor. </p>
299
300</div>
301</div>
302<h2 class="groupheader">Member Function Documentation</h2>
303<a class="anchor" id="a814a933622114ad9c8f5d49014262d89"></a>
304<div class="memitem">
305<div class="memproto">
306      <table class="memname">
307        <tr>
308          <td class="memname">void flair::gui::Widget::setEnabled </td>
309          <td>(</td>
310          <td class="paramtype">bool&#160;</td>
311          <td class="paramname"><em>status</em></td><td>)</td>
312          <td></td>
313        </tr>
314      </table>
315</div><div class="memdoc">
316
317<p>Set enabled. </p>
318<p>Enable or disable the <a class="el" href="classflair_1_1gui_1_1_widget.html" title="Abstract class for all Framework&#39;s widget classes. ">Widget</a> on the ground station. <br />
319A disabled widget is greyed out on the ground station and in unmodifiable.</p>
320<dl class="params"><dt>Parameters</dt><dd>
321  <table class="params">
322    <tr><td class="paramname">status</td><td></td></tr>
323  </table>
324  </dd>
325</dl>
326
327</div>
328</div>
329<a class="anchor" id="a299877c38b297ada04542e4dfc5a2f4f"></a>
330<div class="memitem">
331<div class="memproto">
332      <table class="memname">
333        <tr>
334          <td class="memname">bool flair::gui::Widget::isEnabled </td>
335          <td>(</td>
336          <td class="paramtype">void&#160;</td>
337          <td class="paramname"></td><td>)</td>
338          <td> const</td>
339        </tr>
340      </table>
341</div><div class="memdoc">
342
343<p>Is enabled? </p>
344<dl class="section return"><dt>Returns</dt><dd>true if widget is enabled </dd></dl>
345
346</div>
347</div>
348<a class="anchor" id="a0e81847db5a84b2e7e26545c9b1b704f"></a>
349<div class="memitem">
350<div class="memproto">
351<div class="memtemplate">
352template&lt;typename T &gt; </div>
353<table class="mlabels">
354  <tr>
355  <td class="mlabels-left">
356      <table class="memname">
357        <tr>
358          <td class="memname">void flair::gui::Widget::SetPersistentXmlProp </td>
359          <td>(</td>
360          <td class="paramtype">std::string&#160;</td>
361          <td class="paramname"><em>prop</em>, </td>
362        </tr>
363        <tr>
364          <td class="paramkey"></td>
365          <td></td>
366          <td class="paramtype">T&#160;</td>
367          <td class="paramname"><em>value</em>&#160;</td>
368        </tr>
369        <tr>
370          <td></td>
371          <td>)</td>
372          <td></td><td></td>
373        </tr>
374      </table>
375  </td>
376  <td class="mlabels-right">
377<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
378  </tr>
379</table>
380</div><div class="memdoc">
381
382<p>Set a persistent xml property. </p>
383<p>The property will be saved in the configuration xml and also used to configure the ground station.</p>
384<dl class="params"><dt>Parameters</dt><dd>
385  <table class="params">
386    <tr><td class="paramname">prop</td><td>property to set and save </td></tr>
387    <tr><td class="paramname">value</td><td>value to set and save </td></tr>
388  </table>
389  </dd>
390</dl>
391
392</div>
393</div>
394<a class="anchor" id="a6404c7f474be994ec4e72a97e45dfffa"></a>
395<div class="memitem">
396<div class="memproto">
397<div class="memtemplate">
398template&lt;typename T &gt; </div>
399<table class="mlabels">
400  <tr>
401  <td class="mlabels-left">
402      <table class="memname">
403        <tr>
404          <td class="memname">bool flair::gui::Widget::GetPersistentXmlProp </td>
405          <td>(</td>
406          <td class="paramtype">std::string&#160;</td>
407          <td class="paramname"><em>prop</em>, </td>
408        </tr>
409        <tr>
410          <td class="paramkey"></td>
411          <td></td>
412          <td class="paramtype">T &amp;&#160;</td>
413          <td class="paramname"><em>value</em>&#160;</td>
414        </tr>
415        <tr>
416          <td></td>
417          <td>)</td>
418          <td></td><td></td>
419        </tr>
420      </table>
421  </td>
422  <td class="mlabels-right">
423<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
424  </tr>
425</table>
426</div><div class="memdoc">
427
428<p>Get a persistent xml property. </p>
429<p>Get the property from the xml file. If no corresponding property is found in the xml, value remains unchanged. <br />
430 Thus value can be initialized with a default value before calling this method.</p>
431<dl class="params"><dt>Parameters</dt><dd>
432  <table class="params">
433    <tr><td class="paramname">prop</td><td>property to get </td></tr>
434    <tr><td class="paramname">value</td><td>value to store the result </td></tr>
435  </table>
436  </dd>
437</dl>
438<dl class="section return"><dt>Returns</dt><dd>true if value was changed </dd></dl>
439
440</div>
441</div>
442<a class="anchor" id="abe5ab96255919238138527c92fbeb6d8"></a>
443<div class="memitem">
444<div class="memproto">
445<div class="memtemplate">
446template&lt;typename T &gt; </div>
447<table class="mlabels">
448  <tr>
449  <td class="mlabels-left">
450      <table class="memname">
451        <tr>
452          <td class="memname">void flair::gui::Widget::SetVolatileXmlProp </td>
453          <td>(</td>
454          <td class="paramtype">std::string&#160;</td>
455          <td class="paramname"><em>prop</em>, </td>
456        </tr>
457        <tr>
458          <td class="paramkey"></td>
459          <td></td>
460          <td class="paramtype">T&#160;</td>
461          <td class="paramname"><em>value</em>, </td>
462        </tr>
463        <tr>
464          <td class="paramkey"></td>
465          <td></td>
466          <td class="paramtype">xmlNodePtr&#160;</td>
467          <td class="paramname"><em>node</em> = <code>NULL</code>&#160;</td>
468        </tr>
469        <tr>
470          <td></td>
471          <td>)</td>
472          <td></td><td></td>
473        </tr>
474      </table>
475  </td>
476  <td class="mlabels-right">
477<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
478  </tr>
479</table>
480</div><div class="memdoc">
481
482<p>Set a volatile xml property. </p>
483<p>This property should be used to configure the ground station (one time init). <br />
484 The property will be destroyed after calling <a class="el" href="classflair_1_1gui_1_1_widget.html#ac80f72906580f269b5881c1ef0b35afb" title="Send xml. ">SendXml()</a> as it should no be used anymore.</p>
485<dl class="params"><dt>Parameters</dt><dd>
486  <table class="params">
487    <tr><td class="paramname">prop</td><td>property to set </td></tr>
488    <tr><td class="paramname">value</td><td>value to set </td></tr>
489    <tr><td class="paramname">node</td><td>if sepcified, node to set; otherwise use the node of the <a class="el" href="classflair_1_1gui_1_1_widget.html" title="Abstract class for all Framework&#39;s widget classes. ">Widget</a> </td></tr>
490  </table>
491  </dd>
492</dl>
493
494</div>
495</div>
496<a class="anchor" id="ac80f72906580f269b5881c1ef0b35afb"></a>
497<div class="memitem">
498<div class="memproto">
499<table class="mlabels">
500  <tr>
501  <td class="mlabels-left">
502      <table class="memname">
503        <tr>
504          <td class="memname">void flair::gui::Widget::SendXml </td>
505          <td>(</td>
506          <td class="paramtype">void&#160;</td>
507          <td class="paramname"></td><td>)</td>
508          <td></td>
509        </tr>
510      </table>
511  </td>
512  <td class="mlabels-right">
513<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
514  </tr>
515</table>
516</div><div class="memdoc">
517
518<p>Send xml. </p>
519<p>Send <a class="el" href="classflair_1_1gui_1_1_widget.html" title="Abstract class for all Framework&#39;s widget classes. ">Widget</a>'s xml to ground station. <br />
520 New changes will be taken into account by ground station. <br />
521 All volatile properties will be erased after calling ths method, as they should not be used anymore. </p>
522
523</div>
524</div>
525<a class="anchor" id="a92d4e0613146c9b348b388f3f75cca9e"></a>
526<div class="memitem">
527<div class="memproto">
528<table class="mlabels">
529  <tr>
530  <td class="mlabels-left">
531      <table class="memname">
532        <tr>
533          <td class="memname">virtual void flair::gui::Widget::XmlEvent </td>
534          <td>(</td>
535          <td class="paramtype">void&#160;</td>
536          <td class="paramname"></td><td>)</td>
537          <td></td>
538        </tr>
539      </table>
540  </td>
541  <td class="mlabels-right">
542<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
543  </tr>
544</table>
545</div><div class="memdoc">
546
547<p>Xml event. </p>
548<p>This method must be reimplemented to handle a xml event. <br />
549It is automatically called when something changed from ground station. <br />
550</p>
551
552</div>
553</div>
554<a class="anchor" id="a9ba37bd7fad0f4a97175d922b93b5434"></a>
555<div class="memitem">
556<div class="memproto">
557<table class="mlabels">
558  <tr>
559  <td class="mlabels-left">
560      <table class="memname">
561        <tr>
562          <td class="memname">void flair::gui::Widget::UnsetPersistentXmlProp </td>
563          <td>(</td>
564          <td class="paramtype">std::string&#160;</td>
565          <td class="paramname"><em>prop</em></td><td>)</td>
566          <td></td>
567        </tr>
568      </table>
569  </td>
570  <td class="mlabels-right">
571<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
572  </tr>
573</table>
574</div><div class="memdoc">
575
576<p>Unset a persistent xml property. </p>
577<p>Unset an existent property, so it won't be saved.</p>
578<dl class="params"><dt>Parameters</dt><dd>
579  <table class="params">
580    <tr><td class="paramname">prop</td><td>property to set </td></tr>
581  </table>
582  </dd>
583</dl>
584
585</div>
586</div>
587</div><!-- contents -->
588</div><!-- doc-content -->
589<!-- start footer part -->
590<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
591  <ul>
592    <li class="navelem"><a class="el" href="namespaceflair.html">flair</a></li><li class="navelem"><a class="el" href="namespaceflair_1_1gui.html">gui</a></li><li class="navelem"><a class="el" href="classflair_1_1gui_1_1_widget.html">Widget</a></li>
593    <li class="footer">Generated on Thu Jan 5 2017 11:01:23 for Flair by
594    <a href="http://www.doxygen.org/index.html">
595    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
596  </ul>
597</div>
598</body>
599</html>
Note: See TracBrowser for help on using the repository browser.