Нет описания

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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>My Project: dialog.h Source File</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="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td style="padding-left: 0.5em;">
  26. <div id="projectname">My Project
  27. </div>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generated by Doxygen 1.8.9.1 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  41. <li><a href="annotated.html"><span>Classes</span></a></li>
  42. <li class="current"><a href="files.html"><span>Files</span></a></li>
  43. <li>
  44. <div id="MSearchBox" class="MSearchBoxInactive">
  45. <span class="left">
  46. <img id="MSearchSelect" src="search/mag_sel.png"
  47. onmouseover="return searchBox.OnSearchSelectShow()"
  48. onmouseout="return searchBox.OnSearchSelectHide()"
  49. alt=""/>
  50. <input type="text" id="MSearchField" value="Search" accesskey="S"
  51. onfocus="searchBox.OnSearchFieldFocus(true)"
  52. onblur="searchBox.OnSearchFieldFocus(false)"
  53. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  54. </span><span class="right">
  55. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  56. </span>
  57. </div>
  58. </li>
  59. </ul>
  60. </div>
  61. <div id="navrow2" class="tabs2">
  62. <ul class="tablist">
  63. <li><a href="files.html"><span>File&#160;List</span></a></li>
  64. </ul>
  65. </div>
  66. </div><!-- top -->
  67. <!-- window showing the filter options -->
  68. <div id="MSearchSelectWindow"
  69. onmouseover="return searchBox.OnSearchSelectShow()"
  70. onmouseout="return searchBox.OnSearchSelectHide()"
  71. onkeydown="return searchBox.OnSearchSelectKey(event)">
  72. </div>
  73. <!-- iframe showing the search results (closed by default) -->
  74. <div id="MSearchResultsWindow">
  75. <iframe src="javascript:void(0)" frameborder="0"
  76. name="MSearchResults" id="MSearchResults">
  77. </iframe>
  78. </div>
  79. <div class="header">
  80. <div class="headertitle">
  81. <div class="title">dialog.h</div> </div>
  82. </div><!--header-->
  83. <div class="contents">
  84. <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef DIALOG_H</span></div>
  85. <div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define DIALOG_H</span></div>
  86. <div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div>
  87. <div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &quot;grid.h&quot;</span></div>
  88. <div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &lt;QDialog&gt;</span></div>
  89. <div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div>
  90. <div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_ui.html">Ui</a> {</div>
  91. <div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="keyword">class </span><a class="code" href="class_dialog.html">Dialog</a>;</div>
  92. <div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;}</div>
  93. <div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div>
  94. <div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="class_dialog.html"> 11</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_dialog.html">Dialog</a> : <span class="keyword">public</span> QDialog</div>
  95. <div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;{</div>
  96. <div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; Q_OBJECT</div>
  97. <div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div>
  98. <div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="keyword">public</span>:</div>
  99. <div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div>
  100. <div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; <span class="keyword">explicit</span> <a class="code" href="class_dialog.html#acfa2063f9f962d394c6a645b6e7e08d8">Dialog</a>(QWidget *parent = 0);</div>
  101. <div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div>
  102. <div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <a class="code" href="class_dialog.html#a2a1fe6ef28513eed13bfcd3a4da83ccb">~Dialog</a>();</div>
  103. <div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div>
  104. <div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keyword">private</span> slots:</div>
  105. <div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div>
  106. <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#a27837731f7f92dbdf183a88d69e5f058">on_frontcolorComboBox_activated</a>(<span class="keyword">const</span> QString &amp;color);</div>
  107. <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;</div>
  108. <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#aadf1421d1559f8854f4e4637952f7a22">on_backgroundComboBox_activated</a>(<span class="keyword">const</span> QString &amp;color);</div>
  109. <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;</div>
  110. <div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#a2c86f6c6c061a6ef60ef2e2de2073846">on_lapizButton_clicked</a>();</div>
  111. <div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div>
  112. <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#ac4e4be6ea6b85a7c446cf5cbe52ff24d">on_cleargridButton_clicked</a>();</div>
  113. <div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;</div>
  114. <div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#af71690dee26ef70a83799fd03aed83d9">on_rowmajorfillButton_clicked</a>();</div>
  115. <div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;</div>
  116. <div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;</div>
  117. <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#a4b856dc1212f1f93217a912918fa17c2">on_colmajorfillButton_clicked</a>();</div>
  118. <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;</div>
  119. <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#a91fdfd22e9b620cb7053e6e6d1419743">on_diagonalleftButton_clicked</a>();</div>
  120. <div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div>
  121. <div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#af00e19216a6b70db95ed17ed9bcbd6bd">on_diagonalrightButton_clicked</a>();</div>
  122. <div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div>
  123. <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#a7c01f33bd33dc3a12bc1bcd806b10af9">on_drawsquareButton_clicked</a>();</div>
  124. <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;</div>
  125. <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#ad5dee98d3cbaf5f20e7a313eeb799046">on_drawtriangleButton_clicked</a>();</div>
  126. <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;</div>
  127. <div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#a1c4e497f4dc5bf7aabcf71a6abe6097e">on_drawcircleButton_clicked</a>();</div>
  128. <div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;</div>
  129. <div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#a1d3a61ccc093ec58c70a7e2596b06d75">on_speedHorizontalSlider_valueChanged</a>(<span class="keywordtype">int</span> value);</div>
  130. <div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;</div>
  131. <div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#ac1de62e0b8c7d6880b83697b148dad18">on_undoButton_clicked</a>();</div>
  132. <div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;</div>
  133. <div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#a165b1efc87f92641d05612761864509a">on_redoButton_clicked</a>();</div>
  134. <div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;</div>
  135. <div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#abab21e66c8b496296fccb401d20c229d">setUndo</a>(<span class="keywordtype">bool</span> cannot);</div>
  136. <div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;</div>
  137. <div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_dialog.html#a7515d0b8d86ba9a798d0aa5e1ea83a2f">setRedo</a>(<span class="keywordtype">bool</span> cannot);</div>
  138. <div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;</div>
  139. <div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;<span class="keyword">private</span>:</div>
  140. <div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; Ui::Dialog *ui;</div>
  141. <div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <a class="code" href="class_grid_widget.html">GridWidget</a> *grid;</div>
  142. <div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;};</div>
  143. <div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;</div>
  144. <div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;<span class="preprocessor">#endif // DIALOG_H</span></div>
  145. <div class="ttc" id="class_dialog_html_a1c4e497f4dc5bf7aabcf71a6abe6097e"><div class="ttname"><a href="class_dialog.html#a1c4e497f4dc5bf7aabcf71a6abe6097e">Dialog::on_drawcircleButton_clicked</a></div><div class="ttdeci">void on_drawcircleButton_clicked()</div><div class="ttdoc">Sets the tool to paint Circles. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:171</div></div>
  146. <div class="ttc" id="class_dialog_html_a4b856dc1212f1f93217a912918fa17c2"><div class="ttname"><a href="class_dialog.html#a4b856dc1212f1f93217a912918fa17c2">Dialog::on_colmajorfillButton_clicked</a></div><div class="ttdeci">void on_colmajorfillButton_clicked()</div><div class="ttdoc">Sets the tool to Column fill. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:121</div></div>
  147. <div class="ttc" id="class_dialog_html_a2a1fe6ef28513eed13bfcd3a4da83ccb"><div class="ttname"><a href="class_dialog.html#a2a1fe6ef28513eed13bfcd3a4da83ccb">Dialog::~Dialog</a></div><div class="ttdeci">~Dialog()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:54</div></div>
  148. <div class="ttc" id="class_dialog_html_acfa2063f9f962d394c6a645b6e7e08d8"><div class="ttname"><a href="class_dialog.html#acfa2063f9f962d394c6a645b6e7e08d8">Dialog::Dialog</a></div><div class="ttdeci">Dialog(QWidget *parent=0)</div><div class="ttdoc">The constructor sets the undo and redo to disable so it cant be pressed also sets the connections bet...</div><div class="ttdef"><b>Definition:</b> dialog.cpp:17</div></div>
  149. <div class="ttc" id="class_dialog_html_ad5dee98d3cbaf5f20e7a313eeb799046"><div class="ttname"><a href="class_dialog.html#ad5dee98d3cbaf5f20e7a313eeb799046">Dialog::on_drawtriangleButton_clicked</a></div><div class="ttdeci">void on_drawtriangleButton_clicked()</div><div class="ttdoc">Sets the tool to paint Triangles. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:161</div></div>
  150. <div class="ttc" id="class_dialog_html_a91fdfd22e9b620cb7053e6e6d1419743"><div class="ttname"><a href="class_dialog.html#a91fdfd22e9b620cb7053e6e6d1419743">Dialog::on_diagonalleftButton_clicked</a></div><div class="ttdeci">void on_diagonalleftButton_clicked()</div><div class="ttdoc">Sets the tool to Diagonal Left fill. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:131</div></div>
  151. <div class="ttc" id="class_dialog_html_ac1de62e0b8c7d6880b83697b148dad18"><div class="ttname"><a href="class_dialog.html#ac1de62e0b8c7d6880b83697b148dad18">Dialog::on_undoButton_clicked</a></div><div class="ttdeci">void on_undoButton_clicked()</div><div class="ttdoc">Undo the previous grid modification. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:194</div></div>
  152. <div class="ttc" id="class_dialog_html_a165b1efc87f92641d05612761864509a"><div class="ttname"><a href="class_dialog.html#a165b1efc87f92641d05612761864509a">Dialog::on_redoButton_clicked</a></div><div class="ttdeci">void on_redoButton_clicked()</div><div class="ttdoc">Redo the previous grid modification. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:204</div></div>
  153. <div class="ttc" id="namespace_ui_html"><div class="ttname"><a href="namespace_ui.html">Ui</a></div><div class="ttdef"><b>Definition:</b> dialog.h:7</div></div>
  154. <div class="ttc" id="class_dialog_html_abab21e66c8b496296fccb401d20c229d"><div class="ttname"><a href="class_dialog.html#abab21e66c8b496296fccb401d20c229d">Dialog::setUndo</a></div><div class="ttdeci">void setUndo(bool cannot)</div><div class="ttdoc">Enables the undo button. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:34</div></div>
  155. <div class="ttc" id="class_dialog_html_a2c86f6c6c061a6ef60ef2e2de2073846"><div class="ttname"><a href="class_dialog.html#a2c86f6c6c061a6ef60ef2e2de2073846">Dialog::on_lapizButton_clicked</a></div><div class="ttdeci">void on_lapizButton_clicked()</div><div class="ttdoc">Sets the tool to dot. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:90</div></div>
  156. <div class="ttc" id="class_dialog_html_a7c01f33bd33dc3a12bc1bcd806b10af9"><div class="ttname"><a href="class_dialog.html#a7c01f33bd33dc3a12bc1bcd806b10af9">Dialog::on_drawsquareButton_clicked</a></div><div class="ttdeci">void on_drawsquareButton_clicked()</div><div class="ttdoc">Sets the tool to paint Squares. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:151</div></div>
  157. <div class="ttc" id="class_dialog_html_aadf1421d1559f8854f4e4637952f7a22"><div class="ttname"><a href="class_dialog.html#aadf1421d1559f8854f4e4637952f7a22">Dialog::on_backgroundComboBox_activated</a></div><div class="ttdeci">void on_backgroundComboBox_activated(const QString &amp;color)</div><div class="ttdoc">Sets the color of the background. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:79</div></div>
  158. <div class="ttc" id="class_dialog_html_af71690dee26ef70a83799fd03aed83d9"><div class="ttname"><a href="class_dialog.html#af71690dee26ef70a83799fd03aed83d9">Dialog::on_rowmajorfillButton_clicked</a></div><div class="ttdeci">void on_rowmajorfillButton_clicked()</div><div class="ttdoc">Sets the tool to Row fill. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:111</div></div>
  159. <div class="ttc" id="class_dialog_html"><div class="ttname"><a href="class_dialog.html">Dialog</a></div><div class="ttdef"><b>Definition:</b> dialog.h:11</div></div>
  160. <div class="ttc" id="class_dialog_html_af00e19216a6b70db95ed17ed9bcbd6bd"><div class="ttname"><a href="class_dialog.html#af00e19216a6b70db95ed17ed9bcbd6bd">Dialog::on_diagonalrightButton_clicked</a></div><div class="ttdeci">void on_diagonalrightButton_clicked()</div><div class="ttdoc">Sets the tool to Diagonal Right fill. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:141</div></div>
  161. <div class="ttc" id="class_dialog_html_a7515d0b8d86ba9a798d0aa5e1ea83a2f"><div class="ttname"><a href="class_dialog.html#a7515d0b8d86ba9a798d0aa5e1ea83a2f">Dialog::setRedo</a></div><div class="ttdeci">void setRedo(bool cannot)</div><div class="ttdoc">Enables the redo button. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:44</div></div>
  162. <div class="ttc" id="class_dialog_html_a27837731f7f92dbdf183a88d69e5f058"><div class="ttname"><a href="class_dialog.html#a27837731f7f92dbdf183a88d69e5f058">Dialog::on_frontcolorComboBox_activated</a></div><div class="ttdeci">void on_frontcolorComboBox_activated(const QString &amp;color)</div><div class="ttdoc">Sets the color of the brush. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:66</div></div>
  163. <div class="ttc" id="class_dialog_html_ac4e4be6ea6b85a7c446cf5cbe52ff24d"><div class="ttname"><a href="class_dialog.html#ac4e4be6ea6b85a7c446cf5cbe52ff24d">Dialog::on_cleargridButton_clicked</a></div><div class="ttdeci">void on_cleargridButton_clicked()</div><div class="ttdoc">Clears the grid. Erase the grid. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:100</div></div>
  164. <div class="ttc" id="class_dialog_html_a1d3a61ccc093ec58c70a7e2596b06d75"><div class="ttname"><a href="class_dialog.html#a1d3a61ccc093ec58c70a7e2596b06d75">Dialog::on_speedHorizontalSlider_valueChanged</a></div><div class="ttdeci">void on_speedHorizontalSlider_valueChanged(int value)</div><div class="ttdoc">Sets the tool point size. </div><div class="ttdef"><b>Definition:</b> dialog.cpp:183</div></div>
  165. <div class="ttc" id="class_grid_widget_html"><div class="ttname"><a href="class_grid_widget.html">GridWidget</a></div><div class="ttdef"><b>Definition:</b> grid.h:42</div></div>
  166. </div><!-- fragment --></div><!-- contents -->
  167. <!-- start footer part -->
  168. <hr class="footer"/><address class="footer"><small>
  169. Generated on Thu Jun 18 2015 16:01:02 for My Project by &#160;<a href="http://www.doxygen.org/index.html">
  170. <img class="footer" src="doxygen.png" alt="doxygen"/>
  171. </a> 1.8.9.1
  172. </small></address>
  173. </body>
  174. </html>