PCYoshi 9 anni fa
parent
commit
93509ae057

+ 67
- 111
java/.idea/workspace.xml Vedi File

@@ -7,15 +7,10 @@
7 7
   </component>
8 8
   <component name="ChangeListManager">
9 9
     <list default="true" id="a647cb6a-4230-4101-a652-d7cfd0c21e24" name="Default" comment="">
10
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/ConnexionBDD.class" afterPath="$PROJECT_DIR$/out/production/java/ConnexionBDD.class" />
11
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/GestionQuestions.class" afterPath="$PROJECT_DIR$/out/production/java/GestionQuestions.class" />
12
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfacePrincipale$PanQuestionsListener.class" afterPath="$PROJECT_DIR$/out/production/java/InterfacePrincipale$PanQuestionsListener.class" />
13
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfacePrincipale$PanReponsesListener.class" afterPath="$PROJECT_DIR$/out/production/java/InterfacePrincipale$PanReponsesListener.class" />
14
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/ConnexionBDD.java" afterPath="$PROJECT_DIR$/src/ConnexionBDD.java" />
15
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/GestionQuestions.java" afterPath="$PROJECT_DIR$/src/GestionQuestions.java" />
10
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/ConnexionBddDialog.java" />
11
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/GestionReponses.class" afterPath="$PROJECT_DIR$/out/production/java/GestionReponses.class" />
12
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/rsc/edit.png" afterPath="$PROJECT_DIR$/rsc/edit.png" />
16 13
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/InterfacePrincipale.java" afterPath="$PROJECT_DIR$/src/InterfacePrincipale.java" />
17
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/NouvelleQuestionDialog.java" afterPath="$PROJECT_DIR$/src/NouvelleQuestionDialog.java" />
18
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/NouvelleReponseDialog.java" afterPath="$PROJECT_DIR$/src/NouvelleReponseDialog.java" />
19 14
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
20 15
     </list>
21 16
     <ignored path="java.iws" />
@@ -38,16 +33,16 @@
38 33
   </component>
39 34
   <component name="FileEditorManager">
40 35
     <leaf>
41
-      <file leaf-file-name="InterfacePrincipale.java" pinned="false" current-in-tab="false">
36
+      <file leaf-file-name="InterfacePrincipale.java" pinned="false" current-in-tab="true">
42 37
         <entry file="file://$PROJECT_DIR$/src/InterfacePrincipale.java">
43 38
           <provider selected="true" editor-type-id="text-editor">
44
-            <state vertical-scroll-proportion="0.0">
45
-              <caret line="231" column="68" selection-start-line="231" selection-start-column="68" selection-end-line="231" selection-end-column="68" />
39
+            <state vertical-scroll-proportion="0.28544775">
40
+              <caret line="51" column="32" selection-start-line="51" selection-start-column="32" selection-end-line="51" selection-end-column="32" />
46 41
               <folding>
47 42
                 <element signature="imports" expanded="true" />
48
-                <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
49 43
                 <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
50 44
                 <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
45
+                <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
51 46
                 <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
52 47
                 <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
53 48
               </folding>
@@ -59,43 +54,21 @@
59 54
         <entry file="file://$PROJECT_DIR$/src/ConnexionBDD.java">
60 55
           <provider selected="true" editor-type-id="text-editor">
61 56
             <state vertical-scroll-proportion="0.0">
62
-              <caret line="83" column="30" selection-start-line="83" selection-start-column="30" selection-end-line="83" selection-end-column="30" />
63
-              <folding>
64
-                <element signature="imports" expanded="true" />
65
-                <element signature="e#1239#1240#0" expanded="true" />
66
-                <element signature="e#1294#1295#0" expanded="true" />
67
-                <element signature="e#1349#1350#0" expanded="true" />
68
-                <element signature="e#1404#1405#0" expanded="true" />
69
-                <element signature="e#1960#1961#0" expanded="true" />
70
-                <element signature="e#2017#2018#0" expanded="true" />
71
-              </folding>
72
-            </state>
73
-          </provider>
74
-        </entry>
75
-      </file>
76
-      <file leaf-file-name="GestionReponses.java" pinned="false" current-in-tab="false">
77
-        <entry file="file://$PROJECT_DIR$/src/GestionReponses.java">
78
-          <provider selected="true" editor-type-id="text-editor">
79
-            <state vertical-scroll-proportion="0.0">
80
-              <caret line="84" column="28" selection-start-line="84" selection-start-column="28" selection-end-line="84" selection-end-column="28" />
57
+              <caret line="39" column="74" selection-start-line="39" selection-start-column="74" selection-end-line="39" selection-end-column="74" />
81 58
               <folding>
82 59
                 <element signature="imports" expanded="true" />
83
-                <element signature="e#2627#2628#0" expanded="true" />
84
-                <element signature="e#2653#2654#0" expanded="true" />
85 60
               </folding>
86 61
             </state>
87 62
           </provider>
88 63
         </entry>
89 64
       </file>
90
-      <file leaf-file-name="GestionQuestions.java" pinned="false" current-in-tab="false">
91
-        <entry file="file://$PROJECT_DIR$/src/GestionQuestions.java">
65
+      <file leaf-file-name="ConnexionBddDialog.java" pinned="false" current-in-tab="false">
66
+        <entry file="file://$PROJECT_DIR$/src/ConnexionBddDialog.java">
92 67
           <provider selected="true" editor-type-id="text-editor">
93 68
             <state vertical-scroll-proportion="0.0">
94
-              <caret line="89" column="36" selection-start-line="89" selection-start-column="36" selection-end-line="89" selection-end-column="36" />
69
+              <caret line="74" column="24" selection-start-line="74" selection-start-column="24" selection-end-line="74" selection-end-column="24" />
95 70
               <folding>
96 71
                 <element signature="imports" expanded="true" />
97
-                <element signature="e#2985#2986#0" expanded="true" />
98
-                <element signature="e#3013#3014#0" expanded="true" />
99 72
               </folding>
100 73
             </state>
101 74
           </provider>
@@ -105,7 +78,7 @@
105 78
         <entry file="file://$PROJECT_DIR$/src/NouvelleQuestionDialog.java">
106 79
           <provider selected="true" editor-type-id="text-editor">
107 80
             <state vertical-scroll-proportion="0.0">
108
-              <caret line="19" column="8" selection-start-line="19" selection-start-column="8" selection-end-line="19" selection-end-column="28" />
81
+              <caret line="53" column="58" selection-start-line="53" selection-start-column="58" selection-end-line="53" selection-end-column="58" />
109 82
               <folding>
110 83
                 <element signature="imports" expanded="true" />
111 84
                 <element signature="e#1976#1977#0" expanded="true" />
@@ -117,18 +90,6 @@
117 90
           </provider>
118 91
         </entry>
119 92
       </file>
120
-      <file leaf-file-name="NouvelleReponseDialog.java" pinned="false" current-in-tab="true">
121
-        <entry file="file://$PROJECT_DIR$/src/NouvelleReponseDialog.java">
122
-          <provider selected="true" editor-type-id="text-editor">
123
-            <state vertical-scroll-proportion="0.5635359">
124
-              <caret line="20" column="28" selection-start-line="20" selection-start-column="28" selection-end-line="20" selection-end-column="28" />
125
-              <folding>
126
-                <element signature="imports" expanded="true" />
127
-              </folding>
128
-            </state>
129
-          </provider>
130
-        </entry>
131
-      </file>
132 93
     </leaf>
133 94
   </component>
134 95
   <component name="FileTemplateManagerImpl">
@@ -163,9 +124,10 @@
163 124
         <option value="$PROJECT_DIR$/src/GestionReponses.java" />
164 125
         <option value="$PROJECT_DIR$/src/ConnexionBDD.java" />
165 126
         <option value="$PROJECT_DIR$/src/GestionQuestions.java" />
166
-        <option value="$PROJECT_DIR$/src/InterfacePrincipale.java" />
167 127
         <option value="$PROJECT_DIR$/src/NouvelleQuestionDialog.java" />
168 128
         <option value="$PROJECT_DIR$/src/NouvelleReponseDialog.java" />
129
+        <option value="$PROJECT_DIR$/src/ConnexionBddDialog.java" />
130
+        <option value="$PROJECT_DIR$/src/InterfacePrincipale.java" />
169 131
       </list>
170 132
     </option>
171 133
   </component>
@@ -284,9 +246,6 @@
284 246
       <sortByType />
285 247
     </navigator>
286 248
     <panes>
287
-      <pane id="PackagesPane" />
288
-      <pane id="Scope" />
289
-      <pane id="Scratches" />
290 249
       <pane id="ProjectPane">
291 250
         <subPane>
292 251
           <PATH>
@@ -321,6 +280,9 @@
321 280
           </PATH>
322 281
         </subPane>
323 282
       </pane>
283
+      <pane id="Scope" />
284
+      <pane id="Scratches" />
285
+      <pane id="PackagesPane" />
324 286
     </panes>
325 287
   </component>
326 288
   <component name="PropertiesComponent">
@@ -362,9 +324,6 @@
362 324
           <option name="mySupportsDeletion" value="false" />
363 325
           <option name="myCanBeAbsent" value="false" />
364 326
           <option name="myId" value="UPDATED" />
365
-          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/api/controller/palmares.php</PATH>
366
-          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/index.htm</PATH>
367
-          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/js/game.js</PATH>
368 327
         </FILE-GROUP>
369 328
         <FILE-GROUP>
370 329
           <option name="myUpdateName" value="Created" />
@@ -372,6 +331,12 @@
372 331
           <option name="mySupportsDeletion" value="false" />
373 332
           <option name="myCanBeAbsent" value="false" />
374 333
           <option name="myId" value="CREATED" />
334
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/README</PATH>
335
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/client/index.html</PATH>
336
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/client/js/game.js</PATH>
337
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/server/npm-debug.log</PATH>
338
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/server/package.json</PATH>
339
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/server/server.js</PATH>
375 340
         </FILE-GROUP>
376 341
         <FILE-GROUP>
377 342
           <option name="myUpdateName" value="Deleted" />
@@ -745,7 +710,13 @@
745 710
       <option name="project" value="LOCAL" />
746 711
       <updated>1433256920732</updated>
747 712
     </task>
748
-    <option name="localTasksCounter" value="21" />
713
+    <task id="LOCAL-00021" summary="++ gestion reponsesV5">
714
+      <created>1433258901442</created>
715
+      <option name="number" value="00021" />
716
+      <option name="project" value="LOCAL" />
717
+      <updated>1433258901442</updated>
718
+    </task>
719
+    <option name="localTasksCounter" value="22" />
749 720
     <servers />
750 721
   </component>
751 722
   <component name="TodoView">
@@ -766,24 +737,24 @@
766 737
       <window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
767 738
       <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
768 739
       <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32864675" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
769
-      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32864675" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
770 740
       <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
771 741
       <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3996479" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
772 742
       <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32922536" sideWeight="0.5030441" order="9" side_tool="true" content_ui="tabs" />
773 743
       <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
774
-      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32864675" sideWeight="0.49695587" order="10" side_tool="false" content_ui="tabs" />
744
+      <window_info id="Version Control" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32864675" sideWeight="0.49695587" order="10" side_tool="false" content_ui="tabs" />
775 745
       <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32864675" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
776 746
       <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32922536" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
777 747
       <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
778 748
       <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
779 749
       <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="11" side_tool="false" content_ui="tabs" />
780 750
       <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.16717325" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
781
-      <window_info id="Run" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.30579966" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
751
+      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.30579966" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
782 752
       <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
783 753
       <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
754
+      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32864675" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
784 755
       <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
785
-      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
786 756
       <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
757
+      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
787 758
     </layout>
788 759
   </component>
789 760
   <component name="Vcs.Log.UiProperties">
@@ -830,13 +801,6 @@
830 801
     <option name="FILTER_TARGETS" value="false" />
831 802
   </component>
832 803
   <component name="editorHistoryManager">
833
-    <entry file="file://$PROJECT_DIR$/src/GestionQuestions.java">
834
-      <provider selected="true" editor-type-id="text-editor">
835
-        <state vertical-scroll-proportion="0.0">
836
-          <caret line="5" column="12" selection-start-line="5" selection-start-column="12" selection-end-line="5" selection-end-column="12" />
837
-        </state>
838
-      </provider>
839
-    </entry>
840 804
     <entry file="file://$PROJECT_DIR$/src/MainAdminBddBurgerQuizz.java">
841 805
       <provider selected="true" editor-type-id="text-editor">
842 806
         <state vertical-scroll-proportion="0.0">
@@ -867,9 +831,9 @@
867 831
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
868 832
           <folding>
869 833
             <element signature="imports" expanded="true" />
870
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
871 834
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
872 835
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
836
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
873 837
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
874 838
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
875 839
           </folding>
@@ -906,9 +870,9 @@
906 870
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
907 871
           <folding>
908 872
             <element signature="imports" expanded="true" />
909
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
910 873
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
911 874
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
875
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
912 876
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
913 877
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
914 878
           </folding>
@@ -945,9 +909,9 @@
945 909
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
946 910
           <folding>
947 911
             <element signature="imports" expanded="true" />
948
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
949 912
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
950 913
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
914
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
951 915
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
952 916
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
953 917
           </folding>
@@ -984,9 +948,9 @@
984 948
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
985 949
           <folding>
986 950
             <element signature="imports" expanded="true" />
987
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
988 951
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
989 952
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
953
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
990 954
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
991 955
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
992 956
           </folding>
@@ -1023,9 +987,9 @@
1023 987
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
1024 988
           <folding>
1025 989
             <element signature="imports" expanded="true" />
1026
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1027 990
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1028 991
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
992
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1029 993
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1030 994
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1031 995
           </folding>
@@ -1083,9 +1047,9 @@
1083 1047
           <caret line="0" column="21" selection-start-line="0" selection-start-column="21" selection-end-line="0" selection-end-column="21" />
1084 1048
           <folding>
1085 1049
             <element signature="imports" expanded="true" />
1086
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1087 1050
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1088 1051
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1052
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1089 1053
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1090 1054
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1091 1055
           </folding>
@@ -1156,18 +1120,6 @@
1156 1120
       <provider selected="true" editor-type-id="text-editor">
1157 1121
         <state vertical-scroll-proportion="0.3488806">
1158 1122
           <caret line="13" column="0" selection-start-line="13" selection-start-column="0" selection-end-line="13" selection-end-column="0" />
1159
-          <folding>
1160
-            <element signature="e#223#224#0" expanded="true" />
1161
-            <element signature="e#245#246#0" expanded="true" />
1162
-            <element signature="e#290#291#0" expanded="true" />
1163
-            <element signature="e#321#322#0" expanded="true" />
1164
-            <element signature="e#353#354#0" expanded="true" />
1165
-            <element signature="e#375#376#0" expanded="true" />
1166
-            <element signature="e#420#421#0" expanded="true" />
1167
-            <element signature="e#451#452#0" expanded="true" />
1168
-            <element signature="e#480#481#0" expanded="true" />
1169
-            <element signature="e#539#540#0" expanded="true" />
1170
-          </folding>
1171 1123
         </state>
1172 1124
       </provider>
1173 1125
     </entry>
@@ -1196,45 +1148,34 @@
1196 1148
         </state>
1197 1149
       </provider>
1198 1150
     </entry>
1199
-    <entry file="file://$PROJECT_DIR$/src/ConnexionBDD.java">
1151
+    <entry file="file://$PROJECT_DIR$/src/GestionQuestions.java">
1200 1152
       <provider selected="true" editor-type-id="text-editor">
1201 1153
         <state vertical-scroll-proportion="0.0">
1202
-          <caret line="83" column="30" selection-start-line="83" selection-start-column="30" selection-end-line="83" selection-end-column="30" />
1154
+          <caret line="89" column="36" selection-start-line="89" selection-start-column="36" selection-end-line="89" selection-end-column="36" />
1203 1155
           <folding>
1204 1156
             <element signature="imports" expanded="true" />
1205
-            <element signature="e#1239#1240#0" expanded="true" />
1206
-            <element signature="e#1294#1295#0" expanded="true" />
1207
-            <element signature="e#1349#1350#0" expanded="true" />
1208
-            <element signature="e#1404#1405#0" expanded="true" />
1209
-            <element signature="e#1960#1961#0" expanded="true" />
1210
-            <element signature="e#2017#2018#0" expanded="true" />
1157
+            <element signature="e#2985#2986#0" expanded="true" />
1158
+            <element signature="e#3013#3014#0" expanded="true" />
1211 1159
           </folding>
1212 1160
         </state>
1213 1161
       </provider>
1214 1162
     </entry>
1215
-    <entry file="file://$PROJECT_DIR$/src/GestionQuestions.java">
1163
+    <entry file="file://$PROJECT_DIR$/src/NouvelleReponseDialog.java">
1216 1164
       <provider selected="true" editor-type-id="text-editor">
1217 1165
         <state vertical-scroll-proportion="0.0">
1218
-          <caret line="89" column="36" selection-start-line="89" selection-start-column="36" selection-end-line="89" selection-end-column="36" />
1166
+          <caret line="20" column="28" selection-start-line="20" selection-start-column="28" selection-end-line="20" selection-end-column="28" />
1219 1167
           <folding>
1220 1168
             <element signature="imports" expanded="true" />
1221
-            <element signature="e#2985#2986#0" expanded="true" />
1222
-            <element signature="e#3013#3014#0" expanded="true" />
1223 1169
           </folding>
1224 1170
         </state>
1225 1171
       </provider>
1226 1172
     </entry>
1227
-    <entry file="file://$PROJECT_DIR$/src/InterfacePrincipale.java">
1173
+    <entry file="file://$PROJECT_DIR$/src/ConnexionBDD.java">
1228 1174
       <provider selected="true" editor-type-id="text-editor">
1229 1175
         <state vertical-scroll-proportion="0.0">
1230
-          <caret line="231" column="68" selection-start-line="231" selection-start-column="68" selection-end-line="231" selection-end-column="68" />
1176
+          <caret line="39" column="74" selection-start-line="39" selection-start-column="74" selection-end-line="39" selection-end-column="74" />
1231 1177
           <folding>
1232 1178
             <element signature="imports" expanded="true" />
1233
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1234
-            <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1235
-            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1236
-            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1237
-            <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1238 1179
           </folding>
1239 1180
         </state>
1240 1181
       </provider>
@@ -1242,7 +1183,7 @@
1242 1183
     <entry file="file://$PROJECT_DIR$/src/NouvelleQuestionDialog.java">
1243 1184
       <provider selected="true" editor-type-id="text-editor">
1244 1185
         <state vertical-scroll-proportion="0.0">
1245
-          <caret line="19" column="8" selection-start-line="19" selection-start-column="8" selection-end-line="19" selection-end-column="28" />
1186
+          <caret line="53" column="58" selection-start-line="53" selection-start-column="58" selection-end-line="53" selection-end-column="58" />
1246 1187
           <folding>
1247 1188
             <element signature="imports" expanded="true" />
1248 1189
             <element signature="e#1976#1977#0" expanded="true" />
@@ -1253,12 +1194,27 @@
1253 1194
         </state>
1254 1195
       </provider>
1255 1196
     </entry>
1256
-    <entry file="file://$PROJECT_DIR$/src/NouvelleReponseDialog.java">
1197
+    <entry file="file://$PROJECT_DIR$/src/ConnexionBddDialog.java">
1257 1198
       <provider selected="true" editor-type-id="text-editor">
1258
-        <state vertical-scroll-proportion="0.5635359">
1259
-          <caret line="20" column="28" selection-start-line="20" selection-start-column="28" selection-end-line="20" selection-end-column="28" />
1199
+        <state vertical-scroll-proportion="0.0">
1200
+          <caret line="74" column="24" selection-start-line="74" selection-start-column="24" selection-end-line="74" selection-end-column="24" />
1201
+          <folding>
1202
+            <element signature="imports" expanded="true" />
1203
+          </folding>
1204
+        </state>
1205
+      </provider>
1206
+    </entry>
1207
+    <entry file="file://$PROJECT_DIR$/src/InterfacePrincipale.java">
1208
+      <provider selected="true" editor-type-id="text-editor">
1209
+        <state vertical-scroll-proportion="0.28544775">
1210
+          <caret line="51" column="32" selection-start-line="51" selection-start-column="32" selection-end-line="51" selection-end-column="32" />
1260 1211
           <folding>
1261 1212
             <element signature="imports" expanded="true" />
1213
+            <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1214
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1215
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1216
+            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1217
+            <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1262 1218
           </folding>
1263 1219
         </state>
1264 1220
       </provider>

BIN
java/out/production/java/GestionReponses.class Vedi File


BIN
java/rsc/edit.png Vedi File


+ 77
- 0
java/src/ConnexionBddDialog.java Vedi File

@@ -0,0 +1,77 @@
1
+import javax.swing.*;
2
+import java.awt.*;
3
+import java.awt.event.ActionEvent;
4
+import java.awt.event.ActionListener;
5
+import java.text.NumberFormat;
6
+
7
+import static javax.swing.BoxLayout.Y_AXIS;
8
+
9
+public class ConnexionBddDialog extends JDialog implements ActionListener
10
+{
11
+	private JTextField nomBdd;
12
+	private JFormattedTextField port;
13
+	private JTextField ip;
14
+	private JTextField login;
15
+	private JPasswordField password;
16
+	private JButton ok;
17
+	private JButton annuler;
18
+	private JButton defParams;
19
+	private boolean modifEffectuees;
20
+
21
+	public ConnexionBddDialog(String nomBdd, int port, String ip, String login, String password, Dialog owner)
22
+	{
23
+		super(owner, "Paramétres BDD", true);
24
+		createInterface(nomBdd, port, ip, login, password);
25
+		pack();
26
+		setLocationRelativeTo(null);
27
+		setResizable(false);
28
+	}
29
+
30
+	private void createInterface(String defNomBdd, int defPort, String defIP, String defLogin, String defPassword)
31
+	{
32
+		nomBdd = new JTextField(defNomBdd, 40);
33
+		port = new JFormattedTextField(NumberFormat.getInstance());
34
+		port.setValue(defPort);
35
+		ip = new JTextField(defIP, 40);
36
+		login = new JTextField(defLogin, 40);
37
+		password = new JPasswordField(defPassword, 40);
38
+
39
+		ok = new JButton("OK");
40
+		annuler = new JButton("Annuler");
41
+		defParams = new JButton("Paramétres de connexion par défault");
42
+
43
+		JPanel fieldPanel = new JPanel();
44
+		JPanel boutons = new JPanel();
45
+		fieldPanel.setLayout(new GridLayout(5, 2));
46
+
47
+		fieldPanel.add(new JLabel("Nom de la base de données:"));
48
+		fieldPanel.add(nomBdd);
49
+		fieldPanel.add(new JLabel("Numéro de port:"));
50
+		fieldPanel.add(port);
51
+		fieldPanel.add(new JLabel("Adresse IP du serveur:"));
52
+		fieldPanel.add(ip);
53
+		fieldPanel.add(new JLabel("Login utilisateur:"));
54
+		fieldPanel.add(login);
55
+		fieldPanel.add(new JLabel("Mot de passe utilisateur:"));
56
+		fieldPanel.add(password);
57
+
58
+		boutons.add(annuler);
59
+		boutons.add(defParams);
60
+		boutons.add(ok);
61
+
62
+		getContentPane().add(fieldPanel, BorderLayout.CENTER);
63
+		getContentPane().add(boutons, BorderLayout.SOUTH);
64
+	}
65
+
66
+	public boolean afficher()
67
+	{
68
+		setVisible(true);
69
+		return modifEffectuees;
70
+	}
71
+
72
+	public void actionPerformed(ActionEvent actionEvent)
73
+	{
74
+		modifEffectuees = false;
75
+		setVisible(false);
76
+	}
77
+}

+ 3
- 0
java/src/InterfacePrincipale.java Vedi File

@@ -38,6 +38,7 @@ public class InterfacePrincipale extends JFrame
38 38
 	private ImageIcon plusImg;
39 39
 	private ImageIcon delImg;
40 40
 	private ImageIcon editImg;
41
+	private ImageIcon setupImg;
41 42
 
42 43
 	//barre de statut
43 44
 	private JPanel statusBar;
@@ -48,6 +49,7 @@ public class InterfacePrincipale extends JFrame
48 49
 
49 50
 	public InterfacePrincipale()
50 51
 	{
52
+		ConnexionBddDialog cbddd = new ConnexionBddDialog("efr",85,"42:42:42:42","eflgr","fmr,grgerge",null);
51 53
 		bdd = new ConnexionBDD("burgerquizz", 3306, "localhost", "alain", "chabat");
52 54
 
53 55
 		setTitle("Administration base de données de l'aplication BurgerQuizz");
@@ -96,6 +98,7 @@ public class InterfacePrincipale extends JFrame
96 98
 		plusImg = new ImageIcon("rsc/plus.png");
97 99
 		delImg = new ImageIcon("rsc/del.png");
98 100
 		editImg = new ImageIcon("rsc/edit.png");
101
+		setupImg = new ImageIcon("rsc/cle.png");
99 102
 	}
100 103
 
101 104
 	private void createStatusBar()