Keine Beschreibung

dialog.h 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. #ifndef DIALOG_H
  2. #define DIALOG_H
  3. #include "grid.h"
  4. #include <QDialog>
  5. namespace Ui {
  6. class Dialog;
  7. }
  8. class Dialog : public QDialog
  9. {
  10. Q_OBJECT
  11. public:
  12. /// \fn Dialog::Dialog(QWidget *parent)
  13. /// \~English
  14. /// \brief The constructor sets the undo and redo to disable so it cant be pressed
  15. /// also sets the connections between the buttons and their respective signals.
  16. /// \~Spanish
  17. /// \brief El constructor ajusta el boton de deshacer (undo) y rehacer (redo) para que no
  18. /// puedan ser apretados, tambien ajusta las conecciones entre los botones y sus senales.
  19. explicit Dialog(QWidget *parent = 0);
  20. /// \fn Dialog::~Dialog()
  21. /// \~English
  22. /// \brief Destructor
  23. /// \~Spanish
  24. /// \brief Destructor
  25. ~Dialog();
  26. private slots:
  27. /// \fn void Dialog::on_frontcolorComboBox_activated(const QString &color)
  28. /// \~English
  29. /// \brief Sets the color of the brush
  30. /// \param color color of the brush
  31. /// \~Spanish
  32. /// \brief Ajusta el color de la brocha
  33. /// \param color color de la brocha
  34. void on_frontcolorComboBox_activated(const QString &color);
  35. /// \fn void Dialog::on_backgroundComboBox_activated(const QString &color)
  36. /// \~English
  37. /// \brief Sets the color of the background
  38. /// \param color color del background
  39. /// \~Spanish
  40. /// \brief Ajusta el color del fondo
  41. /// \param color color del fondo
  42. void on_backgroundComboBox_activated(const QString &color);
  43. /// \fn void Dialog::on_lapizButton_clicked()
  44. /// \~English
  45. /// \brief Sets the tool to dot
  46. /// \~Spanish
  47. /// \brief Ajusta la herramienta a usar la punta
  48. void on_lapizButton_clicked();
  49. /// \fn void Dialog::on_cleargridButton_clicked()
  50. /// \~English
  51. /// \brief Clears the grid. Erase the grid
  52. /// \~Spanish
  53. /// \brief Limpia la cuadricula Borra la cuadricula.
  54. void on_cleargridButton_clicked();
  55. /// \fn void Dialog::on_rowmajorfillButton_clicked()
  56. /// \~English
  57. /// \brief Sets the tool to Row fill
  58. /// \~Spanish
  59. /// \brief Ajusta la herramienta a llenar fila
  60. void on_rowmajorfillButton_clicked();
  61. /// \fn void Dialog::on_colmajorfillButton_clicked()
  62. /// \~English
  63. /// \brief Sets the tool to Column fill
  64. /// \~Spanish
  65. /// \brief Ajusta la herramienta a llenar columna
  66. void on_colmajorfillButton_clicked();
  67. /// \fn void Dialog::on_diagonalleftButton_clicked()
  68. /// \~English
  69. /// \brief Sets the tool to Diagonal Left fill
  70. /// \~Spanish
  71. /// \brief Ajusta la herrramienta a llenar en diagonal a la izquierda
  72. void on_diagonalleftButton_clicked();
  73. /// \fn void Dialog::on_diagonalrightButton_clicked()
  74. /// \~English
  75. /// \brief Sets the tool to Diagonal Right fill
  76. /// \~Spanish
  77. /// \brief Ajusta la herrramienta a llenar en diagonal a la derecha
  78. void on_diagonalrightButton_clicked();
  79. /// \fn void Dialog::on_drawsquareButton_clicked()
  80. /// \~English
  81. /// \brief Sets the tool to paint Squares
  82. /// \~Spanish
  83. /// \brief Ajusta la herramiento a pintar cuadrados
  84. void on_drawsquareButton_clicked();
  85. /// \fn void Dialog::on_drawtriangleButton_clicked()
  86. /// \~English
  87. /// \brief Sets the tool to paint Triangles
  88. /// \~Spanish
  89. /// \brief Ajusta la herramiento a pintar triangulos
  90. void on_drawtriangleButton_clicked();
  91. /// \fn void Dialog::on_drawcircleButton_clicked()
  92. /// \~English
  93. /// \brief Sets the tool to paint Circles
  94. /// \~Spanish
  95. /// \brief Ajusta la herramiento a pintar circulos
  96. void on_drawcircleButton_clicked();
  97. /// \fn void Dialog::on_speedHorizontalSlider_valueChanged(int value)
  98. /// \~English
  99. /// \brief Sets the tool point size
  100. /// \param value point size
  101. /// \~Spanish
  102. /// \brief Ajusta el tamano de la punta de la herramienta
  103. /// \param value tamano de la punta
  104. void on_speedHorizontalSlider_valueChanged(int value);
  105. /// \fn void Dialog::on_undoButton_clicked()
  106. /// \~English
  107. /// \brief Undo the previous grid modification
  108. /// \~Spanish
  109. /// \brief Deshace la modificacion previa de la cuadricula
  110. void on_undoButton_clicked();
  111. /// \fn void Dialog::on_redoButton_clicked()
  112. /// \~English
  113. /// \brief Redo the previous grid modification
  114. /// \~Spanish
  115. /// \brief Rehace la modificacion previa de la cuadricula
  116. void on_redoButton_clicked();
  117. /// \fn void Dialog::setUndo(bool can)
  118. /// \~English
  119. /// \brief Enables the undo button
  120. /// \~Spanish
  121. /// \brief Permite utilizar el boton de deshacer (undo)
  122. void setUndo(bool cannot);
  123. /// \fn void Dialog::setRedo(bool can)
  124. /// \~English
  125. /// \brief Enables the redo button
  126. /// \~Spanish
  127. /// \brief Permite utilizar el boton de (rehacer)
  128. void setRedo(bool cannot);
  129. void on_floodButton_clicked();
  130. private:
  131. Ui::Dialog *ui;
  132. GridWidget *grid;
  133. };
  134. #endif // DIALOG_H