interface.ui 21.9 KB
Newer Older
1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MainWindow</class>
 <widget class="QMainWindow" name="MainWindow">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
9
10
    <width>1101</width>
    <height>706</height>
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
   </rect>
  </property>
  <property name="windowTitle">
   <string>MainWindow</string>
  </property>
  <widget class="QWidget" name="centralwidget">
   <property name="sizePolicy">
    <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
     <horstretch>0</horstretch>
     <verstretch>0</verstretch>
    </sizepolicy>
   </property>
   <layout class="QGridLayout" name="gridLayout">
    <item row="0" column="0">
     <layout class="QHBoxLayout" name="horizontalLayout">
      <item>
       <layout class="QVBoxLayout" name="simulationLayout" stretch="0,0">
        <item>
         <widget class="QWidget" name="grid" native="true">
          <property name="enabled">
           <bool>true</bool>
          </property>
          <property name="minimumSize">
           <size>
            <width>100</width>
            <height>100</height>
           </size>
          </property>
          <layout class="QGridLayout" name="gridLayout_2">
           <item row="0" column="0">
41
            <widget class="GridView" name="grid_view">
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
             <property name="frameShape">
              <enum>QFrame::StyledPanel</enum>
             </property>
             <property name="frameShadow">
              <enum>QFrame::Raised</enum>
             </property>
            </widget>
           </item>
          </layout>
         </widget>
        </item>
        <item>
         <widget class="QGroupBox" name="groupBox">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="layoutDirection">
           <enum>Qt::LeftToRight</enum>
          </property>
          <property name="title">
           <string>Simulation</string>
          </property>
          <layout class="QHBoxLayout" name="horizontalLayout_4" stretch="0,0,0,0">
           <property name="sizeConstraint">
            <enum>QLayout::SetDefaultConstraint</enum>
           </property>
           <property name="bottomMargin">
            <number>9</number>
           </property>
           <item>
            <layout class="QVBoxLayout" name="playPauseLayout_5">
             <item>
              <widget class="QPushButton" name="playPauseButton">
               <property name="text">
                <string>Play/Pause</string>
               </property>
              </widget>
             </item>
             <item>
              <widget class="QPushButton" name="resetButton">
               <property name="text">
                <string>Reset</string>
               </property>
              </widget>
             </item>
            </layout>
           </item>
           <item>
            <layout class="QVBoxLayout" name="simSpeedLayout_3">
             <item>
              <layout class="QHBoxLayout" name="simSpeedLabLayout_2">
               <item>
                <widget class="QLabel" name="simSpeedLabel">
                 <property name="text">
                  <string>Simulation speed :</string>
                 </property>
101
102
103
                 <property name="buddy">
                  <cstring>simSpeedSlider</cstring>
                 </property>
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
                </widget>
               </item>
               <item>
                <widget class="QCheckBox" name="stepByStepCheckBox">
                 <property name="text">
                  <string>Step by step mode</string>
                 </property>
                </widget>
               </item>
              </layout>
             </item>
             <item>
              <layout class="QHBoxLayout" name="sliderLayout_6">
               <item>
                <widget class="QSlider" name="simSpeedSlider">
                 <property name="sizePolicy">
                  <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
                   <horstretch>0</horstretch>
                   <verstretch>0</verstretch>
                  </sizepolicy>
                 </property>
                 <property name="orientation">
                  <enum>Qt::Horizontal</enum>
                 </property>
                </widget>
               </item>
               <item>
                <widget class="QSpinBox" name="simSpeedSpinbox"/>
               </item>
              </layout>
             </item>
            </layout>
           </item>
           <item>
            <layout class="QVBoxLayout" name="nextPrevLayout_6" stretch="0,0">
             <property name="spacing">
              <number>6</number>
             </property>
             <item>
              <widget class="QPushButton" name="nextButton">
               <property name="text">
                <string>Next step</string>
               </property>
              </widget>
             </item>
             <item>
              <widget class="QPushButton" name="prevButton">
               <property name="text">
                <string>Prev step</string>
               </property>
              </widget>
             </item>
            </layout>
           </item>
           <item>
            <layout class="QVBoxLayout" name="periodRecordLayout_7">
             <item>
              <layout class="QHBoxLayout" name="periodLayout_5">
               <item>
                <widget class="QLabel" name="periodLabel">
                 <property name="text">
                  <string>Period : </string>
                 </property>
                 <property name="alignment">
                  <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
                 </property>
                </widget>
               </item>
               <item>
                <widget class="QLabel" name="stepsPeriodLabel">
                 <property name="text">
                  <string>0 steps</string>
                 </property>
                </widget>
               </item>
              </layout>
             </item>
             <item>
              <layout class="QHBoxLayout" name="recordLayout_3">
               <item>
                <widget class="QLabel" name="recordLabel">
                 <property name="text">
                  <string>Number of previous 
pattern recorded :</string>
                 </property>
189
190
191
                 <property name="buddy">
                  <cstring>recordLineEdit</cstring>
                 </property>
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
                </widget>
               </item>
               <item>
                <widget class="QLineEdit" name="recordLineEdit">
                 <property name="sizePolicy">
                  <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
                   <horstretch>0</horstretch>
                   <verstretch>0</verstretch>
                  </sizepolicy>
                 </property>
                 <property name="minimumSize">
                  <size>
                   <width>0</width>
                   <height>0</height>
                  </size>
                 </property>
                 <property name="maximumSize">
                  <size>
                   <width>40</width>
                   <height>16777215</height>
                  </size>
                 </property>
                 <property name="text">
                  <string>50</string>
                 </property>
                 <property name="maxLength">
                  <number>10</number>
                 </property>
                </widget>
               </item>
              </layout>
             </item>
            </layout>
           </item>
          </layout>
         </widget>
        </item>
       </layout>
      </item>
      <item>
232
233
234
235
236
237
238
239
       <widget class="QTabWidget" name="tabWidget">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
        <property name="currentIndex">
240
         <number>0</number>
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
        </property>
        <widget class="QWidget" name="tab">
         <attribute name="title">
          <string>Automaton</string>
         </attribute>
         <layout class="QVBoxLayout" name="verticalLayout">
          <item>
           <layout class="QVBoxLayout" name="settingsLayout">
            <item>
             <widget class="QGroupBox" name="gridPatternGroupBox">
              <property name="sizePolicy">
               <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
              <property name="title">
               <string>Grid and patterns</string>
              </property>
              <layout class="QVBoxLayout" name="verticalLayout_3">
261
               <item>
262
263
264
265
266
267
268
                <widget class="QLabel" name="gridDimLabel">
                 <property name="sizePolicy">
                  <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
                   <horstretch>0</horstretch>
                   <verstretch>0</verstretch>
                  </sizepolicy>
                 </property>
269
                 <property name="text">
270
                  <string>Grid dimension</string>
271
272
273
274
                 </property>
                </widget>
               </item>
               <item>
275
276
277
278
279
280
                <layout class="QFormLayout" name="gridDimLayout">
                 <item row="0" column="0">
                  <widget class="QLabel" name="widthLabel">
                   <property name="text">
                    <string>Width :</string>
                   </property>
281
282
283
                   <property name="buddy">
                    <cstring>widthSpinBox</cstring>
                   </property>
284
                  </widget>
285
                 </item>
286
287
288
289
290
291
292
293
294
295
296
297
298
                 <item row="0" column="1">
                  <widget class="QSpinBox" name="widthSpinBox">
                   <property name="minimum">
                    <number>1</number>
                   </property>
                   <property name="maximum">
                    <number>9999</number>
                   </property>
                   <property name="value">
                    <number>10</number>
                   </property>
                  </widget>
                 </item>
299
300
301
302
303
                 <item row="1" column="0">
                  <widget class="QLabel" name="heightLabel">
                   <property name="text">
                    <string>Height :</string>
                   </property>
304
305
306
                   <property name="buddy">
                    <cstring>heightSpinBox</cstring>
                   </property>
307
                  </widget>
308
                 </item>
309
310
311
312
313
314
315
316
317
318
319
320
321
                 <item row="1" column="1">
                  <widget class="QSpinBox" name="heightSpinBox">
                   <property name="minimum">
                    <number>1</number>
                   </property>
                   <property name="maximum">
                    <number>9999</number>
                   </property>
                   <property name="value">
                    <number>10</number>
                   </property>
                  </widget>
                 </item>
322
323
324
325
                 <item row="2" column="1">
                  <widget class="QPushButton" name="validateGridDim">
                   <property name="enabled">
                    <bool>false</bool>
326
                   </property>
327
328
                   <property name="text">
                    <string>OK</string>
329
330
331
332
                   </property>
                  </widget>
                 </item>
                </layout>
333
334
               </item>
               <item>
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
                <layout class="QGridLayout" name="patternSettingsLayout">
                 <item row="0" column="0">
                  <widget class="QPushButton" name="randomPatternButton">
                   <property name="text">
                    <string>Random starting pattern</string>
                   </property>
                  </widget>
                 </item>
                 <item row="1" column="1">
                  <widget class="QPushButton" name="savePatternButton">
                   <property name="text">
                    <string>Save current pattern</string>
                   </property>
                  </widget>
                 </item>
                 <item row="0" column="1">
                  <widget class="QPushButton" name="openPatternButton">
                   <property name="text">
                    <string>(file) Open pattern</string>
                   </property>
                  </widget>
                 </item>
                 <item row="1" column="0">
                  <layout class="QHBoxLayout" name="drawCellLayout">
                   <item>
                    <widget class="QPushButton" name="drawCellButton">
                     <property name="text">
                      <string>Draw cell</string>
                     </property>
                    </widget>
                   </item>
                   <item>
                    <widget class="QComboBox" name="nbrStateComboBox">
                     <item>
                      <property name="text">
                       <string>0</string>
                      </property>
                     </item>
                     <item>
                      <property name="text">
                       <string>1</string>
                      </property>
                     </item>
                    </widget>
                   </item>
                  </layout>
                 </item>
                </layout>
383
               </item>
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
              </layout>
             </widget>
            </item>
            <item>
             <widget class="QGroupBox" name="rulesGroupBox">
              <property name="sizePolicy">
               <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
              <property name="title">
               <string>Rules</string>
              </property>
              <layout class="QVBoxLayout" name="verticalLayout_4">
399
               <item>
400
401
402
403
404
                <widget class="QPushButton" name="openRuleButton">
                 <property name="text">
                  <string>(file) Open rule</string>
                 </property>
                </widget>
405
406
               </item>
               <item>
407
408
409
410
411
412
                <layout class="QGridLayout" name="statesNeighborhoodLayout_3">
                 <item row="1" column="0">
                  <widget class="QLabel" name="neighborhoodLabel">
                   <property name="text">
                    <string>Neighborhood :</string>
                   </property>
413
                   <property name="buddy">
414
                    <cstring>neighborhood_list</cstring>
415
                   </property>
416
417
418
                  </widget>
                 </item>
                 <item row="1" column="1">
419
                  <widget class="QComboBox" name="neighborhood_list">
420
                   <property name="currentIndex">
421
                    <number>-1</number>
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
                   </property>
                  </widget>
                 </item>
                 <item row="0" column="2">
                  <widget class="QPushButton" name="statesSettingsButton">
                   <property name="text">
                    <string>States settings (color...)</string>
                   </property>
                  </widget>
                 </item>
                 <item row="1" column="2">
                  <widget class="QPushButton" name="cusumNeighborhoodButton">
                   <property name="enabled">
                    <bool>false</bool>
                   </property>
                   <property name="text">
                    <string>Custom neighborhood</string>
                   </property>
                  </widget>
                 </item>
                 <item row="0" column="1">
                  <widget class="QComboBox" name="nbrStatesComboBox">
                   <item>
                    <property name="text">
                     <string>2</string>
                    </property>
                   </item>
                   <item>
                    <property name="text">
                     <string>3</string>
                    </property>
                   </item>
                   <item>
                    <property name="text">
                     <string>4</string>
                    </property>
                   </item>
                   <item>
                    <property name="text">
                     <string>5</string>
                    </property>
                   </item>
                   <item>
                    <property name="text">
                     <string>6</string>
                    </property>
                   </item>
                   <item>
                    <property name="text">
                     <string>7</string>
                    </property>
                   </item>
                   <item>
                    <property name="text">
                     <string>8</string>
                    </property>
                   </item>
                  </widget>
                 </item>
                 <item row="0" column="0">
                  <widget class="QLabel" name="nbrStatesLabel">
                   <property name="text">
                    <string>Number of states :</string>
                   </property>
486
487
488
                   <property name="buddy">
                    <cstring>nbrStatesComboBox</cstring>
                   </property>
489
490
491
492
493
494
495
                  </widget>
                 </item>
                 <item row="2" column="1">
                  <widget class="QLabel" name="radiusLabel">
                   <property name="text">
                    <string>Radius r :</string>
                   </property>
496
497
498
                   <property name="buddy">
                    <cstring>radiusSpinBox</cstring>
                   </property>
499
500
501
502
503
504
505
506
507
508
                  </widget>
                 </item>
                 <item row="2" column="2">
                  <widget class="QSpinBox" name="radiusSpinBox">
                   <property name="minimum">
                    <number>1</number>
                   </property>
                  </widget>
                 </item>
                </layout>
509
510
               </item>
               <item>
511
512
513
514
515
516
517
518
519
520
521
522
                <layout class="QHBoxLayout" name="horizontalLayout_2">
                 <item>
                  <widget class="QLabel" name="transitionFunctionLabel">
                   <property name="text">
                    <string>Transition function :</string>
                   </property>
                  </widget>
                 </item>
                 <item>
                  <widget class="QComboBox" name="transition_list"/>
                 </item>
                </layout>
523
524
               </item>
               <item>
525
526
527
528
529
                <widget class="QGroupBox" name="rule_settings_area">
                 <property name="title">
                  <string>Transition rule settings</string>
                 </property>
                </widget>
530
531
               </item>
               <item>
532
533
534
535
536
                <widget class="QLabel" name="informationLabel">
                 <property name="text">
                  <string>New rule must be saved before running simulation</string>
                 </property>
                </widget>
537
538
               </item>
               <item>
539
540
541
542
543
                <widget class="QPushButton" name="saveRuleButton">
                 <property name="text">
                  <string>Save rule</string>
                 </property>
                </widget>
544
               </item>
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
              </layout>
             </widget>
            </item>
           </layout>
          </item>
         </layout>
        </widget>
        <widget class="QWidget" name="tab_2">
         <attribute name="title">
          <string>Structures</string>
         </attribute>
         <layout class="QVBoxLayout" name="verticalLayout_2">
          <item>
           <widget class="StructureLibraryView" name="struct_library">
            <property name="frameShape">
             <enum>QFrame::StyledPanel</enum>
            </property>
            <property name="frameShadow">
             <enum>QFrame::Raised</enum>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </widget>
570
571
572
573
574
575
576
577
578
579
      </item>
     </layout>
    </item>
   </layout>
  </widget>
  <widget class="QMenuBar" name="menubar">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
580
581
     <width>1101</width>
     <height>25</height>
582
583
    </rect>
   </property>
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
   <widget class="QMenu" name="menuFichier">
    <property name="title">
     <string>Fichier</string>
    </property>
   </widget>
   <widget class="QMenu" name="menuEditer">
    <property name="title">
     <string>Éditer</string>
    </property>
    <addaction name="action_save_struct"/>
   </widget>
   <widget class="QMenu" name="menuA_propos">
    <property name="title">
     <string>À propos</string>
    </property>
   </widget>
   <addaction name="menuFichier"/>
   <addaction name="menuEditer"/>
   <addaction name="menuA_propos"/>
603
604
  </widget>
  <widget class="QStatusBar" name="statusbar"/>
605
606
607
608
609
610
611
612
  <action name="action_save_struct">
   <property name="text">
    <string>Sauvegarder la sélection</string>
   </property>
   <property name="shortcut">
    <string>Ctrl+Shift+S</string>
   </property>
  </action>
613
614
615
616
617
618
619
620
 </widget>
 <customwidgets>
  <customwidget>
   <class>GridView</class>
   <extends>QFrame</extends>
   <header>gridview.hpp</header>
   <container>1</container>
  </customwidget>
621
622
623
624
625
626
  <customwidget>
   <class>StructureLibraryView</class>
   <extends>QFrame</extends>
   <header>structurelibraryview.hpp</header>
   <container>1</container>
  </customwidget>
627
628
629
630
 </customwidgets>
 <resources/>
 <connections/>
</ui>