123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.9.1"/>
- <title>My Project: Fichero Fuente bird.h</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <script type="text/javascript">
- $(document).ready(function() { init_search(); });
- </script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td style="padding-left: 0.5em;">
- <div id="projectname">My Project
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generado por Doxygen 1.8.9.1 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
- </script>
- <div id="navrow1" class="tabs">
- <ul class="tablist">
- <li><a href="index.html"><span>Página principal</span></a></li>
- <li><a href="annotated.html"><span>Clases</span></a></li>
- <li class="current"><a href="files.html"><span>Archivos</span></a></li>
- <li>
- <div id="MSearchBox" class="MSearchBoxInactive">
- <span class="left">
- <img id="MSearchSelect" src="search/mag_sel.png"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- alt=""/>
- <input type="text" id="MSearchField" value="Buscar" accesskey="S"
- onfocus="searchBox.OnSearchFieldFocus(true)"
- onblur="searchBox.OnSearchFieldFocus(false)"
- onkeyup="searchBox.OnSearchFieldChange(event)"/>
- </span><span class="right">
- <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
- </span>
- </div>
- </li>
- </ul>
- </div>
- <div id="navrow2" class="tabs2">
- <ul class="tablist">
- <li><a href="files.html"><span>Lista de archivos</span></a></li>
- <li><a href="globals.html"><span>Miembros de los ficheros</span></a></li>
- </ul>
- </div>
- </div><!-- top -->
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
-
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
-
- <div class="header">
- <div class="headertitle">
- <div class="title">bird.h</div> </div>
- </div><!--header-->
- <div class="contents">
- <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef BIRD_H</span></div>
- <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define BIRD_H</span></div>
- <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div>
- <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <QWidget></span></div>
- <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <QPainter></span></div>
- <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> </div>
- <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div>
- <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div>
- <div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="class_bird.html"> 16</a></span> <span class="keyword">class </span><a class="code" href="class_bird.html">Bird</a> : <span class="keyword">public</span> QWidget</div>
- <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> {</div>
- <div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  Q_OBJECT</div>
- <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">public</span>:</div>
- <div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec"> 23</a></span>  <span class="keyword">enum</span> <a class="code" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">EyeBrowType</a> {</div>
- <div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ecaf9935ec07fd09a4b397eea6c57a102e1"> 24</a></span>  <a class="code" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ecaf9935ec07fd09a4b397eea6c57a102e1">UNI</a>, </div>
- <div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516eca24536e544c195223cacd716d413a8070"> 25</a></span>  <a class="code" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516eca24536e544c195223cacd716d413a8070">ANGRY</a>, </div>
- <div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516eca670f5ceeff9e3e634754d49e77cdc049"> 26</a></span>  <a class="code" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516eca670f5ceeff9e3e634754d49e77cdc049">UPSET</a>, </div>
- <div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516eca8e3136f10413edb87bd280f4a5c15008"> 27</a></span>  <a class="code" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516eca8e3136f10413edb87bd280f4a5c15008">BUSHY</a> </div>
- <div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  };</div>
- <div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
- <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">explicit</span> <a class="code" href="class_bird.html#abfe484323ac9e48a6371eef4de8538fe">Bird</a>(QWidget *parent = 0);</div>
- <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div>
- <div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="class_bird.html#abfe484323ac9e48a6371eef4de8538fe">Bird</a>(<span class="keywordtype">int</span> , <a class="code" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">EyeBrowType</a> , QString , QString, QWidget *parent = 0) ;</div>
- <div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div>
- <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  QString <a class="code" href="class_bird.html#a9ca7641056d08c5f73263d2379ac47e0">getEyeColor</a>() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div>
- <div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  QString <a class="code" href="class_bird.html#a41a64913760b45a1c515047878d92583">getFaceColor</a>() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div>
- <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordtype">void</span> <a class="code" href="class_bird.html#a835df93d19d5467ae4380273619d39e5">setEyeColor</a>(QString) ;</div>
- <div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div>
- <div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordtype">void</span> <a class="code" href="class_bird.html#a0800cd1d6974f949af715da44eec9476">setFaceColor</a>(QString) ;</div>
- <div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div>
- <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordtype">int</span> <a class="code" href="class_bird.html#a48ac642e41fd1bd99ce3915c14d4bb4a">getSize</a>() <span class="keyword">const</span> ;</div>
- <div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div>
- <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <a class="code" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">EyeBrowType</a> getEyebrow() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div>
- <div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordtype">void</span> <a class="code" href="class_bird.html#afe637db83f012091302bc04d29a5d1be">setSize</a>(<span class="keywordtype">int</span>) ;</div>
- <div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div>
- <div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordtype">void</span> <a class="code" href="class_bird.html#a631b29bf1daab6e7d029df40664a0604">setEyebrow</a>(<a class="code" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">EyeBrowType</a>) ;</div>
- <div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div>
- <div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  Qt::GlobalColor <a class="code" href="class_bird.html#a9e62ffa00de025d9d4b003e302c70e0e">getColor</a>(QString) <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div>
- <div class="line"><a name="l00134"></a><span class="lineno"> 134</span> signals:</div>
- <div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div>
- <div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="keyword">public</span> slots:</div>
- <div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div>
- <div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="keyword">protected</span>:</div>
- <div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordtype">void</span> <a class="code" href="class_bird.html#ac7c0133625489af1aed22ee376272d15">paintEvent</a>(QPaintEvent *);</div>
- <div class="line"><a name="l00147"></a><span class="lineno"> 147</span> </div>
- <div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="keyword">private</span>:</div>
- <div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="class_bird.html#aa8e23a86d722c6f81f969c556cef0342"> 149</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_bird.html#aa8e23a86d722c6f81f969c556cef0342">size</a> ; </div>
- <div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="class_bird.html#a9ec579543e7139067b28fa07d6121c57"> 150</a></span>  <a class="code" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">EyeBrowType</a> <a class="code" href="class_bird.html#a9ec579543e7139067b28fa07d6121c57">eyeBrow</a> ; </div>
- <div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="class_bird.html#a53ffc41e40cf2c8c2ea71ffbb97e9dba"> 151</a></span>  QString <a class="code" href="class_bird.html#a53ffc41e40cf2c8c2ea71ffbb97e9dba">color</a> ; </div>
- <div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="class_bird.html#a3a2f86b733b043678c46554543689a11"> 152</a></span>  QString <a class="code" href="class_bird.html#a3a2f86b733b043678c46554543689a11">eColor</a> ; </div>
- <div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordtype">int</span> <a class="code" href="class_bird.html#a8a6fa1980da30e3bab3e2d051ce9d2f7">randInt</a>(<span class="keywordtype">int</span> min, <span class="keywordtype">int</span> max) ;</div>
- <div class="line"><a name="l00165"></a><span class="lineno"> 165</span> };</div>
- <div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div>
- <div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="preprocessor">#endif // BIRD_H</span></div>
- <div class="ttc" id="class_bird_html_abfe484323ac9e48a6371eef4de8538fe"><div class="ttname"><a href="class_bird.html#abfe484323ac9e48a6371eef4de8538fe">Bird::Bird</a></div><div class="ttdeci">Bird(QWidget *parent=0)</div><div class="ttdoc">Constructor por defecto. Las propiedades de el pajaron son ajustados como sigue: </div><div class="ttdef"><b>Definition:</b> bird.cpp:24</div></div>
- <div class="ttc" id="class_bird_html_a9ca7641056d08c5f73263d2379ac47e0"><div class="ttname"><a href="class_bird.html#a9ca7641056d08c5f73263d2379ac47e0">Bird::getEyeColor</a></div><div class="ttdeci">QString getEyeColor() const </div><div class="ttdoc">Devuelve el color del ojo. </div><div class="ttdef"><b>Definition:</b> bird.cpp:66</div></div>
- <div class="ttc" id="class_bird_html_a53ffc41e40cf2c8c2ea71ffbb97e9dba"><div class="ttname"><a href="class_bird.html#a53ffc41e40cf2c8c2ea71ffbb97e9dba">Bird::color</a></div><div class="ttdeci">QString color</div><div class="ttdef"><b>Definition:</b> bird.h:151</div></div>
- <div class="ttc" id="class_bird_html_a0800cd1d6974f949af715da44eec9476"><div class="ttname"><a href="class_bird.html#a0800cd1d6974f949af715da44eec9476">Bird::setFaceColor</a></div><div class="ttdeci">void setFaceColor(QString)</div><div class="ttdoc">Ajusta el color de la cara. </div><div class="ttdef"><b>Definition:</b> bird.cpp:97</div></div>
- <div class="ttc" id="class_bird_html_a835df93d19d5467ae4380273619d39e5"><div class="ttname"><a href="class_bird.html#a835df93d19d5467ae4380273619d39e5">Bird::setEyeColor</a></div><div class="ttdeci">void setEyeColor(QString)</div><div class="ttdoc">Ajusta el color del ojo. </div><div class="ttdef"><b>Definition:</b> bird.cpp:86</div></div>
- <div class="ttc" id="class_bird_html_a48ac642e41fd1bd99ce3915c14d4bb4a"><div class="ttname"><a href="class_bird.html#a48ac642e41fd1bd99ce3915c14d4bb4a">Bird::getSize</a></div><div class="ttdeci">int getSize() const </div><div class="ttdoc">Devuelve el tamano del pajaro. </div><div class="ttdef"><b>Definition:</b> bird.cpp:106</div></div>
- <div class="ttc" id="class_bird_html_ac7c0133625489af1aed22ee376272d15"><div class="ttname"><a href="class_bird.html#ac7c0133625489af1aed22ee376272d15">Bird::paintEvent</a></div><div class="ttdeci">void paintEvent(QPaintEvent *)</div><div class="ttdoc">Esta funcion es invocada automaticamente cada ves que el widget o su padre recive una senal de repint...</div><div class="ttdef"><b>Definition:</b> bird.cpp:191</div></div>
- <div class="ttc" id="class_bird_html_a1e608d95cce3b3c7b1497d86b37516eca670f5ceeff9e3e634754d49e77cdc049"><div class="ttname"><a href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516eca670f5ceeff9e3e634754d49e77cdc049">Bird::UPSET</a></div><div class="ttdef"><b>Definition:</b> bird.h:26</div></div>
- <div class="ttc" id="class_bird_html_a3a2f86b733b043678c46554543689a11"><div class="ttname"><a href="class_bird.html#a3a2f86b733b043678c46554543689a11">Bird::eColor</a></div><div class="ttdeci">QString eColor</div><div class="ttdef"><b>Definition:</b> bird.h:152</div></div>
- <div class="ttc" id="class_bird_html_a41a64913760b45a1c515047878d92583"><div class="ttname"><a href="class_bird.html#a41a64913760b45a1c515047878d92583">Bird::getFaceColor</a></div><div class="ttdeci">QString getFaceColor() const </div><div class="ttdoc">Devuelve el color de la cara. </div><div class="ttdef"><b>Definition:</b> bird.cpp:75</div></div>
- <div class="ttc" id="class_bird_html_a631b29bf1daab6e7d029df40664a0604"><div class="ttname"><a href="class_bird.html#a631b29bf1daab6e7d029df40664a0604">Bird::setEyebrow</a></div><div class="ttdeci">void setEyebrow(EyeBrowType)</div><div class="ttdoc">Ajusta el tipo de cejas. </div><div class="ttdef"><b>Definition:</b> bird.cpp:140</div></div>
- <div class="ttc" id="class_bird_html_a1e608d95cce3b3c7b1497d86b37516eca8e3136f10413edb87bd280f4a5c15008"><div class="ttname"><a href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516eca8e3136f10413edb87bd280f4a5c15008">Bird::BUSHY</a></div><div class="ttdef"><b>Definition:</b> bird.h:27</div></div>
- <div class="ttc" id="class_bird_html_aa8e23a86d722c6f81f969c556cef0342"><div class="ttname"><a href="class_bird.html#aa8e23a86d722c6f81f969c556cef0342">Bird::size</a></div><div class="ttdeci">int size</div><div class="ttdef"><b>Definition:</b> bird.h:149</div></div>
- <div class="ttc" id="class_bird_html_a1e608d95cce3b3c7b1497d86b37516ec"><div class="ttname"><a href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">Bird::EyeBrowType</a></div><div class="ttdeci">EyeBrowType</div><div class="ttdef"><b>Definition:</b> bird.h:23</div></div>
- <div class="ttc" id="class_bird_html_a1e608d95cce3b3c7b1497d86b37516ecaf9935ec07fd09a4b397eea6c57a102e1"><div class="ttname"><a href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ecaf9935ec07fd09a4b397eea6c57a102e1">Bird::UNI</a></div><div class="ttdef"><b>Definition:</b> bird.h:24</div></div>
- <div class="ttc" id="class_bird_html_a8a6fa1980da30e3bab3e2d051ce9d2f7"><div class="ttname"><a href="class_bird.html#a8a6fa1980da30e3bab3e2d051ce9d2f7">Bird::randInt</a></div><div class="ttdeci">int randInt(int min, int max)</div><div class="ttdoc">Genera un entero aleatorio en el rango [min, max]. </div><div class="ttdef"><b>Definition:</b> bird.cpp:178</div></div>
- <div class="ttc" id="class_bird_html_afe637db83f012091302bc04d29a5d1be"><div class="ttname"><a href="class_bird.html#afe637db83f012091302bc04d29a5d1be">Bird::setSize</a></div><div class="ttdeci">void setSize(int)</div><div class="ttdoc">Ajusta el tamano del pajaro. </div><div class="ttdef"><b>Definition:</b> bird.cpp:126</div></div>
- <div class="ttc" id="class_bird_html_a9e62ffa00de025d9d4b003e302c70e0e"><div class="ttname"><a href="class_bird.html#a9e62ffa00de025d9d4b003e302c70e0e">Bird::getColor</a></div><div class="ttdeci">Qt::GlobalColor getColor(QString) const </div><div class="ttdoc">Convierte un color especificado como un string a un Qt::GlobalColor. </div><div class="ttdef"><b>Definition:</b> bird.cpp:153</div></div>
- <div class="ttc" id="class_bird_html"><div class="ttname"><a href="class_bird.html">Bird</a></div><div class="ttdef"><b>Definition:</b> bird.h:16</div></div>
- <div class="ttc" id="class_bird_html_a1e608d95cce3b3c7b1497d86b37516eca24536e544c195223cacd716d413a8070"><div class="ttname"><a href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516eca24536e544c195223cacd716d413a8070">Bird::ANGRY</a></div><div class="ttdef"><b>Definition:</b> bird.h:25</div></div>
- <div class="ttc" id="class_bird_html_a9ec579543e7139067b28fa07d6121c57"><div class="ttname"><a href="class_bird.html#a9ec579543e7139067b28fa07d6121c57">Bird::eyeBrow</a></div><div class="ttdeci">EyeBrowType eyeBrow</div><div class="ttdef"><b>Definition:</b> bird.h:150</div></div>
- </div><!-- fragment --></div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generado el Viernes, 5 de Junio de 2015 15:14:20 para My Project por  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.9.1
- </small></address>
- </body>
- </html>
|