interface.ui 23.7 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>
Anthony Noir's avatar
Anthony Noir committed
9
    <width>1068</width>
10
    <height>771</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
             <property name="frameShape">
              <enum>QFrame::StyledPanel</enum>
             </property>
             <property name="frameShadow">
              <enum>QFrame::Raised</enum>
             </property>
            </widget>
           </item>
          </layout>
         </widget>
        </item>
        <item>
54
         <widget class="QGroupBox" name="simulation_tab">
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="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
                </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>
Anthony Noir's avatar
Anthony Noir committed
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
             <item>
              <layout class="QHBoxLayout" name="stepsLayout_2">
               <item>
                <widget class="QLabel" name="stepsLabel">
                 <property name="text">
                  <string>steps :</string>
                 </property>
                </widget>
               </item>
               <item>
                <widget class="QLabel" name="nbStepsLabel">
                 <property name="text">
                  <string>0 steps</string>
                 </property>
                </widget>
               </item>
              </layout>
             </item>
192
193
194
195
196
197
198
199
200
201
202
             <item>
              <layout class="QHBoxLayout" name="recordLayout_3">
               <item>
                <widget class="QLabel" name="recordLabel">
                 <property name="text">
                  <string>Number of previous 
pattern recorded :</string>
                 </property>
                </widget>
               </item>
               <item>
Anthony Noir's avatar
Anthony Noir committed
203
204
205
                <widget class="QSpinBox" name="recordSpinBox">
                 <property name="minimum">
                  <number>0</number>
206
                 </property>
Anthony Noir's avatar
Anthony Noir committed
207
208
                 <property name="maximum">
                  <number>100</number>
209
                 </property>
Anthony Noir's avatar
Anthony Noir committed
210
                 <property name="value">
211
212
213
214
215
216
217
218
219
220
221
222
223
224
                  <number>10</number>
                 </property>
                </widget>
               </item>
              </layout>
             </item>
            </layout>
           </item>
          </layout>
         </widget>
        </item>
       </layout>
      </item>
      <item>
225
226
227
228
229
230
231
232
       <widget class="QTabWidget" name="tabWidget">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
        <property name="currentIndex">
233
         <number>0</number>
234
235
236
237
238
239
240
241
242
243
244
        </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">
245
               <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
246
247
248
249
250
251
252
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
              <property name="title">
               <string>Grid and patterns</string>
              </property>
253
254
255
256
257
258
              <property name="alignment">
               <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
              </property>
              <property name="flat">
               <bool>false</bool>
              </property>
259
              <layout class="QVBoxLayout" name="verticalLayout_3">
260
               <item>
261
262
                <widget class="QLabel" name="gridDimLabel">
                 <property name="sizePolicy">
263
                  <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
264
265
266
267
                   <horstretch>0</horstretch>
                   <verstretch>0</verstretch>
                  </sizepolicy>
                 </property>
268
                 <property name="text">
269
                  <string>Grid dimension</string>
270
271
272
273
                 </property>
                </widget>
               </item>
               <item>
274
275
276
277
278
279
                <layout class="QFormLayout" name="gridDimLayout">
                 <item row="0" column="0">
                  <widget class="QLabel" name="widthLabel">
                   <property name="text">
                    <string>Width :</string>
                   </property>
280
281
282
                   <property name="buddy">
                    <cstring>widthSpinBox</cstring>
                   </property>
283
                  </widget>
284
                 </item>
285
286
287
288
289
290
                 <item row="0" column="1">
                  <widget class="QSpinBox" name="widthSpinBox">
                   <property name="minimum">
                    <number>1</number>
                   </property>
                   <property name="maximum">
291
                    <number>1000</number>
292
293
294
295
296
297
                   </property>
                   <property name="value">
                    <number>10</number>
                   </property>
                  </widget>
                 </item>
298
299
300
301
302
                 <item row="1" column="0">
                  <widget class="QLabel" name="heightLabel">
                   <property name="text">
                    <string>Height :</string>
                   </property>
303
304
305
                   <property name="buddy">
                    <cstring>heightSpinBox</cstring>
                   </property>
306
                  </widget>
307
                 </item>
308
309
310
311
312
313
                 <item row="1" column="1">
                  <widget class="QSpinBox" name="heightSpinBox">
                   <property name="minimum">
                    <number>1</number>
                   </property>
                   <property name="maximum">
314
                    <number>1000</number>
315
316
317
318
319
320
                   </property>
                   <property name="value">
                    <number>10</number>
                   </property>
                  </widget>
                 </item>
321
322
323
324
                 <item row="2" column="1">
                  <widget class="QPushButton" name="validateGridDim">
                   <property name="enabled">
                    <bool>false</bool>
325
                   </property>
326
327
                   <property name="text">
                    <string>OK</string>
328
329
330
331
                   </property>
                  </widget>
                 </item>
                </layout>
332
333
               </item>
               <item>
334
335
336
337
338
339
340
341
342
343
344
                <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">
345
                    <string>Save configuration</string>
346
347
348
349
350
351
                   </property>
                  </widget>
                 </item>
                 <item row="0" column="1">
                  <widget class="QPushButton" name="openPatternButton">
                   <property name="text">
352
                    <string>Open configuration</string>
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
                   </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>
382
               </item>
383
384
385
386
387
388
              </layout>
             </widget>
            </item>
            <item>
             <widget class="QGroupBox" name="rulesGroupBox">
              <property name="sizePolicy">
389
               <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
390
391
392
393
394
395
396
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
              <property name="title">
               <string>Rules</string>
              </property>
397
              <layout class="QGridLayout" name="gridLayout_3">
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
               <item row="0" column="0" colspan="3">
                <widget class="QPushButton" name="openRuleButton">
                 <property name="text">
                  <string>Load rule</string>
                 </property>
                </widget>
               </item>
               <item row="1" column="0" colspan="2">
                <layout class="QFormLayout" name="formLayout_2">
                 <property name="labelAlignment">
                  <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
                 </property>
                 <property name="formAlignment">
                  <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
                 </property>
                 <item row="0" column="0">
                  <widget class="QLabel" name="label">
                   <property name="text">
                    <string>Name : </string>
                   </property>
                  </widget>
                 </item>
                 <item row="0" column="1">
                  <widget class="QLabel" name="rule_name">
                   <property name="text">
                    <string>RuleName</string>
                   </property>
                  </widget>
                 </item>
                </layout>
               </item>
               <item row="1" column="2">
                <widget class="QPushButton" name="customize_button">
                 <property name="text">
                  <string>Customize...</string>
                 </property>
                </widget>
               </item>
436
437
438
               <item row="4" column="0" colspan="3">
                <widget class="QGroupBox" name="rule_settings">
                 <property name="enabled">
439
                  <bool>true</bool>
440
                 </property>
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
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
                 <property name="title">
                  <string>Settings</string>
                 </property>
                 <layout class="QFormLayout" name="formLayout">
                  <item row="0" column="0" colspan="2">
                   <layout class="QGridLayout" name="statesNeighborhoodLayout_3">
                    <item row="0" column="2">
                     <widget class="QPushButton" name="statesSettingsButton">
                      <property name="text">
                       <string>States settings (color...)</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>
                      <property name="buddy">
                       <cstring>nbrStatesComboBox</cstring>
                      </property>
                     </widget>
                    </item>
                   </layout>
                  </item>
505
506
507
508
509
510
511
512
513
514
                  <item row="2" column="0">
                   <widget class="QLabel" name="neighborhoodLabel">
                    <property name="text">
                     <string>Neighborhood :</string>
                    </property>
                    <property name="buddy">
                     <cstring>neighborhood_list</cstring>
                    </property>
                   </widget>
                  </item>
515
                  <item row="2" column="1">
516
517
518
519
520
521
522
                   <widget class="QComboBox" name="neighborhood_list">
                    <property name="currentIndex">
                     <number>-1</number>
                    </property>
                   </widget>
                  </item>
                  <item row="5" column="1">
523
524
                   <widget class="QComboBox" name="transition_list"/>
                  </item>
525
                  <item row="6" column="0" colspan="2">
526
527
528
                   <widget class="QGroupBox" name="rule_settings_area">
                    <property name="title">
                     <string>Transition rule settings</string>
529
                    </property>
530
531
                   </widget>
                  </item>
532
                  <item row="7" column="0" colspan="2">
533
                   <widget class="QLabel" name="informationLabel">
534
                    <property name="text">
535
                     <string>New rule must be saved before running simulation</string>
536
                    </property>
537
538
                   </widget>
                  </item>
539
                  <item row="8" column="0" colspan="2">
540
                   <widget class="QPushButton" name="saveRuleButton">
541
                    <property name="text">
542
                     <string>Save rule</string>
543
                    </property>
544
545
                   </widget>
                  </item>
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
                  <item row="5" column="0">
                   <widget class="QLabel" name="transitionFunctionLabel">
                    <property name="text">
                     <string>Transition function :</string>
                    </property>
                   </widget>
                  </item>
                  <item row="4" column="0" colspan="2">
                   <widget class="QGroupBox" name="neighborhood_settings_area">
                    <property name="enabled">
                     <bool>true</bool>
                    </property>
                    <property name="title">
                     <string>Neighborhood settings</string>
                    </property>
                   </widget>
                  </item>
563
564
565
                 </layout>
                </widget>
               </item>
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
              </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>
591
592
593
594
595
596
597
598
599
600
      </item>
     </layout>
    </item>
   </layout>
  </widget>
  <widget class="QMenuBar" name="menubar">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
Anthony Noir's avatar
Anthony Noir committed
601
602
     <width>1068</width>
     <height>26</height>
603
604
    </rect>
   </property>
605
606
607
608
609
610
611
612
613
   <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>
614
    <addaction name="actionCharger_depuis_une_image"/>
615
616
617
618
619
620
    <addaction name="action_save_struct"/>
   </widget>
   <widget class="QMenu" name="menuA_propos">
    <property name="title">
     <string>À propos</string>
    </property>
621
622
    <addaction name="action_propos_de_Cellulut"/>
    <addaction name="action_propos_de_Qt"/>
623
624
625
626
   </widget>
   <addaction name="menuFichier"/>
   <addaction name="menuEditer"/>
   <addaction name="menuA_propos"/>
627
628
  </widget>
  <widget class="QStatusBar" name="statusbar"/>
629
630
631
632
633
634
635
636
  <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>
637
638
639
640
641
642
643
644
645
646
  <action name="action_propos_de_Cellulut">
   <property name="text">
    <string>À propos de Cellulut</string>
   </property>
  </action>
  <action name="action_propos_de_Qt">
   <property name="text">
    <string>À propos de Qt</string>
   </property>
  </action>
647
648
649
650
651
  <action name="actionCharger_depuis_une_image">
   <property name="text">
    <string>Charger depuis une image...</string>
   </property>
  </action>
652
653
654
655
656
657
658
659
 </widget>
 <customwidgets>
  <customwidget>
   <class>GridView</class>
   <extends>QFrame</extends>
   <header>gridview.hpp</header>
   <container>1</container>
  </customwidget>
660
661
662
663
664
665
  <customwidget>
   <class>StructureLibraryView</class>
   <extends>QFrame</extends>
   <header>structurelibraryview.hpp</header>
   <container>1</container>
  </customwidget>
666
667
668
669
 </customwidgets>
 <resources/>
 <connections/>
</ui>