Dogeku 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +39 -0
  4. data/app/Historique/Action.rb +29 -0
  5. data/app/Historique/ChangerCase.rb +44 -0
  6. data/app/Historique/HistoriqueAction.rb +114 -0
  7. data/app/components/CaseDessin.rb +325 -0
  8. data/app/components/GrilleDessin.rb +235 -0
  9. data/app/components/Header.rb +194 -0
  10. data/app/config/app.yml +0 -0
  11. data/app/config/database.yml +2 -0
  12. data/app/controller/ApprentissageControleur.rb +75 -0
  13. data/app/controller/ChargerControleur.rb +41 -0
  14. data/app/controller/JeuLibreControleur.rb +244 -0
  15. data/app/controller/MenuControleur.rb +57 -0
  16. data/app/controller/NiveauControleur.rb +54 -0
  17. data/app/controller/NouvellePartieControleur.rb +34 -0
  18. data/app/controller/PrincipaleControleur.rb +30 -0
  19. data/app/controller/PseudoControleur.rb +95 -0
  20. data/app/controller/ReglagesControleur.rb +86 -0
  21. data/app/controller/ReglesControleur.rb +34 -0
  22. data/app/controller/ScoresControleur.rb +42 -0
  23. data/app/controller/StatistiquesControleur.rb +64 -0
  24. data/app/core/Conf.rb +26 -0
  25. data/app/core/Controller.rb +180 -0
  26. data/app/core/Core.rb +186 -0
  27. data/app/core/Model.rb +159 -0
  28. data/app/core/View.rb +56 -0
  29. data/app/db/main.sqlite3 +0 -0
  30. data/app/model/Configuration.rb +180 -0
  31. data/app/model/Grille.rb +180 -0
  32. data/app/model/Jeu.rb +74 -0
  33. data/app/model/Score.rb +100 -0
  34. data/app/model/Utilisateur.rb +113 -0
  35. data/app/utils/DSubset.rb +98 -0
  36. data/app/utils/Generateur.rb +171 -0
  37. data/app/utils/HPTriple.rb +75 -0
  38. data/app/utils/Peche.rb +46 -0
  39. data/app/utils/SCandidate.rb +86 -0
  40. data/app/utils/SCell.rb +73 -0
  41. data/app/utils/Technique.rb +202 -0
  42. data/app/utils/TechniqueUsine.rb +25 -0
  43. data/app/utils/XWing.rb +203 -0
  44. data/app/view/Fenetre.rb +424 -0
  45. data/app/view/FenetreApprentissage.rb +272 -0
  46. data/app/view/FenetreCharger.rb +31 -0
  47. data/app/view/FenetreJeuLibre.rb +468 -0
  48. data/app/view/FenetreMenu.rb +198 -0
  49. data/app/view/FenetreNiveau.rb +105 -0
  50. data/app/view/FenetreNouvellePartie.rb +92 -0
  51. data/app/view/FenetrePrincipale.rb +45 -0
  52. data/app/view/FenetrePseudo.rb +115 -0
  53. data/app/view/FenetreReglages.rb +209 -0
  54. data/app/view/FenetreRegles.rb +111 -0
  55. data/app/view/FenetreScores.rb +120 -0
  56. data/app/view/FenetreStatistiques.rb +134 -0
  57. data/assets/css/style.css +69 -0
  58. data/assets/img/eraser.png +0 -0
  59. data/assets/img/fond.jpg +0 -0
  60. data/assets/img/iconApp.png +0 -0
  61. data/assets/img/logoS.jpeg +0 -0
  62. data/assets/img/sudokuIntro.jpg +0 -0
  63. data/assets/img/user.png +0 -0
  64. data/bin/dogeku +19 -0
  65. data/doc/Action.html +309 -0
  66. data/doc/ApprentissageControleur.html +568 -0
  67. data/doc/CaseDessin.html +2405 -0
  68. data/doc/ChangerCase.html +405 -0
  69. data/doc/ChargerControleur.html +342 -0
  70. data/doc/Conf.html +378 -0
  71. data/doc/Configuration.html +1115 -0
  72. data/doc/Controller.html +1008 -0
  73. data/doc/Core.html +1191 -0
  74. data/doc/DSubset.html +647 -0
  75. data/doc/Fenetre.html +2631 -0
  76. data/doc/FenetreApprentissage.html +1175 -0
  77. data/doc/FenetreCharger.html +343 -0
  78. data/doc/FenetreJeuLibre.html +1859 -0
  79. data/doc/FenetreMenu.html +900 -0
  80. data/doc/FenetreNiveau.html +626 -0
  81. data/doc/FenetreNouvellePartie.html +602 -0
  82. data/doc/FenetrePrincipale.html +371 -0
  83. data/doc/FenetrePseudo.html +695 -0
  84. data/doc/FenetreReglages.html +946 -0
  85. data/doc/FenetreRegles.html +636 -0
  86. data/doc/FenetreScores.html +650 -0
  87. data/doc/FenetreStatistiques.html +672 -0
  88. data/doc/Generateur.html +1015 -0
  89. data/doc/Grille.html +1348 -0
  90. data/doc/GrilleDessin.html +1281 -0
  91. data/doc/HPTriple.html +593 -0
  92. data/doc/Header.html +1253 -0
  93. data/doc/HistoriqueAction.html +792 -0
  94. data/doc/Jeu.html +923 -0
  95. data/doc/JeuLibreControleur.html +1445 -0
  96. data/doc/MenuControleur.html +522 -0
  97. data/doc/Model.html +996 -0
  98. data/doc/NiveauControleur.html +451 -0
  99. data/doc/NouvellePartieControleur.html +330 -0
  100. data/doc/Peche.html +396 -0
  101. data/doc/PrincipaleControleur.html +320 -0
  102. data/doc/PseudoControleur.html +695 -0
  103. data/doc/ReglagesControleur.html +747 -0
  104. data/doc/ReglesControleur.html +330 -0
  105. data/doc/SCandidate.html +617 -0
  106. data/doc/SCell.html +587 -0
  107. data/doc/Score.html +926 -0
  108. data/doc/ScoresControleur.html +346 -0
  109. data/doc/StatistiquesControleur.html +390 -0
  110. data/doc/Technique.html +543 -0
  111. data/doc/TechniqueUsine.html +252 -0
  112. data/doc/Utilisateur.html +806 -0
  113. data/doc/View.html +844 -0
  114. data/doc/XWing.html +1031 -0
  115. data/doc/_index.html +478 -0
  116. data/doc/class_list.html +51 -0
  117. data/doc/css/common.css +1 -0
  118. data/doc/css/full_list.css +58 -0
  119. data/doc/css/style.css +492 -0
  120. data/doc/file.README.html +141 -0
  121. data/doc/file_list.html +56 -0
  122. data/doc/frames.html +17 -0
  123. data/doc/index.html +141 -0
  124. data/doc/js/app.js +243 -0
  125. data/doc/js/full_list.js +216 -0
  126. data/doc/js/jquery.js +4 -0
  127. data/doc/method_list.html +2523 -0
  128. data/doc/top-level-namespace.html +112 -0
  129. data/test/Generateur/grilleCorrecte.rb +198 -0
  130. data/test/Model/scoreCorrecte.rb +55 -0
  131. data/test/Model/utilisateurCorrecte.rb +68 -0
  132. data/test/test_helper.rb +2 -0
  133. data/test/unitTest.rb +72 -0
  134. metadata +187 -0
@@ -0,0 +1,602 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: FenetreNouvellePartie
8
+
9
+ &mdash; Documentation by YARD 0.9.8
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "FenetreNouvellePartie";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index (F)</a> &raquo;
40
+
41
+
42
+ <span class="title">FenetreNouvellePartie</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: FenetreNouvellePartie
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName"><span class='object_link'><a href="View.html" title="View (class)">View</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next"><span class='object_link'><a href="View.html" title="View (class)">View</a></span></li>
78
+
79
+ <li class="next">FenetreNouvellePartie</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>app/view/FenetreNouvellePartie.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>classe FenetreNouvellePartie</p>
108
+
109
+
110
+ </div>
111
+ </div>
112
+ <div class="tags">
113
+
114
+
115
+ </div>
116
+
117
+
118
+ <h2>Constant Summary</h2>
119
+
120
+ <h3 class="inherited">Constants included
121
+ from <span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></h3>
122
+ <p class="inherited"><span class='object_link'><a href="Fenetre.html#COULEUR_BLANC-constant" title="Fenetre::COULEUR_BLANC (constant)">Fenetre::COULEUR_BLANC</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_BLEU-constant" title="Fenetre::COULEUR_BLEU (constant)">Fenetre::COULEUR_BLEU</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_JAUNE-constant" title="Fenetre::COULEUR_JAUNE (constant)">Fenetre::COULEUR_JAUNE</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_ORANGE-constant" title="Fenetre::COULEUR_ORANGE (constant)">Fenetre::COULEUR_ORANGE</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_ROUGE-constant" title="Fenetre::COULEUR_ROUGE (constant)">Fenetre::COULEUR_ROUGE</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_VERT-constant" title="Fenetre::COULEUR_VERT (constant)">Fenetre::COULEUR_VERT</a></span>, <span class='object_link'><a href="Fenetre.html#FONT_MENU-constant" title="Fenetre::FONT_MENU (constant)">Fenetre::FONT_MENU</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_AUTRE_JEU-constant" title="Fenetre::SIZE_AUTRE_JEU (constant)">Fenetre::SIZE_AUTRE_JEU</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_CONTENU_REGLE-constant" title="Fenetre::SIZE_CONTENU_REGLE (constant)">Fenetre::SIZE_CONTENU_REGLE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_CONTENU_SCORE-constant" title="Fenetre::SIZE_CONTENU_SCORE (constant)">Fenetre::SIZE_CONTENU_SCORE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_CONTENU_STAT-constant" title="Fenetre::SIZE_CONTENU_STAT (constant)">Fenetre::SIZE_CONTENU_STAT</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_LABEL_BOUTON-constant" title="Fenetre::SIZE_LABEL_BOUTON (constant)">Fenetre::SIZE_LABEL_BOUTON</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_PSEUDO-constant" title="Fenetre::SIZE_PSEUDO (constant)">Fenetre::SIZE_PSEUDO</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE-constant" title="Fenetre::SIZE_TITRE (constant)">Fenetre::SIZE_TITRE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_JEU-constant" title="Fenetre::SIZE_TITRE_JEU (constant)">Fenetre::SIZE_TITRE_JEU</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_REGLAGE-constant" title="Fenetre::SIZE_TITRE_REGLAGE (constant)">Fenetre::SIZE_TITRE_REGLAGE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_REGLE-constant" title="Fenetre::SIZE_TITRE_REGLE (constant)">Fenetre::SIZE_TITRE_REGLE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_SCORE-constant" title="Fenetre::SIZE_TITRE_SCORE (constant)">Fenetre::SIZE_TITRE_SCORE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_STAT-constant" title="Fenetre::SIZE_TITRE_STAT (constant)">Fenetre::SIZE_TITRE_STAT</a></span></p>
123
+
124
+
125
+
126
+
127
+ <h2>Instance Attribute Summary</h2>
128
+
129
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="View.html" title="View (class)">View</a></span></h3>
130
+ <p class="inherited"><span class='object_link'><a href="View.html#content=-instance_method" title="View#content= (method)">#content</a></span>, <span class='object_link'><a href="View.html#controller-instance_method" title="View#controller (method)">#controller</a></span>, <span class='object_link'><a href="View.html#headerBar-instance_method" title="View#headerBar (method)">#headerBar</a></span>, <span class='object_link'><a href="View.html#window-instance_method" title="View#window (method)">#window</a></span></p>
131
+
132
+
133
+
134
+ <h2>
135
+ Instance Method Summary
136
+ <small><a href="#" class="summary_toggle">collapse</a></small>
137
+ </h2>
138
+
139
+ <ul class="summary">
140
+
141
+ <li class="public ">
142
+ <span class="summary_signature">
143
+
144
+ <a href="#ajoutCss-instance_method" title="#ajoutCss (instance method)">#<strong>ajoutCss</strong> &#x21d2; Object </a>
145
+
146
+
147
+
148
+ </span>
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+ <span class="summary_desc"><div class='inline'>
159
+ <p>Ajoute les classes css au widget.</p>
160
+ </div></span>
161
+
162
+ </li>
163
+
164
+
165
+ <li class="public ">
166
+ <span class="summary_signature">
167
+
168
+ <a href="#creerBoxTop-instance_method" title="#creerBoxTop (instance method)">#<strong>creerBoxTop</strong> &#x21d2; Object </a>
169
+
170
+
171
+
172
+ </span>
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+ <span class="summary_desc"><div class='inline'>
183
+ <p>Créer la box verticale contenant les boutons des choix du mode de jeu et le
184
+ titre.</p>
185
+ </div></span>
186
+
187
+ </li>
188
+
189
+
190
+ <li class="public ">
191
+ <span class="summary_signature">
192
+
193
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> &#x21d2; FenetreNouvellePartie </a>
194
+
195
+
196
+
197
+ </span>
198
+
199
+
200
+ <span class="note title constructor">constructor</span>
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+ <span class="summary_desc"><div class='inline'>
210
+ <p>Initialize.</p>
211
+ </div></span>
212
+
213
+ </li>
214
+
215
+
216
+ <li class="public ">
217
+ <span class="summary_signature">
218
+
219
+ <a href="#miseEnPlace-instance_method" title="#miseEnPlace (instance method)">#<strong>miseEnPlace</strong> &#x21d2; Object </a>
220
+
221
+
222
+
223
+ </span>
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+ <span class="summary_desc"><div class='inline'>
234
+ <p>Permet de créer et d&#39;ajouter les box au conteneur principal.</p>
235
+ </div></span>
236
+
237
+ </li>
238
+
239
+
240
+ <li class="public ">
241
+ <span class="summary_signature">
242
+
243
+ <a href="#run-instance_method" title="#run (instance method)">#<strong>run</strong> &#x21d2; Object </a>
244
+
245
+
246
+
247
+ </span>
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+ <span class="summary_desc"><div class='inline'>
258
+ <p>Lance la construction du modèle de la vue.</p>
259
+ </div></span>
260
+
261
+ </li>
262
+
263
+
264
+ </ul>
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="View.html" title="View (class)">View</a></span></h3>
277
+ <p class="inherited"><span class='object_link'><a href="View.html#inherited-class_method" title="View.inherited (method)">inherited</a></span>, <span class='object_link'><a href="View.html#setInstanceVars-instance_method" title="View#setInstanceVars (method)">#setInstanceVars</a></span></p>
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></h3>
288
+ <p class="inherited"><span class='object_link'><a href="Fenetre.html#appliquerStyle-class_method" title="Fenetre.appliquerStyle (method)">appliquerStyle</a></span>, <span class='object_link'><a href="Fenetre.html#boutonAnnuler_barre-class_method" title="Fenetre.boutonAnnuler_barre (method)">boutonAnnuler_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonMenu_barre-class_method" title="Fenetre.boutonMenu_barre (method)">boutonMenu_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonPauseChrono_barre-class_method" title="Fenetre.boutonPauseChrono_barre (method)">boutonPauseChrono_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonPlayChrono_barre-class_method" title="Fenetre.boutonPlayChrono_barre (method)">boutonPlayChrono_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonQuitter_barre-class_method" title="Fenetre.boutonQuitter_barre (method)">boutonQuitter_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonReinit_barre-class_method" title="Fenetre.boutonReinit_barre (method)">boutonReinit_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonRetablir_barre-class_method" title="Fenetre.boutonRetablir_barre (method)">boutonRetablir_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonRetour-class_method" title="Fenetre.boutonRetour (method)">boutonRetour</a></span>, <span class='object_link'><a href="Fenetre.html#boutonSauvegarder_barre-class_method" title="Fenetre.boutonSauvegarder_barre (method)">boutonSauvegarder_barre</a></span>, <span class='object_link'><a href="Fenetre.html#box-class_method" title="Fenetre.box (method)">box</a></span>, <span class='object_link'><a href="Fenetre.html#creerBarreMenu-class_method" title="Fenetre.creerBarreMenu (method)">creerBarreMenu</a></span>, <span class='object_link'><a href="Fenetre.html#creerBoxBottom-class_method" title="Fenetre.creerBoxBottom (method)">creerBoxBottom</a></span>, <span class='object_link'><a href="Fenetre.html#creerLabelType-class_method" title="Fenetre.creerLabelType (method)">creerLabelType</a></span>, <span class='object_link'><a href="Fenetre.html#creerPopup-class_method" title="Fenetre.creerPopup (method)">creerPopup</a></span>, <span class='object_link'><a href="Fenetre.html#css-class_method" title="Fenetre.css (method)">css</a></span>, <span class='object_link'><a href="Fenetre.html#detruire-class_method" title="Fenetre.detruire (method)">detruire</a></span>, <span class='object_link'><a href="Fenetre.html#enteteFenetre-class_method" title="Fenetre.enteteFenetre (method)">enteteFenetre</a></span>, <span class='object_link'><a href="Fenetre.html#fenetre-class_method" title="Fenetre.fenetre (method)">fenetre</a></span>, <span class='object_link'><a href="Fenetre.html#fenetrePrecedente-class_method" title="Fenetre.fenetrePrecedente (method)">fenetrePrecedente</a></span>, <span class='object_link'><a href="Fenetre.html#fenetrePrecedente=-class_method" title="Fenetre.fenetrePrecedente= (method)">fenetrePrecedente=</a></span>, <span class='object_link'><a href="Fenetre.html#fenetreStyle-class_method" title="Fenetre.fenetreStyle (method)">fenetreStyle</a></span>, <span class='object_link'><a href="Fenetre.html#viderFenetre-class_method" title="Fenetre.viderFenetre (method)">viderFenetre</a></span></p>
289
+ <div id="constructor_details" class="method_details_list">
290
+ <h2>Constructor Details</h2>
291
+
292
+ <div class="method_details first">
293
+ <h3 class="signature first" id="initialize-instance_method">
294
+
295
+ #<strong>initialize</strong> &#x21d2; <tt><span class='object_link'><a href="" title="FenetreNouvellePartie (class)">FenetreNouvellePartie</a></span></tt>
296
+
297
+
298
+
299
+
300
+
301
+ </h3><div class="docstring">
302
+ <div class="discussion">
303
+
304
+ <p>Initialize</p>
305
+
306
+
307
+ </div>
308
+ </div>
309
+ <div class="tags">
310
+
311
+
312
+ </div><table class="source_code">
313
+ <tr>
314
+ <td>
315
+ <pre class="lines">
316
+
317
+
318
+ 24
319
+ 25
320
+ 26
321
+ 27
322
+ 28
323
+ 29
324
+ 30
325
+ 31
326
+ 32
327
+ 33</pre>
328
+ </td>
329
+ <td>
330
+ <pre class="code"><span class="info file"># File 'app/view/FenetreNouvellePartie.rb', line 24</span>
331
+
332
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='rparen'>)</span>
333
+ <span class='comment'># VI box
334
+ </span> <span class='ivar'>@boxTop</span> <span class='op'>=</span> <span class='const'>Gtk</span><span class='op'>::</span><span class='const'>Box</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:vertical</span><span class='comma'>,</span><span class='int'>0</span><span class='rparen'>)</span>
335
+ <span class='ivar'>@boxBottom</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='id identifier rubyid_creerBoxBottom'><span class='object_link'><a href="Fenetre.html#creerBoxBottom-class_method" title="Fenetre.creerBoxBottom (method)">creerBoxBottom</a></span></span><span class='lparen'>(</span><span class='rparen'>)</span>
336
+ <span class='comment'># VI bouton
337
+ </span> <span class='ivar'>@boutonApprentissage</span> <span class='op'>=</span> <span class='const'>Gtk</span><span class='op'>::</span><span class='const'>Button</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:label</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Apprentissage avec aides</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
338
+ <span class='ivar'>@boutonJeuLibre</span> <span class='op'>=</span> <span class='const'>Gtk</span><span class='op'>::</span><span class='const'>Button</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:label</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Jeu libre</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
339
+ <span class='comment'># VI label
340
+ </span> <span class='ivar'>@titreLabel</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='id identifier rubyid_creerLabelType'><span class='object_link'><a href="Fenetre.html#creerLabelType-class_method" title="Fenetre.creerLabelType (method)">creerLabelType</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>&lt;u&gt;Nouvelle partie&lt;/u&gt;</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span><span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fenetre.html#SIZE_TITRE-constant" title="Fenetre::SIZE_TITRE (constant)">SIZE_TITRE</a></span></span><span class='rparen'>)</span>
341
+ <span class='kw'>end</span></pre>
342
+ </td>
343
+ </tr>
344
+ </table>
345
+ </div>
346
+
347
+ </div>
348
+
349
+
350
+ <div id="instance_method_details" class="method_details_list">
351
+ <h2>Instance Method Details</h2>
352
+
353
+
354
+ <div class="method_details first">
355
+ <h3 class="signature first" id="ajoutCss-instance_method">
356
+
357
+ #<strong>ajoutCss</strong> &#x21d2; <tt>Object</tt>
358
+
359
+
360
+
361
+
362
+
363
+ </h3><div class="docstring">
364
+ <div class="discussion">
365
+
366
+ <p>Ajoute les classes css au widget</p>
367
+
368
+
369
+ </div>
370
+ </div>
371
+ <div class="tags">
372
+
373
+
374
+ </div><table class="source_code">
375
+ <tr>
376
+ <td>
377
+ <pre class="lines">
378
+
379
+
380
+ 69
381
+ 70
382
+ 71
383
+ 72
384
+ 73
385
+ 74
386
+ 75
387
+ 76
388
+ 77
389
+ 78
390
+ 79
391
+ 80
392
+ 81</pre>
393
+ </td>
394
+ <td>
395
+ <pre class="code"><span class="info file"># File 'app/view/FenetreNouvellePartie.rb', line 69</span>
396
+
397
+ <span class='kw'>def</span> <span class='id identifier rubyid_ajoutCss'>ajoutCss</span><span class='lparen'>(</span><span class='rparen'>)</span>
398
+ <span class='comment'>#css label
399
+ </span> <span class='ivar'>@titreLabel</span><span class='period'>.</span><span class='id identifier rubyid_override_color'>override_color</span><span class='lparen'>(</span><span class='symbol'>:normal</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fenetre.html#COULEUR_BLANC-constant" title="Fenetre::COULEUR_BLANC (constant)">COULEUR_BLANC</a></span></span><span class='rparen'>)</span>
400
+ <span class='ivar'>@titreLabel</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_top'>set_margin_top</span><span class='lparen'>(</span><span class='int'>30</span><span class='rparen'>)</span>
401
+ <span class='comment'>#css bouton
402
+ </span> <span class='ivar'>@boutonApprentissage</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_top'>set_margin_top</span><span class='lparen'>(</span><span class='int'>100</span><span class='rparen'>)</span>
403
+ <span class='ivar'>@boutonApprentissage</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_bottom'>set_margin_bottom</span><span class='lparen'>(</span><span class='int'>50</span><span class='rparen'>)</span>
404
+ <span class='ivar'>@boutonApprentissage</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_left'>set_margin_left</span><span class='lparen'>(</span><span class='int'>100</span><span class='rparen'>)</span>
405
+ <span class='ivar'>@boutonApprentissage</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_right'>set_margin_right</span><span class='lparen'>(</span><span class='int'>100</span><span class='rparen'>)</span>
406
+ <span class='ivar'>@boutonJeuLibre</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_bottom'>set_margin_bottom</span><span class='lparen'>(</span><span class='int'>50</span><span class='rparen'>)</span>
407
+ <span class='ivar'>@boutonJeuLibre</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_left'>set_margin_left</span><span class='lparen'>(</span><span class='int'>100</span><span class='rparen'>)</span>
408
+ <span class='ivar'>@boutonJeuLibre</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_right'>set_margin_right</span><span class='lparen'>(</span><span class='int'>100</span><span class='rparen'>)</span>
409
+ <span class='kw'>end</span></pre>
410
+ </td>
411
+ </tr>
412
+ </table>
413
+ </div>
414
+
415
+ <div class="method_details ">
416
+ <h3 class="signature " id="creerBoxTop-instance_method">
417
+
418
+ #<strong>creerBoxTop</strong> &#x21d2; <tt>Object</tt>
419
+
420
+
421
+
422
+
423
+
424
+ </h3><div class="docstring">
425
+ <div class="discussion">
426
+
427
+ <p>Créer la box verticale contenant les boutons des choix du mode de jeu et le
428
+ titre</p>
429
+
430
+
431
+ </div>
432
+ </div>
433
+ <div class="tags">
434
+
435
+
436
+ </div><table class="source_code">
437
+ <tr>
438
+ <td>
439
+ <pre class="lines">
440
+
441
+
442
+ 50
443
+ 51
444
+ 52
445
+ 53
446
+ 54
447
+ 55
448
+ 56
449
+ 57
450
+ 58
451
+ 59
452
+ 60
453
+ 61
454
+ 62
455
+ 63
456
+ 64</pre>
457
+ </td>
458
+ <td>
459
+ <pre class="code"><span class="info file"># File 'app/view/FenetreNouvellePartie.rb', line 50</span>
460
+
461
+ <span class='kw'>def</span> <span class='id identifier rubyid_creerBoxTop'>creerBoxTop</span><span class='lparen'>(</span><span class='rparen'>)</span>
462
+ <span class='comment'>#Action des boutons
463
+ </span> <span class='ivar'>@boutonApprentissage</span><span class='period'>.</span><span class='id identifier rubyid_signal_connect'>signal_connect</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>clicked</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='lbrace'>{</span>
464
+ <span class='const'><span class='object_link'><a href="Core.html" title="Core (module)">Core</a></span></span><span class='op'>::</span><span class='id identifier rubyid_changeTo'><span class='object_link'><a href="Core.html#changeTo-class_method" title="Core.changeTo (method)">changeTo</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Apprentissage</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>pseudo</span><span class='label_end'>&quot;:</span> <span class='ivar'>@pseudo</span><span class='rparen'>)</span>
465
+ <span class='rbrace'>}</span>
466
+
467
+ <span class='ivar'>@boutonJeuLibre</span><span class='period'>.</span><span class='id identifier rubyid_signal_connect'>signal_connect</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>clicked</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='lbrace'>{</span>
468
+ <span class='const'><span class='object_link'><a href="Core.html" title="Core (module)">Core</a></span></span><span class='op'>::</span><span class='id identifier rubyid_changeTo'><span class='object_link'><a href="Core.html#changeTo-class_method" title="Core.changeTo (method)">changeTo</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Niveau</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>pseudo</span><span class='label_end'>&quot;:</span> <span class='ivar'>@pseudo</span><span class='rparen'>)</span>
469
+ <span class='rbrace'>}</span>
470
+
471
+ <span class='comment'>#add des boutons à la box
472
+ </span> <span class='ivar'>@boxTop</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='ivar'>@titreLabel</span><span class='rparen'>)</span>
473
+ <span class='ivar'>@boxTop</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='ivar'>@boutonApprentissage</span><span class='rparen'>)</span>
474
+ <span class='ivar'>@boxTop</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='ivar'>@boutonJeuLibre</span><span class='rparen'>)</span>
475
+ <span class='kw'>end</span></pre>
476
+ </td>
477
+ </tr>
478
+ </table>
479
+ </div>
480
+
481
+ <div class="method_details ">
482
+ <h3 class="signature " id="miseEnPlace-instance_method">
483
+
484
+ #<strong>miseEnPlace</strong> &#x21d2; <tt>Object</tt>
485
+
486
+
487
+
488
+
489
+
490
+ </h3><div class="docstring">
491
+ <div class="discussion">
492
+
493
+ <p>Permet de créer et d&#39;ajouter les box au conteneur principal</p>
494
+
495
+
496
+ </div>
497
+ </div>
498
+ <div class="tags">
499
+
500
+
501
+ </div><table class="source_code">
502
+ <tr>
503
+ <td>
504
+ <pre class="lines">
505
+
506
+
507
+ 39
508
+ 40
509
+ 41
510
+ 42
511
+ 43
512
+ 44</pre>
513
+ </td>
514
+ <td>
515
+ <pre class="code"><span class="info file"># File 'app/view/FenetreNouvellePartie.rb', line 39</span>
516
+
517
+ <span class='kw'>def</span> <span class='id identifier rubyid_miseEnPlace'>miseEnPlace</span><span class='lparen'>(</span><span class='rparen'>)</span>
518
+ <span class='id identifier rubyid_creerBoxTop'>creerBoxTop</span><span class='lparen'>(</span><span class='rparen'>)</span>
519
+ <span class='id identifier rubyid_ajoutCss'>ajoutCss</span><span class='lparen'>(</span><span class='rparen'>)</span>
520
+ <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='id identifier rubyid_box'><span class='object_link'><a href="Fenetre.html#box-class_method" title="Fenetre.box (method)">box</a></span></span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='ivar'>@boxTop</span><span class='rparen'>)</span>
521
+ <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='id identifier rubyid_box'><span class='object_link'><a href="Fenetre.html#box-class_method" title="Fenetre.box (method)">box</a></span></span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='ivar'>@boxBottom</span><span class='rparen'>)</span>
522
+ <span class='kw'>end</span></pre>
523
+ </td>
524
+ </tr>
525
+ </table>
526
+ </div>
527
+
528
+ <div class="method_details ">
529
+ <h3 class="signature " id="run-instance_method">
530
+
531
+ #<strong>run</strong> &#x21d2; <tt>Object</tt>
532
+
533
+
534
+
535
+
536
+
537
+ </h3><div class="docstring">
538
+ <div class="discussion">
539
+
540
+ <p>Lance la construction du modèle de la vue. Méthode à définir dans tout les
541
+ cas ! Autrement pas de rendu de la page.</p>
542
+
543
+
544
+ </div>
545
+ </div>
546
+ <div class="tags">
547
+
548
+ <p class="tag_title">Returns:</p>
549
+ <ul class="return">
550
+
551
+ <li>
552
+
553
+
554
+ <span class='type'></span>
555
+
556
+
557
+
558
+
559
+ <div class='inline'>
560
+ <p>self</p>
561
+ </div>
562
+
563
+ </li>
564
+
565
+ </ul>
566
+
567
+ </div><table class="source_code">
568
+ <tr>
569
+ <td>
570
+ <pre class="lines">
571
+
572
+
573
+ 88
574
+ 89
575
+ 90
576
+ 91</pre>
577
+ </td>
578
+ <td>
579
+ <pre class="code"><span class="info file"># File 'app/view/FenetreNouvellePartie.rb', line 88</span>
580
+
581
+ <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='rparen'>)</span>
582
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_miseEnPlace'>miseEnPlace</span><span class='lparen'>(</span><span class='rparen'>)</span>
583
+ <span class='kw'>return</span> <span class='kw'>self</span>
584
+ <span class='kw'>end</span></pre>
585
+ </td>
586
+ </tr>
587
+ </table>
588
+ </div>
589
+
590
+ </div>
591
+
592
+ </div>
593
+
594
+ <div id="footer">
595
+ Generated on Sat Apr 22 22:47:32 2017 by
596
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
597
+ 0.9.8 (ruby-2.3.3).
598
+ </div>
599
+
600
+ </div>
601
+ </body>
602
+ </html>