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,371 @@
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: FenetrePrincipale
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 = "FenetrePrincipale";
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">FenetrePrincipale</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: FenetrePrincipale
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">FenetrePrincipale</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/FenetrePrincipale.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>classe FenetrePrincipale</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="#miseEnPlace-instance_method" title="#miseEnPlace (instance method)">#<strong>miseEnPlace</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>Permet de créer et d&#39;ajouter les box au conteneur principal.</p>
160
+ </div></span>
161
+
162
+ </li>
163
+
164
+
165
+ <li class="public ">
166
+ <span class="summary_signature">
167
+
168
+ <a href="#run-instance_method" title="#run (instance method)">#<strong>run</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>Lance la construction du modèle de la vue.</p>
184
+ </div></span>
185
+
186
+ </li>
187
+
188
+
189
+ </ul>
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="View.html" title="View (class)">View</a></span></h3>
202
+ <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#initialize-instance_method" title="View#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="View.html#setInstanceVars-instance_method" title="View#setInstanceVars (method)">#setInstanceVars</a></span></p>
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></h3>
213
+ <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>
214
+ <div id="constructor_details" class="method_details_list">
215
+ <h2>Constructor Details</h2>
216
+
217
+ <p class="notice">This class inherits a constructor from <span class='object_link'><a href="View.html#initialize-instance_method" title="View#initialize (method)">View</a></span></p>
218
+
219
+ </div>
220
+
221
+
222
+ <div id="instance_method_details" class="method_details_list">
223
+ <h2>Instance Method Details</h2>
224
+
225
+
226
+ <div class="method_details first">
227
+ <h3 class="signature first" id="miseEnPlace-instance_method">
228
+
229
+ #<strong>miseEnPlace</strong> &#x21d2; <tt>Object</tt>
230
+
231
+
232
+
233
+
234
+
235
+ </h3><div class="docstring">
236
+ <div class="discussion">
237
+
238
+ <p>Permet de créer et d&#39;ajouter les box au conteneur principal</p>
239
+
240
+
241
+ </div>
242
+ </div>
243
+ <div class="tags">
244
+
245
+
246
+ </div><table class="source_code">
247
+ <tr>
248
+ <td>
249
+ <pre class="lines">
250
+
251
+
252
+ 17
253
+ 18
254
+ 19
255
+ 20
256
+ 21
257
+ 22
258
+ 23
259
+ 24
260
+ 25
261
+ 26
262
+ 27
263
+ 28
264
+ 29
265
+ 30
266
+ 31
267
+ 32
268
+ 33
269
+ 34</pre>
270
+ </td>
271
+ <td>
272
+ <pre class="code"><span class="info file"># File 'app/view/FenetrePrincipale.rb', line 17</span>
273
+
274
+ <span class='kw'>def</span> <span class='id identifier rubyid_miseEnPlace'>miseEnPlace</span><span class='lparen'>(</span><span class='rparen'>)</span>
275
+ <span class='kw'>begin</span>
276
+ <span class='id identifier rubyid_image'>image</span> <span class='op'>=</span> <span class='const'>Gtk</span><span class='op'>::</span><span class='const'>Image</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:file</span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="Core.html" title="Core (module)">Core</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Core.html#ROOTPROJECT-constant" title="Core::ROOTPROJECT (constant)">ROOTPROJECT</a></span></span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>assets/img/sudokuIntro.jpg</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
277
+ <span class='kw'>rescue</span> <span class='const'>IOError</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_e'>e</span>
278
+ <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_e'>e</span>
279
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Impossible de charger l&#39;image de depart</span><span class='tstring_end'>&quot;</span></span>
280
+ <span class='id identifier rubyid_exit'>exit</span>
281
+ <span class='kw'>end</span>
282
+
283
+ <span class='comment'>#Creation des Boutons
284
+ </span> <span class='id identifier rubyid_event_box'>event_box</span><span class='op'>=</span><span class='const'>Gtk</span><span class='op'>::</span><span class='const'>EventBox</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_image'>image</span><span class='rparen'>)</span>
285
+ <span class='id identifier rubyid_event_box'>event_box</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'>button_press_event</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='lbrace'>{</span>
286
+ <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'>Pseudo</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
287
+ <span class='rbrace'>}</span>
288
+
289
+ <span class='comment'>#add des boutons à la box
290
+ </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_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='id identifier rubyid_event_box'>event_box</span><span class='rparen'>)</span>
291
+ <span class='kw'>end</span></pre>
292
+ </td>
293
+ </tr>
294
+ </table>
295
+ </div>
296
+
297
+ <div class="method_details ">
298
+ <h3 class="signature " id="run-instance_method">
299
+
300
+ #<strong>run</strong> &#x21d2; <tt>Object</tt>
301
+
302
+
303
+
304
+
305
+
306
+ </h3><div class="docstring">
307
+ <div class="discussion">
308
+
309
+ <p>Lance la construction du modèle de la vue. Méthode à définir dans tout les
310
+ cas ! Autrement pas de rendu de la page.</p>
311
+
312
+
313
+ </div>
314
+ </div>
315
+ <div class="tags">
316
+
317
+ <p class="tag_title">Returns:</p>
318
+ <ul class="return">
319
+
320
+ <li>
321
+
322
+
323
+ <span class='type'></span>
324
+
325
+
326
+
327
+
328
+ <div class='inline'>
329
+ <p>self</p>
330
+ </div>
331
+
332
+ </li>
333
+
334
+ </ul>
335
+
336
+ </div><table class="source_code">
337
+ <tr>
338
+ <td>
339
+ <pre class="lines">
340
+
341
+
342
+ 41
343
+ 42
344
+ 43
345
+ 44</pre>
346
+ </td>
347
+ <td>
348
+ <pre class="code"><span class="info file"># File 'app/view/FenetrePrincipale.rb', line 41</span>
349
+
350
+ <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
351
+ <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>
352
+ <span class='kw'>return</span> <span class='kw'>self</span>
353
+ <span class='kw'>end</span></pre>
354
+ </td>
355
+ </tr>
356
+ </table>
357
+ </div>
358
+
359
+ </div>
360
+
361
+ </div>
362
+
363
+ <div id="footer">
364
+ Generated on Sat Apr 22 22:47:32 2017 by
365
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
366
+ 0.9.8 (ruby-2.3.3).
367
+ </div>
368
+
369
+ </div>
370
+ </body>
371
+ </html>
@@ -0,0 +1,695 @@
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: FenetrePseudo
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 = "FenetrePseudo";
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">FenetrePseudo</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: FenetrePseudo
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">FenetrePseudo</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/FenetrePseudo.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>classe FenetrePseudo</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="#creerBoxBottom-instance_method" title="#creerBoxBottom (instance method)">#<strong>creerBoxBottom</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>Creer la box horizontal contenant les boutons valider et quitter.</p>
184
+ </div></span>
185
+
186
+ </li>
187
+
188
+
189
+ <li class="public ">
190
+ <span class="summary_signature">
191
+
192
+ <a href="#creerBoxTop-instance_method" title="#creerBoxTop (instance method)">#<strong>creerBoxTop</strong> &#x21d2; Object </a>
193
+
194
+
195
+
196
+ </span>
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+ <span class="summary_desc"><div class='inline'>
207
+ <p>Créer la box verticale contenant la demande de pseudo et le titre.</p>
208
+ </div></span>
209
+
210
+ </li>
211
+
212
+
213
+ <li class="public ">
214
+ <span class="summary_signature">
215
+
216
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> &#x21d2; FenetrePseudo </a>
217
+
218
+
219
+
220
+ </span>
221
+
222
+
223
+ <span class="note title constructor">constructor</span>
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+ <span class="summary_desc"><div class='inline'>
233
+ <p>Initialize.</p>
234
+ </div></span>
235
+
236
+ </li>
237
+
238
+
239
+ <li class="public ">
240
+ <span class="summary_signature">
241
+
242
+ <a href="#miseEnPlace-instance_method" title="#miseEnPlace (instance method)">#<strong>miseEnPlace</strong> &#x21d2; Object </a>
243
+
244
+
245
+
246
+ </span>
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+ <span class="summary_desc"><div class='inline'>
257
+ <p>Permet de créer et d&#39;ajouter les box au conteneur principal.</p>
258
+ </div></span>
259
+
260
+ </li>
261
+
262
+
263
+ <li class="public ">
264
+ <span class="summary_signature">
265
+
266
+ <a href="#run-instance_method" title="#run (instance method)">#<strong>run</strong> &#x21d2; Object </a>
267
+
268
+
269
+
270
+ </span>
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+ <span class="summary_desc"><div class='inline'>
281
+ <p>Lance la construction du modèle de la vue.</p>
282
+ </div></span>
283
+
284
+ </li>
285
+
286
+
287
+ </ul>
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="View.html" title="View (class)">View</a></span></h3>
300
+ <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>
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></h3>
311
+ <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>
312
+ <div id="constructor_details" class="method_details_list">
313
+ <h2>Constructor Details</h2>
314
+
315
+ <div class="method_details first">
316
+ <h3 class="signature first" id="initialize-instance_method">
317
+
318
+ #<strong>initialize</strong> &#x21d2; <tt><span class='object_link'><a href="" title="FenetrePseudo (class)">FenetrePseudo</a></span></tt>
319
+
320
+
321
+
322
+
323
+
324
+ </h3><div class="docstring">
325
+ <div class="discussion">
326
+
327
+ <p>Initialize</p>
328
+
329
+
330
+ </div>
331
+ </div>
332
+ <div class="tags">
333
+
334
+
335
+ </div><table class="source_code">
336
+ <tr>
337
+ <td>
338
+ <pre class="lines">
339
+
340
+
341
+ 26
342
+ 27
343
+ 28
344
+ 29
345
+ 30
346
+ 31
347
+ 32
348
+ 33
349
+ 34
350
+ 35
351
+ 36
352
+ 37</pre>
353
+ </td>
354
+ <td>
355
+ <pre class="code"><span class="info file"># File 'app/view/FenetrePseudo.rb', line 26</span>
356
+
357
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='rparen'>)</span>
358
+ <span class='comment'># VI box
359
+ </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>
360
+ <span class='ivar'>@boxBottom</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'>:horizontal</span><span class='comma'>,</span> <span class='int'>0</span><span class='rparen'>)</span>
361
+ <span class='comment'># VI bouton
362
+ </span> <span class='ivar'>@entryPseudo</span> <span class='op'>=</span> <span class='const'>Gtk</span><span class='op'>::</span><span class='const'>Entry</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='rparen'>)</span>
363
+ <span class='ivar'>@boutonValider</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'>Valider</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
364
+ <span class='ivar'>@boutonQuitter</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'>Quitter</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
365
+ <span class='comment'># VI label
366
+ </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;Choix du pseudo&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>
367
+ <span class='ivar'>@pseudoLabel</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'>Votre pseudo : </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_PSEUDO-constant" title="Fenetre::SIZE_PSEUDO (constant)">SIZE_PSEUDO</a></span></span><span class='rparen'>)</span>
368
+ <span class='kw'>end</span></pre>
369
+ </td>
370
+ </tr>
371
+ </table>
372
+ </div>
373
+
374
+ </div>
375
+
376
+
377
+ <div id="instance_method_details" class="method_details_list">
378
+ <h2>Instance Method Details</h2>
379
+
380
+
381
+ <div class="method_details first">
382
+ <h3 class="signature first" id="ajoutCss-instance_method">
383
+
384
+ #<strong>ajoutCss</strong> &#x21d2; <tt>Object</tt>
385
+
386
+
387
+
388
+
389
+
390
+ </h3><div class="docstring">
391
+ <div class="discussion">
392
+
393
+ <p>Ajoute les classes css au widget</p>
394
+
395
+
396
+ </div>
397
+ </div>
398
+ <div class="tags">
399
+
400
+
401
+ </div><table class="source_code">
402
+ <tr>
403
+ <td>
404
+ <pre class="lines">
405
+
406
+
407
+ 90
408
+ 91
409
+ 92
410
+ 93
411
+ 94
412
+ 95
413
+ 96
414
+ 97
415
+ 98
416
+ 99
417
+ 100
418
+ 101
419
+ 102
420
+ 103
421
+ 104</pre>
422
+ </td>
423
+ <td>
424
+ <pre class="code"><span class="info file"># File 'app/view/FenetrePseudo.rb', line 90</span>
425
+
426
+ <span class='kw'>def</span> <span class='id identifier rubyid_ajoutCss'>ajoutCss</span><span class='lparen'>(</span><span class='rparen'>)</span>
427
+ <span class='comment'>#css label
428
+ </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>
429
+ <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>
430
+ <span class='ivar'>@pseudoLabel</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>
431
+ <span class='ivar'>@pseudoLabel</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_top'>set_margin_top</span><span class='lparen'>(</span><span class='int'>80</span><span class='rparen'>)</span>
432
+ <span class='ivar'>@pseudoLabel</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_bottom'>set_margin_bottom</span><span class='lparen'>(</span><span class='int'>30</span><span class='rparen'>)</span>
433
+ <span class='comment'>#css bouton
434
+ </span> <span class='ivar'>@entryPseudo</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>
435
+ <span class='ivar'>@entryPseudo</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>
436
+ <span class='ivar'>@boutonValider</span><span class='period'>.</span><span class='id identifier rubyid_set_margin'>set_margin</span><span class='lparen'>(</span><span class='int'>40</span><span class='rparen'>)</span>
437
+ <span class='ivar'>@boutonValider</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_top'>set_margin_top</span><span class='lparen'>(</span><span class='int'>60</span><span class='rparen'>)</span>
438
+ <span class='ivar'>@boutonQuitter</span><span class='period'>.</span><span class='id identifier rubyid_set_margin'>set_margin</span><span class='lparen'>(</span><span class='int'>40</span><span class='rparen'>)</span>
439
+ <span class='ivar'>@boutonQuitter</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_top'>set_margin_top</span><span class='lparen'>(</span><span class='int'>60</span><span class='rparen'>)</span>
440
+ <span class='kw'>end</span></pre>
441
+ </td>
442
+ </tr>
443
+ </table>
444
+ </div>
445
+
446
+ <div class="method_details ">
447
+ <h3 class="signature " id="creerBoxBottom-instance_method">
448
+
449
+ #<strong>creerBoxBottom</strong> &#x21d2; <tt>Object</tt>
450
+
451
+
452
+
453
+
454
+
455
+ </h3><div class="docstring">
456
+ <div class="discussion">
457
+
458
+ <p>Creer la box horizontal contenant les boutons valider et quitter</p>
459
+
460
+
461
+ </div>
462
+ </div>
463
+ <div class="tags">
464
+
465
+
466
+ </div><table class="source_code">
467
+ <tr>
468
+ <td>
469
+ <pre class="lines">
470
+
471
+
472
+ 70
473
+ 71
474
+ 72
475
+ 73
476
+ 74
477
+ 75
478
+ 76
479
+ 77
480
+ 78
481
+ 79
482
+ 80
483
+ 81
484
+ 82
485
+ 83
486
+ 84
487
+ 85</pre>
488
+ </td>
489
+ <td>
490
+ <pre class="code"><span class="info file"># File 'app/view/FenetrePseudo.rb', line 70</span>
491
+
492
+ <span class='kw'>def</span> <span class='id identifier rubyid_creerBoxBottom'>creerBoxBottom</span><span class='lparen'>(</span><span class='rparen'>)</span>
493
+ <span class='comment'>#Action des boutons
494
+ </span> <span class='ivar'>@boutonValider</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'>button_press_event</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='lbrace'>{</span>
495
+ <span class='id identifier rubyid_actionBoutonValider'>actionBoutonValider</span><span class='lparen'>(</span><span class='ivar'>@entryPseudo</span><span class='rparen'>)</span>
496
+ <span class='rbrace'>}</span>
497
+
498
+ <span class='ivar'>@boutonQuitter</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>
499
+ <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_detruire'><span class='object_link'><a href="Fenetre.html#detruire-class_method" title="Fenetre.detruire (method)">detruire</a></span></span><span class='lparen'>(</span><span class='rparen'>)</span>
500
+ <span class='rbrace'>}</span>
501
+
502
+ <span class='comment'>#add des boutons à la box
503
+ </span> <span class='ivar'>@boxBottom</span><span class='period'>.</span><span class='id identifier rubyid_halign'>halign</span> <span class='op'>=</span> <span class='symbol'>:center</span>
504
+ <span class='ivar'>@boxBottom</span><span class='period'>.</span><span class='id identifier rubyid_valign'>valign</span> <span class='op'>=</span> <span class='symbol'>:center</span>
505
+ <span class='ivar'>@boxBottom</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='ivar'>@boutonQuitter</span><span class='rparen'>)</span>
506
+ <span class='ivar'>@boxBottom</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='ivar'>@boutonValider</span><span class='rparen'>)</span>
507
+ <span class='kw'>end</span></pre>
508
+ </td>
509
+ </tr>
510
+ </table>
511
+ </div>
512
+
513
+ <div class="method_details ">
514
+ <h3 class="signature " id="creerBoxTop-instance_method">
515
+
516
+ #<strong>creerBoxTop</strong> &#x21d2; <tt>Object</tt>
517
+
518
+
519
+
520
+
521
+
522
+ </h3><div class="docstring">
523
+ <div class="discussion">
524
+
525
+ <p>Créer la box verticale contenant la demande de pseudo et le titre</p>
526
+
527
+
528
+ </div>
529
+ </div>
530
+ <div class="tags">
531
+
532
+
533
+ </div><table class="source_code">
534
+ <tr>
535
+ <td>
536
+ <pre class="lines">
537
+
538
+
539
+ 55
540
+ 56
541
+ 57
542
+ 58
543
+ 59
544
+ 60
545
+ 61
546
+ 62
547
+ 63
548
+ 64
549
+ 65
550
+ 66</pre>
551
+ </td>
552
+ <td>
553
+ <pre class="code"><span class="info file"># File 'app/view/FenetrePseudo.rb', line 55</span>
554
+
555
+ <span class='kw'>def</span> <span class='id identifier rubyid_creerBoxTop'>creerBoxTop</span><span class='lparen'>(</span><span class='rparen'>)</span>
556
+ <span class='comment'>#Action des boutons
557
+ </span> <span class='ivar'>@entryPseudo</span><span class='period'>.</span><span class='id identifier rubyid_set_max_length'>set_max_length</span><span class='lparen'>(</span><span class='int'>15</span><span class='rparen'>)</span>
558
+ <span class='ivar'>@entryPseudo</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'>&quot;</span><span class='tstring_content'>activate</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='lbrace'>{</span>
559
+ <span class='id identifier rubyid_actionBoutonValider'>actionBoutonValider</span><span class='lparen'>(</span><span class='ivar'>@entryPseudo</span><span class='rparen'>)</span>
560
+ <span class='rbrace'>}</span>
561
+
562
+ <span class='comment'>#add des boutons à la box
563
+ </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>
564
+ <span class='ivar'>@boxTop</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='ivar'>@pseudoLabel</span><span class='rparen'>)</span>
565
+ <span class='ivar'>@boxTop</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='ivar'>@entryPseudo</span><span class='rparen'>)</span>
566
+ <span class='kw'>end</span></pre>
567
+ </td>
568
+ </tr>
569
+ </table>
570
+ </div>
571
+
572
+ <div class="method_details ">
573
+ <h3 class="signature " id="miseEnPlace-instance_method">
574
+
575
+ #<strong>miseEnPlace</strong> &#x21d2; <tt>Object</tt>
576
+
577
+
578
+
579
+
580
+
581
+ </h3><div class="docstring">
582
+ <div class="discussion">
583
+
584
+ <p>Permet de créer et d&#39;ajouter les box au conteneur principal</p>
585
+
586
+
587
+ </div>
588
+ </div>
589
+ <div class="tags">
590
+
591
+
592
+ </div><table class="source_code">
593
+ <tr>
594
+ <td>
595
+ <pre class="lines">
596
+
597
+
598
+ 43
599
+ 44
600
+ 45
601
+ 46
602
+ 47
603
+ 48
604
+ 49</pre>
605
+ </td>
606
+ <td>
607
+ <pre class="code"><span class="info file"># File 'app/view/FenetrePseudo.rb', line 43</span>
608
+
609
+ <span class='kw'>def</span> <span class='id identifier rubyid_miseEnPlace'>miseEnPlace</span><span class='lparen'>(</span><span class='rparen'>)</span>
610
+ <span class='id identifier rubyid_creerBoxTop'>creerBoxTop</span><span class='lparen'>(</span><span class='rparen'>)</span>
611
+ <span class='id identifier rubyid_creerBoxBottom'>creerBoxBottom</span><span class='lparen'>(</span><span class='rparen'>)</span>
612
+ <span class='id identifier rubyid_ajoutCss'>ajoutCss</span><span class='lparen'>(</span><span class='rparen'>)</span>
613
+ <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>
614
+ <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>
615
+ <span class='kw'>end</span></pre>
616
+ </td>
617
+ </tr>
618
+ </table>
619
+ </div>
620
+
621
+ <div class="method_details ">
622
+ <h3 class="signature " id="run-instance_method">
623
+
624
+ #<strong>run</strong> &#x21d2; <tt>Object</tt>
625
+
626
+
627
+
628
+
629
+
630
+ </h3><div class="docstring">
631
+ <div class="discussion">
632
+
633
+ <p>Lance la construction du modèle de la vue. Méthode à définir dans tout les
634
+ cas ! Autrement pas de rendu de la page.</p>
635
+
636
+
637
+ </div>
638
+ </div>
639
+ <div class="tags">
640
+
641
+ <p class="tag_title">Returns:</p>
642
+ <ul class="return">
643
+
644
+ <li>
645
+
646
+
647
+ <span class='type'></span>
648
+
649
+
650
+
651
+
652
+ <div class='inline'>
653
+ <p>self</p>
654
+ </div>
655
+
656
+ </li>
657
+
658
+ </ul>
659
+
660
+ </div><table class="source_code">
661
+ <tr>
662
+ <td>
663
+ <pre class="lines">
664
+
665
+
666
+ 111
667
+ 112
668
+ 113
669
+ 114</pre>
670
+ </td>
671
+ <td>
672
+ <pre class="code"><span class="info file"># File 'app/view/FenetrePseudo.rb', line 111</span>
673
+
674
+ <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
675
+ <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>
676
+ <span class='kw'>return</span> <span class='kw'>self</span>
677
+ <span class='kw'>end</span></pre>
678
+ </td>
679
+ </tr>
680
+ </table>
681
+ </div>
682
+
683
+ </div>
684
+
685
+ </div>
686
+
687
+ <div id="footer">
688
+ Generated on Sat Apr 22 22:47:31 2017 by
689
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
690
+ 0.9.8 (ruby-2.3.3).
691
+ </div>
692
+
693
+ </div>
694
+ </body>
695
+ </html>