No Description

class_grid_widget.tex 36KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  1. \hypertarget{class_grid_widget}{}\section{Grid\+Widget Class Reference}
  2. \label{class_grid_widget}\index{Grid\+Widget@{Grid\+Widget}}
  3. {\ttfamily \#include $<$grid.\+h$>$}
  4. Inheritance diagram for Grid\+Widget\+:\begin{figure}[H]
  5. \begin{center}
  6. \leavevmode
  7. \includegraphics[height=2.000000cm]{class_grid_widget}
  8. \end{center}
  9. \end{figure}
  10. \subsection*{Signals}
  11. \begin{DoxyCompactItemize}
  12. \item
  13. \hypertarget{class_grid_widget_a03fb9de07df9c6d1e10050160ef0bce5}{}void {\bfseries cell\+Clicked} (Q\+Point pos)\label{class_grid_widget_a03fb9de07df9c6d1e10050160ef0bce5}
  14. \item
  15. \hypertarget{class_grid_widget_a4fe89ce12f526ca7b48dda9a97398807}{}void {\bfseries can\+Undo} (bool can)\label{class_grid_widget_a4fe89ce12f526ca7b48dda9a97398807}
  16. \item
  17. \hypertarget{class_grid_widget_a476721515464b1217486a1a3e6f573fc}{}void {\bfseries can\+Redo} (bool can)\label{class_grid_widget_a476721515464b1217486a1a3e6f573fc}
  18. \end{DoxyCompactItemize}
  19. \subsection*{Public Member Functions}
  20. \begin{DoxyCompactItemize}
  21. \item
  22. \hyperlink{class_grid_widget_ad3370c8905e4f03b666d1be221f4c412}{Grid\+Widget} (int row\+Count=100, int column\+Count=100, Q\+Widget $\ast$parent=0)
  23. \begin{DoxyCompactList}\small\item\em Constructor which receives the number of rows and columns in the grid. \end{DoxyCompactList}\item
  24. \hyperlink{class_grid_widget_a8d85ee082bf0dd38eb581697844f825d}{Grid\+Widget} (Q\+Widget $\ast$parent)
  25. \begin{DoxyCompactList}\small\item\em Default constructor. The properties of the grid are set as follows\+: \end{DoxyCompactList}\item
  26. void \hyperlink{class_grid_widget_a87a46b6a3e5522e851732093b757baae}{set\+Grid\+Size} (int row\+Count, int column\+Count)
  27. \begin{DoxyCompactList}\small\item\em Sets the number of columns and rows of the grid. \end{DoxyCompactList}\item
  28. void \hyperlink{class_grid_widget_ace3447d5fc329c47b55395a52a9eaf13}{switch\+On} (int x, int y, const Q\+Color \&color)
  29. \begin{DoxyCompactList}\small\item\em Saves the given color and position in the vector that represents the painted cells of the grid. \end{DoxyCompactList}\item
  30. Q\+Color \hyperlink{class_grid_widget_a50a2a9b2490de84dba08be23130fd9d4}{get\+Cell\+Color} (int x, int y)
  31. \begin{DoxyCompactList}\small\item\em Returns the color of the cell in position (x,y) \end{DoxyCompactList}\item
  32. void \hyperlink{class_grid_widget_aca84a4a79a25f1adebaeb69f32022882}{switch\+Off} (int x, int y)
  33. \begin{DoxyCompactList}\small\item\em Removes the given position from the vector that represents the painted cells of the grid. \end{DoxyCompactList}\item
  34. int \hyperlink{class_grid_widget_a1b92c3f484ea93338f3c0b8348a334f9}{get\+Grid\+Columns} ()
  35. \begin{DoxyCompactList}\small\item\em Returns the number of columns in the grid. \end{DoxyCompactList}\item
  36. int \hyperlink{class_grid_widget_afa1e34f8dbae400cf200fdeb2398f138}{get\+Grid\+Rows} ()
  37. \begin{DoxyCompactList}\small\item\em Returns the number of rows in the grid. \end{DoxyCompactList}\item
  38. \hypertarget{class_grid_widget_a7979db95cc3533858a17946b8a70abe3}{}void \hyperlink{class_grid_widget_a7979db95cc3533858a17946b8a70abe3}{clear} ()\label{class_grid_widget_a7979db95cc3533858a17946b8a70abe3}
  39. \begin{DoxyCompactList}\small\item\em Clears the grid and sets it to its initial state. \end{DoxyCompactList}\item
  40. void \hyperlink{class_grid_widget_a8a128f08a3471f751442dfe1306250f4}{set\+Cell\+Size} (int size)
  41. \begin{DoxyCompactList}\small\item\em Sets the size of the cells in the grid. \end{DoxyCompactList}\item
  42. void \hyperlink{class_grid_widget_a242812c406b269657eb6092af4a0ae7e}{set\+Tool} (Q\+String tool)
  43. \begin{DoxyCompactList}\small\item\em Sets the tool. \end{DoxyCompactList}\item
  44. void \hyperlink{class_grid_widget_abe71249d6d54e84698dcb831c9df4c17}{set\+Front} (Q\+String front)
  45. \begin{DoxyCompactList}\small\item\em Sets the color of the brush. \end{DoxyCompactList}\item
  46. void \hyperlink{class_grid_widget_a64cd0418127923278bd7dd3ddd3bd459}{set\+Back} (Q\+String back)
  47. \begin{DoxyCompactList}\small\item\em Sets the color of the background. \end{DoxyCompactList}\item
  48. void \hyperlink{class_grid_widget_aca5c4e4edab002da08a7d76b7acf8ce7}{set\+Tool\+Size} (int size)
  49. \begin{DoxyCompactList}\small\item\em Sets the size of the tool. \end{DoxyCompactList}\item
  50. void \hyperlink{class_grid_widget_ac4b7dcf1fd4f6f3f00f6c83837af762d}{identify\+Tool} (Q\+String tool, int x, int y)
  51. \begin{DoxyCompactList}\small\item\em This function is called on each mouse\+Press\+Event inside the grid. It identifies the way the grid will be painted calling the function of the tool received in the parameters (dot, rowfill, column fill, diagonal, square, triangles and circles). \end{DoxyCompactList}\item
  52. void \hyperlink{class_grid_widget_a9eae49724fc8eb51dacb29cf0f1d0f7f}{Dot} (int x, int y, Q\+Color color\+Selected)
  53. \begin{DoxyCompactList}\small\item\em Receives the coordinates of the grid where the user clicked and paints that cell with the color of the tool. \end{DoxyCompactList}\item
  54. void \hyperlink{class_grid_widget_a85f85cefe91f2c4e9c79566b5e65d5df}{Row\+Major\+Fill} (int x, int y, Q\+Color color\+Clicked, Q\+Color tool\+Color)
  55. \begin{DoxyCompactList}\small\item\em Receives the coordinates of the grid where the user clicked and paints (from that point left and right) the longest row of the same color of the cell that was clicked with the color of the tool. \end{DoxyCompactList}\item
  56. void \hyperlink{class_grid_widget_a1850e0f0dde766350c7cff9668424633}{Col\+Major\+Fill} (int x, int y, Q\+Color color\+Clicked, Q\+Color tool\+Color)
  57. \begin{DoxyCompactList}\small\item\em Receives the coordinates of the grid where the user clicked and paints (from that point up and down) the longest column of the same color of the cell that was clicked with the color of the tool. \end{DoxyCompactList}\item
  58. void \hyperlink{class_grid_widget_a2de94a6b9cda8d27be4598ebd2b80ef1}{Diagonal\+Left} (int x, int y, Q\+Color color\+Clicked, Q\+Color tool\+Color)
  59. \begin{DoxyCompactList}\small\item\em Recieves the coordinates of the grid where the user clicked and paints (from that point) the longest left-\/diagonal of the color of the cell that was clicked with the color of the tool. \end{DoxyCompactList}\item
  60. void \hyperlink{class_grid_widget_a8ff474d6ac0e76685839e4107c85c10b}{Diagonal\+Right} (int x, int y, Q\+Color color\+Clicked, Q\+Color tool\+Color)
  61. \begin{DoxyCompactList}\small\item\em Recieves the coordinates of the grid where the user clicked and paints (from that point) the longest right-\/diagonal of the color of the cell that was clicked with the color of the tool. \end{DoxyCompactList}\item
  62. void \hyperlink{class_grid_widget_a3d25401530305223417a0a0313e7105b}{square} (int x, int y, Q\+Color tool\+Color, int tool\+Size)
  63. \begin{DoxyCompactList}\small\item\em Receives the coordinates of the grid where the user clicked and paints a square of the size and with the color of the tool. \end{DoxyCompactList}\item
  64. void \hyperlink{class_grid_widget_abee64aeb022f670f15870500e9127cda}{triangle} (int x, int y, Q\+Color tool\+Color, int tool\+Size)
  65. \begin{DoxyCompactList}\small\item\em Receives the coordinates of the grid where the user clicked and paints a triangle of the size and with the color of the tool. \end{DoxyCompactList}\item
  66. void \hyperlink{class_grid_widget_a4de59f7c6dba342ff0406137ca87bf8d}{circle} (int x, int y, Q\+Color tool\+Color, int tool\+Size)
  67. \begin{DoxyCompactList}\small\item\em Receives the coordinates of the grid where the user clicked and paints a circle of the size and with the color of the tool. \end{DoxyCompactList}\item
  68. \hypertarget{class_grid_widget_a6426b82953f555dc84ede652cd44ee13}{}void \hyperlink{class_grid_widget_a6426b82953f555dc84ede652cd44ee13}{undo} ()\label{class_grid_widget_a6426b82953f555dc84ede652cd44ee13}
  69. \begin{DoxyCompactList}\small\item\em When the undo button is pressed the current state is pushed into the redo vector(new\+States) and the last state in the undo vector(old\+States) is painted on the grid. \end{DoxyCompactList}\item
  70. \hypertarget{class_grid_widget_a0a8b52721ac642d4f7261896ef2fff74}{}void \hyperlink{class_grid_widget_a0a8b52721ac642d4f7261896ef2fff74}{redo} ()\label{class_grid_widget_a0a8b52721ac642d4f7261896ef2fff74}
  71. \begin{DoxyCompactList}\small\item\em When the redo button is pressed the current state is pushed into the undo vector(old\+States) and the last state in the redo vector(new\+States) is painted on the grid. \end{DoxyCompactList}\end{DoxyCompactItemize}
  72. \subsection*{Protected Member Functions}
  73. \begin{DoxyCompactItemize}
  74. \item
  75. void \hyperlink{class_grid_widget_a2b49b1ee6683c99f4a497f7ad89e8097}{draw\+Grid} (Q\+Paint\+Device $\ast$device)
  76. \begin{DoxyCompactList}\small\item\em Function that first sets the size of the \hyperlink{class_grid_widget}{Grid\+Widget}, then paints the cells with the color selected for the background and finally paints the lines to form the grid. \end{DoxyCompactList}\item
  77. virtual void \hyperlink{class_grid_widget_a727fa338640fe7e856519f4ed0078b33}{paint\+Event} (Q\+Paint\+Event $\ast$)
  78. \begin{DoxyCompactList}\small\item\em This function is automatically invoked each time the widget or its parent receives a repaint signal. \end{DoxyCompactList}\item
  79. virtual void \hyperlink{class_grid_widget_adbd85c9494fa35df467d912e2eb41742}{mouse\+Press\+Event} (Q\+Mouse\+Event $\ast$)
  80. \begin{DoxyCompactList}\small\item\em When the mouse is clicked on a cell of the grid it gets the x,y coordinates of the mouse and uses them to paint the tool at that location. \end{DoxyCompactList}\end{DoxyCompactItemize}
  81. \subsection*{Private Attributes}
  82. \begin{DoxyCompactItemize}
  83. \item
  84. int \hyperlink{class_grid_widget_a2913542510201e3e0c7fffe81abf0253}{m\+Cell\+Size}
  85. \item
  86. int \hyperlink{class_grid_widget_a3d818ef6eb5868e53e26e1fd48f19057}{m\+Row\+Count}
  87. \item
  88. int \hyperlink{class_grid_widget_ab530d1fa7b44c05afe4e70c2e410e579}{m\+Column\+Count}
  89. \item
  90. Q\+Pixmap \hyperlink{class_grid_widget_a1b67bb85e389d27e03ef34e4f0b90750}{m\+Grid\+Pix}
  91. \item
  92. Q\+Hash$<$ int, Q\+Color $>$ \hyperlink{class_grid_widget_a65644f377d72a22e4925ad21fc9ccbf5}{m\+Colors}
  93. \item
  94. Q\+String \hyperlink{class_grid_widget_a53e89b667667aed308430da93a25b7a1}{Tool}
  95. \item
  96. int \hyperlink{class_grid_widget_a48b162752c6e7853b2ce3c6cb8db5661}{Tool\+Size}
  97. \item
  98. Q\+Color \hyperlink{class_grid_widget_a857bb9b33ae7f241a568f884f4e6f5bf}{front\+Color}
  99. \item
  100. Q\+Color \hyperlink{class_grid_widget_aa36b97142702844f4888a9bbee37b670}{back\+Color}
  101. \item
  102. Q\+Color \hyperlink{class_grid_widget_a6afb043b34520019af1acb14fb4682d4}{background}
  103. \item
  104. Q\+Vector$<$ Q\+Hash$<$ int, Q\+Color $>$ $>$ \hyperlink{class_grid_widget_aa41b383c851c5ef1c11871507aa1f28d}{old\+States}
  105. \item
  106. Q\+Vector$<$ Q\+Hash$<$ int, Q\+Color $>$ $>$ \hyperlink{class_grid_widget_a8c84952dfa2f11876ab8f1346667c565}{new\+States}
  107. \end{DoxyCompactItemize}
  108. \subsection{Detailed Description}
  109. \hyperlink{class_grid_widget}{Grid\+Widget}\+: Shows a Grid\+View without scrolling. If you want to have Scroll option, use Grid\+View instead. \hyperlink{class_grid_widget}{Grid\+Widget} also supports mouse selection, sends the signal cell\+Clicked with the associated grid coordinates.
  110. \subsection{Constructor \& Destructor Documentation}
  111. \hypertarget{class_grid_widget_ad3370c8905e4f03b666d1be221f4c412}{}\index{Grid\+Widget@{Grid\+Widget}!Grid\+Widget@{Grid\+Widget}}
  112. \index{Grid\+Widget@{Grid\+Widget}!Grid\+Widget@{Grid\+Widget}}
  113. \subsubsection[{Grid\+Widget}]{\setlength{\rightskip}{0pt plus 5cm}Grid\+Widget\+::\+Grid\+Widget (
  114. \begin{DoxyParamCaption}
  115. \item[{int}]{row\+Count = {\ttfamily 100}, }
  116. \item[{int}]{column\+Count = {\ttfamily 100}, }
  117. \item[{Q\+Widget $\ast$}]{parent = {\ttfamily 0}}
  118. \end{DoxyParamCaption}
  119. )\hspace{0.3cm}{\ttfamily [explicit]}}\label{class_grid_widget_ad3370c8905e4f03b666d1be221f4c412}
  120. Constructor which receives the number of rows and columns in the grid.
  121. \begin{DoxyParams}{Parameters}
  122. {\em row\+Count} & number of rows in the grid \\
  123. \hline
  124. {\em column\+Count} & number of columns in the grid \\
  125. \hline
  126. {\em parent} & parent window\\
  127. \hline
  128. \end{DoxyParams}
  129. Constructor que recibe el numero de filas y columnas en la cuadricula
  130. \begin{DoxyParams}{Parameters}
  131. {\em row\+Count} & numero de filas en la cuadricula \\
  132. \hline
  133. {\em column\+Count} & numero de columnas en la cuadricula \\
  134. \hline
  135. {\em parent} & ventana padre \\
  136. \hline
  137. \end{DoxyParams}
  138. \hypertarget{class_grid_widget_a8d85ee082bf0dd38eb581697844f825d}{}\index{Grid\+Widget@{Grid\+Widget}!Grid\+Widget@{Grid\+Widget}}
  139. \index{Grid\+Widget@{Grid\+Widget}!Grid\+Widget@{Grid\+Widget}}
  140. \subsubsection[{Grid\+Widget}]{\setlength{\rightskip}{0pt plus 5cm}Grid\+Widget\+::\+Grid\+Widget (
  141. \begin{DoxyParamCaption}
  142. \item[{Q\+Widget $\ast$}]{parent}
  143. \end{DoxyParamCaption}
  144. )}\label{class_grid_widget_a8d85ee082bf0dd38eb581697844f825d}
  145. Default constructor. The properties of the grid are set as follows\+:
  146. \begin{DoxyItemize}
  147. \item m\+Cell\+Size\+: Sets the size of the cell to 10px
  148. \item m\+Row\+Count\+: Sets the number of rows in the grid to 39
  149. \item m\+Column\+Count\+: Sets the number of columns in the grid to 27
  150. \item Tool and Tool\+Size\+: Sets the Tool which is going to be used to draw the grid
  151. \item front\+Color\+: The color which will be used to paint to black
  152. \item back\+Color\+: Current clicked square
  153. \item background\+: Sets the background color to white
  154. \end{DoxyItemize}
  155. Constructor por defecto. Las propiedades de el grid se ajustan como sigue\+:
  156. \begin{DoxyItemize}
  157. \item m\+Cell\+Size\+: Ajusta el tamano de la celda a 10px
  158. \item m\+Row\+Count\+: Ajusta el numero de filas en la cuadricula a 39
  159. \item Column\+Count\+: Ajusta el numero de columnas en el grid a 27
  160. \item Tool and Tool\+Size\+: Ajusta la herramiento que se va a utilizar para dibujar el grid.
  161. \item front\+Color\+: El color que se utilizara para pintar a negro
  162. \item back\+Color\+: Cuadrado marcado actualmente
  163. \item background\+: El color del fondo en blanco
  164. \end{DoxyItemize}
  165. \subsection{Member Function Documentation}
  166. \hypertarget{class_grid_widget_a4de59f7c6dba342ff0406137ca87bf8d}{}\index{Grid\+Widget@{Grid\+Widget}!circle@{circle}}
  167. \index{circle@{circle}!Grid\+Widget@{Grid\+Widget}}
  168. \subsubsection[{circle}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::circle (
  169. \begin{DoxyParamCaption}
  170. \item[{int}]{x, }
  171. \item[{int}]{y, }
  172. \item[{Q\+Color}]{tool\+Color, }
  173. \item[{int}]{tool\+Size}
  174. \end{DoxyParamCaption}
  175. )}\label{class_grid_widget_a4de59f7c6dba342ff0406137ca87bf8d}
  176. Receives the coordinates of the grid where the user clicked and paints a circle of the size and with the color of the tool.
  177. \begin{DoxyParams}{Parameters}
  178. {\em x} & coordinate x of the cell in the grid \\
  179. \hline
  180. {\em y} & coordinate y of the cell in the grid \\
  181. \hline
  182. {\em tool\+Color} & color of the cells painted by the tool \\
  183. \hline
  184. {\em tool\+Size} & size of the tool to be painted \\
  185. \hline
  186. \end{DoxyParams}
  187. \hypertarget{class_grid_widget_a1850e0f0dde766350c7cff9668424633}{}\index{Grid\+Widget@{Grid\+Widget}!Col\+Major\+Fill@{Col\+Major\+Fill}}
  188. \index{Col\+Major\+Fill@{Col\+Major\+Fill}!Grid\+Widget@{Grid\+Widget}}
  189. \subsubsection[{Col\+Major\+Fill}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::\+Col\+Major\+Fill (
  190. \begin{DoxyParamCaption}
  191. \item[{int}]{x, }
  192. \item[{int}]{y, }
  193. \item[{Q\+Color}]{color\+Clicked, }
  194. \item[{Q\+Color}]{tool\+Color}
  195. \end{DoxyParamCaption}
  196. )}\label{class_grid_widget_a1850e0f0dde766350c7cff9668424633}
  197. Receives the coordinates of the grid where the user clicked and paints (from that point up and down) the longest column of the same color of the cell that was clicked with the color of the tool.
  198. \begin{DoxyParams}{Parameters}
  199. {\em x} & coordinate x of the cell in the grid \\
  200. \hline
  201. {\em y} & coordinate y of the cell in the grid \\
  202. \hline
  203. {\em color\+Clicked} & current color of the clicked cell \\
  204. \hline
  205. {\em tool\+Color} & color of the cells painted by the tool \\
  206. \hline
  207. \end{DoxyParams}
  208. \hypertarget{class_grid_widget_a2de94a6b9cda8d27be4598ebd2b80ef1}{}\index{Grid\+Widget@{Grid\+Widget}!Diagonal\+Left@{Diagonal\+Left}}
  209. \index{Diagonal\+Left@{Diagonal\+Left}!Grid\+Widget@{Grid\+Widget}}
  210. \subsubsection[{Diagonal\+Left}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::\+Diagonal\+Left (
  211. \begin{DoxyParamCaption}
  212. \item[{int}]{x, }
  213. \item[{int}]{y, }
  214. \item[{Q\+Color}]{color\+Clicked, }
  215. \item[{Q\+Color}]{tool\+Color}
  216. \end{DoxyParamCaption}
  217. )}\label{class_grid_widget_a2de94a6b9cda8d27be4598ebd2b80ef1}
  218. Recieves the coordinates of the grid where the user clicked and paints (from that point) the longest left-\/diagonal of the color of the cell that was clicked with the color of the tool.
  219. \begin{DoxyParams}{Parameters}
  220. {\em x} & coordinate x of the cell in the grid \\
  221. \hline
  222. {\em y} & coordinate y of the cell in the grid \\
  223. \hline
  224. {\em color\+Clicked} & current color of the clicked cell \\
  225. \hline
  226. {\em tool\+Color} & color of the cells painted by the tool \\
  227. \hline
  228. \end{DoxyParams}
  229. \hypertarget{class_grid_widget_a8ff474d6ac0e76685839e4107c85c10b}{}\index{Grid\+Widget@{Grid\+Widget}!Diagonal\+Right@{Diagonal\+Right}}
  230. \index{Diagonal\+Right@{Diagonal\+Right}!Grid\+Widget@{Grid\+Widget}}
  231. \subsubsection[{Diagonal\+Right}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::\+Diagonal\+Right (
  232. \begin{DoxyParamCaption}
  233. \item[{int}]{x, }
  234. \item[{int}]{y, }
  235. \item[{Q\+Color}]{color\+Clicked, }
  236. \item[{Q\+Color}]{tool\+Color}
  237. \end{DoxyParamCaption}
  238. )}\label{class_grid_widget_a8ff474d6ac0e76685839e4107c85c10b}
  239. Recieves the coordinates of the grid where the user clicked and paints (from that point) the longest right-\/diagonal of the color of the cell that was clicked with the color of the tool.
  240. \begin{DoxyParams}{Parameters}
  241. {\em x} & coordinate x of the cell in the grid \\
  242. \hline
  243. {\em y} & coordinate y of the cell in the grid \\
  244. \hline
  245. {\em color\+Clicked} & current color of the clicked cell \\
  246. \hline
  247. {\em tool\+Color} & color of the cells painted by the tool \\
  248. \hline
  249. \end{DoxyParams}
  250. \hypertarget{class_grid_widget_a9eae49724fc8eb51dacb29cf0f1d0f7f}{}\index{Grid\+Widget@{Grid\+Widget}!Dot@{Dot}}
  251. \index{Dot@{Dot}!Grid\+Widget@{Grid\+Widget}}
  252. \subsubsection[{Dot}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::\+Dot (
  253. \begin{DoxyParamCaption}
  254. \item[{int}]{x, }
  255. \item[{int}]{y, }
  256. \item[{Q\+Color}]{tool\+Color}
  257. \end{DoxyParamCaption}
  258. )}\label{class_grid_widget_a9eae49724fc8eb51dacb29cf0f1d0f7f}
  259. Receives the coordinates of the grid where the user clicked and paints that cell with the color of the tool.
  260. \begin{DoxyParams}{Parameters}
  261. {\em x} & coordinate x of the cell in the grid \\
  262. \hline
  263. {\em y} & coordinate y of the cell in the grid \\
  264. \hline
  265. {\em tool\+Color} & color of the cells painted by the tool \\
  266. \hline
  267. \end{DoxyParams}
  268. \hypertarget{class_grid_widget_a2b49b1ee6683c99f4a497f7ad89e8097}{}\index{Grid\+Widget@{Grid\+Widget}!draw\+Grid@{draw\+Grid}}
  269. \index{draw\+Grid@{draw\+Grid}!Grid\+Widget@{Grid\+Widget}}
  270. \subsubsection[{draw\+Grid}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::draw\+Grid (
  271. \begin{DoxyParamCaption}
  272. \item[{Q\+Paint\+Device $\ast$}]{device}
  273. \end{DoxyParamCaption}
  274. )\hspace{0.3cm}{\ttfamily [protected]}}\label{class_grid_widget_a2b49b1ee6683c99f4a497f7ad89e8097}
  275. Function that first sets the size of the \hyperlink{class_grid_widget}{Grid\+Widget}, then paints the cells with the color selected for the background and finally paints the lines to form the grid.
  276. \begin{DoxyParams}{Parameters}
  277. {\em device} & the panel to paint the grid \\
  278. \hline
  279. \end{DoxyParams}
  280. \hypertarget{class_grid_widget_a50a2a9b2490de84dba08be23130fd9d4}{}\index{Grid\+Widget@{Grid\+Widget}!get\+Cell\+Color@{get\+Cell\+Color}}
  281. \index{get\+Cell\+Color@{get\+Cell\+Color}!Grid\+Widget@{Grid\+Widget}}
  282. \subsubsection[{get\+Cell\+Color}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Color Grid\+Widget\+::get\+Cell\+Color (
  283. \begin{DoxyParamCaption}
  284. \item[{int}]{x, }
  285. \item[{int}]{y}
  286. \end{DoxyParamCaption}
  287. )}\label{class_grid_widget_a50a2a9b2490de84dba08be23130fd9d4}
  288. Returns the color of the cell in position (x,y)
  289. \begin{DoxyParams}{Parameters}
  290. {\em x} & coordinate x of the cell in the grid \\
  291. \hline
  292. {\em y} & coordinate y of the cell in the grid \\
  293. \hline
  294. \end{DoxyParams}
  295. \begin{DoxyReturn}{Returns}
  296. the color of the cell
  297. \end{DoxyReturn}
  298. \hypertarget{class_grid_widget_a1b92c3f484ea93338f3c0b8348a334f9}{}\index{Grid\+Widget@{Grid\+Widget}!get\+Grid\+Columns@{get\+Grid\+Columns}}
  299. \index{get\+Grid\+Columns@{get\+Grid\+Columns}!Grid\+Widget@{Grid\+Widget}}
  300. \subsubsection[{get\+Grid\+Columns}]{\setlength{\rightskip}{0pt plus 5cm}int Grid\+Widget\+::get\+Grid\+Columns (
  301. \begin{DoxyParamCaption}
  302. {}
  303. \end{DoxyParamCaption}
  304. )}\label{class_grid_widget_a1b92c3f484ea93338f3c0b8348a334f9}
  305. Returns the number of columns in the grid.
  306. \begin{DoxyReturn}{Returns}
  307. number of columns in the grid
  308. \end{DoxyReturn}
  309. \hypertarget{class_grid_widget_afa1e34f8dbae400cf200fdeb2398f138}{}\index{Grid\+Widget@{Grid\+Widget}!get\+Grid\+Rows@{get\+Grid\+Rows}}
  310. \index{get\+Grid\+Rows@{get\+Grid\+Rows}!Grid\+Widget@{Grid\+Widget}}
  311. \subsubsection[{get\+Grid\+Rows}]{\setlength{\rightskip}{0pt plus 5cm}int Grid\+Widget\+::get\+Grid\+Rows (
  312. \begin{DoxyParamCaption}
  313. {}
  314. \end{DoxyParamCaption}
  315. )}\label{class_grid_widget_afa1e34f8dbae400cf200fdeb2398f138}
  316. Returns the number of rows in the grid.
  317. \begin{DoxyReturn}{Returns}
  318. number of rows in the grid
  319. \end{DoxyReturn}
  320. \hypertarget{class_grid_widget_ac4b7dcf1fd4f6f3f00f6c83837af762d}{}\index{Grid\+Widget@{Grid\+Widget}!identify\+Tool@{identify\+Tool}}
  321. \index{identify\+Tool@{identify\+Tool}!Grid\+Widget@{Grid\+Widget}}
  322. \subsubsection[{identify\+Tool}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::identify\+Tool (
  323. \begin{DoxyParamCaption}
  324. \item[{Q\+String}]{tool, }
  325. \item[{int}]{x, }
  326. \item[{int}]{y}
  327. \end{DoxyParamCaption}
  328. )}\label{class_grid_widget_ac4b7dcf1fd4f6f3f00f6c83837af762d}
  329. This function is called on each mouse\+Press\+Event inside the grid. It identifies the way the grid will be painted calling the function of the tool received in the parameters (dot, rowfill, column fill, diagonal, square, triangles and circles).
  330. \begin{DoxyParams}{Parameters}
  331. {\em tool} & the tool to be called by the funtion \\
  332. \hline
  333. {\em x} & coordinate x of the cell in the grid. \\
  334. \hline
  335. {\em y} & coordinate y of the cell in the grid. \\
  336. \hline
  337. \end{DoxyParams}
  338. \hypertarget{class_grid_widget_adbd85c9494fa35df467d912e2eb41742}{}\index{Grid\+Widget@{Grid\+Widget}!mouse\+Press\+Event@{mouse\+Press\+Event}}
  339. \index{mouse\+Press\+Event@{mouse\+Press\+Event}!Grid\+Widget@{Grid\+Widget}}
  340. \subsubsection[{mouse\+Press\+Event}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::mouse\+Press\+Event (
  341. \begin{DoxyParamCaption}
  342. \item[{Q\+Mouse\+Event $\ast$}]{event}
  343. \end{DoxyParamCaption}
  344. )\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}\label{class_grid_widget_adbd85c9494fa35df467d912e2eb41742}
  345. When the mouse is clicked on a cell of the grid it gets the x,y coordinates of the mouse and uses them to paint the tool at that location.
  346. \begin{DoxyParams}{Parameters}
  347. {\em event} & received event reference \\
  348. \hline
  349. \end{DoxyParams}
  350. \hypertarget{class_grid_widget_a727fa338640fe7e856519f4ed0078b33}{}\index{Grid\+Widget@{Grid\+Widget}!paint\+Event@{paint\+Event}}
  351. \index{paint\+Event@{paint\+Event}!Grid\+Widget@{Grid\+Widget}}
  352. \subsubsection[{paint\+Event}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::paint\+Event (
  353. \begin{DoxyParamCaption}
  354. \item[{Q\+Paint\+Event $\ast$}]{event}
  355. \end{DoxyParamCaption}
  356. )\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}\label{class_grid_widget_a727fa338640fe7e856519f4ed0078b33}
  357. This function is automatically invoked each time the widget or its parent receives a repaint signal.
  358. \begin{DoxyParams}{Parameters}
  359. {\em event} & received event reference \\
  360. \hline
  361. \end{DoxyParams}
  362. \hypertarget{class_grid_widget_a85f85cefe91f2c4e9c79566b5e65d5df}{}\index{Grid\+Widget@{Grid\+Widget}!Row\+Major\+Fill@{Row\+Major\+Fill}}
  363. \index{Row\+Major\+Fill@{Row\+Major\+Fill}!Grid\+Widget@{Grid\+Widget}}
  364. \subsubsection[{Row\+Major\+Fill}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::\+Row\+Major\+Fill (
  365. \begin{DoxyParamCaption}
  366. \item[{int}]{x, }
  367. \item[{int}]{y, }
  368. \item[{Q\+Color}]{color\+Clicked, }
  369. \item[{Q\+Color}]{tool\+Color}
  370. \end{DoxyParamCaption}
  371. )}\label{class_grid_widget_a85f85cefe91f2c4e9c79566b5e65d5df}
  372. Receives the coordinates of the grid where the user clicked and paints (from that point left and right) the longest row of the same color of the cell that was clicked with the color of the tool.
  373. \begin{DoxyParams}{Parameters}
  374. {\em x} & coordinate x of the cell in the grid \\
  375. \hline
  376. {\em y} & coordinate y of the cell in the grid \\
  377. \hline
  378. {\em color\+Clicked} & current color of the clicked cell \\
  379. \hline
  380. {\em tool\+Color} & color of the cells painted by the tool \\
  381. \hline
  382. \end{DoxyParams}
  383. \hypertarget{class_grid_widget_a64cd0418127923278bd7dd3ddd3bd459}{}\index{Grid\+Widget@{Grid\+Widget}!set\+Back@{set\+Back}}
  384. \index{set\+Back@{set\+Back}!Grid\+Widget@{Grid\+Widget}}
  385. \subsubsection[{set\+Back}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::set\+Back (
  386. \begin{DoxyParamCaption}
  387. \item[{Q\+String}]{back}
  388. \end{DoxyParamCaption}
  389. )}\label{class_grid_widget_a64cd0418127923278bd7dd3ddd3bd459}
  390. Sets the color of the background.
  391. \begin{DoxyParams}{Parameters}
  392. {\em back} & background color \\
  393. \hline
  394. \end{DoxyParams}
  395. \hypertarget{class_grid_widget_a8a128f08a3471f751442dfe1306250f4}{}\index{Grid\+Widget@{Grid\+Widget}!set\+Cell\+Size@{set\+Cell\+Size}}
  396. \index{set\+Cell\+Size@{set\+Cell\+Size}!Grid\+Widget@{Grid\+Widget}}
  397. \subsubsection[{set\+Cell\+Size}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::set\+Cell\+Size (
  398. \begin{DoxyParamCaption}
  399. \item[{int}]{size}
  400. \end{DoxyParamCaption}
  401. )}\label{class_grid_widget_a8a128f08a3471f751442dfe1306250f4}
  402. Sets the size of the cells in the grid.
  403. \begin{DoxyParams}{Parameters}
  404. {\em size} & cell size \\
  405. \hline
  406. \end{DoxyParams}
  407. \hypertarget{class_grid_widget_abe71249d6d54e84698dcb831c9df4c17}{}\index{Grid\+Widget@{Grid\+Widget}!set\+Front@{set\+Front}}
  408. \index{set\+Front@{set\+Front}!Grid\+Widget@{Grid\+Widget}}
  409. \subsubsection[{set\+Front}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::set\+Front (
  410. \begin{DoxyParamCaption}
  411. \item[{Q\+String}]{front}
  412. \end{DoxyParamCaption}
  413. )}\label{class_grid_widget_abe71249d6d54e84698dcb831c9df4c17}
  414. Sets the color of the brush.
  415. \begin{DoxyParams}{Parameters}
  416. {\em front} & brush color \\
  417. \hline
  418. \end{DoxyParams}
  419. \hypertarget{class_grid_widget_a87a46b6a3e5522e851732093b757baae}{}\index{Grid\+Widget@{Grid\+Widget}!set\+Grid\+Size@{set\+Grid\+Size}}
  420. \index{set\+Grid\+Size@{set\+Grid\+Size}!Grid\+Widget@{Grid\+Widget}}
  421. \subsubsection[{set\+Grid\+Size}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::set\+Grid\+Size (
  422. \begin{DoxyParamCaption}
  423. \item[{int}]{row\+Count, }
  424. \item[{int}]{column\+Count}
  425. \end{DoxyParamCaption}
  426. )}\label{class_grid_widget_a87a46b6a3e5522e851732093b757baae}
  427. Sets the number of columns and rows of the grid.
  428. \begin{DoxyParams}{Parameters}
  429. {\em row\+Count} & number of rows \\
  430. \hline
  431. {\em column\+Count} & number of columns \\
  432. \hline
  433. \end{DoxyParams}
  434. \hypertarget{class_grid_widget_a242812c406b269657eb6092af4a0ae7e}{}\index{Grid\+Widget@{Grid\+Widget}!set\+Tool@{set\+Tool}}
  435. \index{set\+Tool@{set\+Tool}!Grid\+Widget@{Grid\+Widget}}
  436. \subsubsection[{set\+Tool}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::set\+Tool (
  437. \begin{DoxyParamCaption}
  438. \item[{Q\+String}]{tool}
  439. \end{DoxyParamCaption}
  440. )}\label{class_grid_widget_a242812c406b269657eb6092af4a0ae7e}
  441. Sets the tool.
  442. \begin{DoxyParams}{Parameters}
  443. {\em tool} & choosen tool \\
  444. \hline
  445. {\em tool} & herramienta escogida \\
  446. \hline
  447. \end{DoxyParams}
  448. \hypertarget{class_grid_widget_aca5c4e4edab002da08a7d76b7acf8ce7}{}\index{Grid\+Widget@{Grid\+Widget}!set\+Tool\+Size@{set\+Tool\+Size}}
  449. \index{set\+Tool\+Size@{set\+Tool\+Size}!Grid\+Widget@{Grid\+Widget}}
  450. \subsubsection[{set\+Tool\+Size}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::set\+Tool\+Size (
  451. \begin{DoxyParamCaption}
  452. \item[{int}]{size}
  453. \end{DoxyParamCaption}
  454. )}\label{class_grid_widget_aca5c4e4edab002da08a7d76b7acf8ce7}
  455. Sets the size of the tool.
  456. \begin{DoxyParams}{Parameters}
  457. {\em size} & tool size \\
  458. \hline
  459. \end{DoxyParams}
  460. \hypertarget{class_grid_widget_a3d25401530305223417a0a0313e7105b}{}\index{Grid\+Widget@{Grid\+Widget}!square@{square}}
  461. \index{square@{square}!Grid\+Widget@{Grid\+Widget}}
  462. \subsubsection[{square}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::square (
  463. \begin{DoxyParamCaption}
  464. \item[{int}]{x, }
  465. \item[{int}]{y, }
  466. \item[{Q\+Color}]{tool\+Color, }
  467. \item[{int}]{tool\+Size}
  468. \end{DoxyParamCaption}
  469. )}\label{class_grid_widget_a3d25401530305223417a0a0313e7105b}
  470. Receives the coordinates of the grid where the user clicked and paints a square of the size and with the color of the tool.
  471. \begin{DoxyParams}{Parameters}
  472. {\em x} & coordinate x of the cell in the grid \\
  473. \hline
  474. {\em y} & coordinate y of the cell in the grid \\
  475. \hline
  476. {\em tool\+Color} & color of the cells painted by the tool \\
  477. \hline
  478. {\em tool\+Size} & size of the tool to be painted \\
  479. \hline
  480. \end{DoxyParams}
  481. \hypertarget{class_grid_widget_aca84a4a79a25f1adebaeb69f32022882}{}\index{Grid\+Widget@{Grid\+Widget}!switch\+Off@{switch\+Off}}
  482. \index{switch\+Off@{switch\+Off}!Grid\+Widget@{Grid\+Widget}}
  483. \subsubsection[{switch\+Off}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::switch\+Off (
  484. \begin{DoxyParamCaption}
  485. \item[{int}]{x, }
  486. \item[{int}]{y}
  487. \end{DoxyParamCaption}
  488. )}\label{class_grid_widget_aca84a4a79a25f1adebaeb69f32022882}
  489. Removes the given position from the vector that represents the painted cells of the grid.
  490. \begin{DoxyParams}{Parameters}
  491. {\em x} & coordinate x of the cell in the grid \\
  492. \hline
  493. {\em y} & coordinate y of the cell in the grid \\
  494. \hline
  495. \end{DoxyParams}
  496. \hypertarget{class_grid_widget_ace3447d5fc329c47b55395a52a9eaf13}{}\index{Grid\+Widget@{Grid\+Widget}!switch\+On@{switch\+On}}
  497. \index{switch\+On@{switch\+On}!Grid\+Widget@{Grid\+Widget}}
  498. \subsubsection[{switch\+On}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::switch\+On (
  499. \begin{DoxyParamCaption}
  500. \item[{int}]{x, }
  501. \item[{int}]{y, }
  502. \item[{const Q\+Color \&}]{color}
  503. \end{DoxyParamCaption}
  504. )}\label{class_grid_widget_ace3447d5fc329c47b55395a52a9eaf13}
  505. Saves the given color and position in the vector that represents the painted cells of the grid.
  506. \begin{DoxyParams}{Parameters}
  507. {\em x} & coordinate x of the cell in the grid \\
  508. \hline
  509. {\em y} & coordinate y of the cell in the grid \\
  510. \hline
  511. {\em color} & color to paint cell \\
  512. \hline
  513. \end{DoxyParams}
  514. \hypertarget{class_grid_widget_abee64aeb022f670f15870500e9127cda}{}\index{Grid\+Widget@{Grid\+Widget}!triangle@{triangle}}
  515. \index{triangle@{triangle}!Grid\+Widget@{Grid\+Widget}}
  516. \subsubsection[{triangle}]{\setlength{\rightskip}{0pt plus 5cm}void Grid\+Widget\+::triangle (
  517. \begin{DoxyParamCaption}
  518. \item[{int}]{x, }
  519. \item[{int}]{y, }
  520. \item[{Q\+Color}]{tool\+Color, }
  521. \item[{int}]{tool\+Size}
  522. \end{DoxyParamCaption}
  523. )}\label{class_grid_widget_abee64aeb022f670f15870500e9127cda}
  524. Receives the coordinates of the grid where the user clicked and paints a triangle of the size and with the color of the tool.
  525. \begin{DoxyParams}{Parameters}
  526. {\em x} & coordinate x of the cell in the grid \\
  527. \hline
  528. {\em y} & coordinate y of the cell in the grid \\
  529. \hline
  530. {\em tool\+Color} & color of the cells painted by the tool \\
  531. \hline
  532. {\em tool\+Size} & size of the tool to be painted \\
  533. \hline
  534. \end{DoxyParams}
  535. \subsection{Member Data Documentation}
  536. \hypertarget{class_grid_widget_aa36b97142702844f4888a9bbee37b670}{}\index{Grid\+Widget@{Grid\+Widget}!back\+Color@{back\+Color}}
  537. \index{back\+Color@{back\+Color}!Grid\+Widget@{Grid\+Widget}}
  538. \subsubsection[{back\+Color}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Color Grid\+Widget\+::back\+Color\hspace{0.3cm}{\ttfamily [private]}}\label{class_grid_widget_aa36b97142702844f4888a9bbee37b670}
  539. background color of the cell / color del fondo de la celda \hypertarget{class_grid_widget_a6afb043b34520019af1acb14fb4682d4}{}\index{Grid\+Widget@{Grid\+Widget}!background@{background}}
  540. \index{background@{background}!Grid\+Widget@{Grid\+Widget}}
  541. \subsubsection[{background}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Color Grid\+Widget\+::background\hspace{0.3cm}{\ttfamily [private]}}\label{class_grid_widget_a6afb043b34520019af1acb14fb4682d4}
  542. cell size / tamano del la celda \hypertarget{class_grid_widget_a857bb9b33ae7f241a568f884f4e6f5bf}{}\index{Grid\+Widget@{Grid\+Widget}!front\+Color@{front\+Color}}
  543. \index{front\+Color@{front\+Color}!Grid\+Widget@{Grid\+Widget}}
  544. \subsubsection[{front\+Color}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Color Grid\+Widget\+::front\+Color\hspace{0.3cm}{\ttfamily [private]}}\label{class_grid_widget_a857bb9b33ae7f241a568f884f4e6f5bf}
  545. color of the front cell / color de la celda de frente \hypertarget{class_grid_widget_a2913542510201e3e0c7fffe81abf0253}{}\index{Grid\+Widget@{Grid\+Widget}!m\+Cell\+Size@{m\+Cell\+Size}}
  546. \index{m\+Cell\+Size@{m\+Cell\+Size}!Grid\+Widget@{Grid\+Widget}}
  547. \subsubsection[{m\+Cell\+Size}]{\setlength{\rightskip}{0pt plus 5cm}int Grid\+Widget\+::m\+Cell\+Size\hspace{0.3cm}{\ttfamily [private]}}\label{class_grid_widget_a2913542510201e3e0c7fffe81abf0253}
  548. cell size / tamano del la celda \hypertarget{class_grid_widget_a65644f377d72a22e4925ad21fc9ccbf5}{}\index{Grid\+Widget@{Grid\+Widget}!m\+Colors@{m\+Colors}}
  549. \index{m\+Colors@{m\+Colors}!Grid\+Widget@{Grid\+Widget}}
  550. \subsubsection[{m\+Colors}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Hash$<$int, Q\+Color $>$ Grid\+Widget\+::m\+Colors\hspace{0.3cm}{\ttfamily [private]}}\label{class_grid_widget_a65644f377d72a22e4925ad21fc9ccbf5}
  551. Hash of colors with the painted cells and their colors / Hash de colores con las celdas pintadas y sus colores \hypertarget{class_grid_widget_ab530d1fa7b44c05afe4e70c2e410e579}{}\index{Grid\+Widget@{Grid\+Widget}!m\+Column\+Count@{m\+Column\+Count}}
  552. \index{m\+Column\+Count@{m\+Column\+Count}!Grid\+Widget@{Grid\+Widget}}
  553. \subsubsection[{m\+Column\+Count}]{\setlength{\rightskip}{0pt plus 5cm}int Grid\+Widget\+::m\+Column\+Count\hspace{0.3cm}{\ttfamily [private]}}\label{class_grid_widget_ab530d1fa7b44c05afe4e70c2e410e579}
  554. column number / numero de columnas \hypertarget{class_grid_widget_a1b67bb85e389d27e03ef34e4f0b90750}{}\index{Grid\+Widget@{Grid\+Widget}!m\+Grid\+Pix@{m\+Grid\+Pix}}
  555. \index{m\+Grid\+Pix@{m\+Grid\+Pix}!Grid\+Widget@{Grid\+Widget}}
  556. \subsubsection[{m\+Grid\+Pix}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Pixmap Grid\+Widget\+::m\+Grid\+Pix\hspace{0.3cm}{\ttfamily [private]}}\label{class_grid_widget_a1b67bb85e389d27e03ef34e4f0b90750}
  557. to paint the grid / para pintar la cuadricula \hypertarget{class_grid_widget_a3d818ef6eb5868e53e26e1fd48f19057}{}\index{Grid\+Widget@{Grid\+Widget}!m\+Row\+Count@{m\+Row\+Count}}
  558. \index{m\+Row\+Count@{m\+Row\+Count}!Grid\+Widget@{Grid\+Widget}}
  559. \subsubsection[{m\+Row\+Count}]{\setlength{\rightskip}{0pt plus 5cm}int Grid\+Widget\+::m\+Row\+Count\hspace{0.3cm}{\ttfamily [private]}}\label{class_grid_widget_a3d818ef6eb5868e53e26e1fd48f19057}
  560. row number / numero de filas \hypertarget{class_grid_widget_a8c84952dfa2f11876ab8f1346667c565}{}\index{Grid\+Widget@{Grid\+Widget}!new\+States@{new\+States}}
  561. \index{new\+States@{new\+States}!Grid\+Widget@{Grid\+Widget}}
  562. \subsubsection[{new\+States}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Vector$<$ Q\+Hash$<$int, Q\+Color $>$ $>$ Grid\+Widget\+::new\+States\hspace{0.3cm}{\ttfamily [private]}}\label{class_grid_widget_a8c84952dfa2f11876ab8f1346667c565}
  563. vector to implement undo/redo \hypertarget{class_grid_widget_aa41b383c851c5ef1c11871507aa1f28d}{}\index{Grid\+Widget@{Grid\+Widget}!old\+States@{old\+States}}
  564. \index{old\+States@{old\+States}!Grid\+Widget@{Grid\+Widget}}
  565. \subsubsection[{old\+States}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Vector$<$ Q\+Hash$<$int, Q\+Color $>$ $>$ Grid\+Widget\+::old\+States\hspace{0.3cm}{\ttfamily [private]}}\label{class_grid_widget_aa41b383c851c5ef1c11871507aa1f28d}
  566. vetor to implement undo/redo \hypertarget{class_grid_widget_a53e89b667667aed308430da93a25b7a1}{}\index{Grid\+Widget@{Grid\+Widget}!Tool@{Tool}}
  567. \index{Tool@{Tool}!Grid\+Widget@{Grid\+Widget}}
  568. \subsubsection[{Tool}]{\setlength{\rightskip}{0pt plus 5cm}Q\+String Grid\+Widget\+::\+Tool\hspace{0.3cm}{\ttfamily [private]}}\label{class_grid_widget_a53e89b667667aed308430da93a25b7a1}
  569. name of the tool selected / nombre de la herramienta seleccionada \hypertarget{class_grid_widget_a48b162752c6e7853b2ce3c6cb8db5661}{}\index{Grid\+Widget@{Grid\+Widget}!Tool\+Size@{Tool\+Size}}
  570. \index{Tool\+Size@{Tool\+Size}!Grid\+Widget@{Grid\+Widget}}
  571. \subsubsection[{Tool\+Size}]{\setlength{\rightskip}{0pt plus 5cm}int Grid\+Widget\+::\+Tool\+Size\hspace{0.3cm}{\ttfamily [private]}}\label{class_grid_widget_a48b162752c6e7853b2ce3c6cb8db5661}
  572. tool size / tamano del a herramienta
  573. The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
  574. \item
  575. grid.\+h\item
  576. grid.\+cpp\item
  577. tools.\+cpp\end{DoxyCompactItemize}