interface.ui 24 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>1056</width>
    <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
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
        </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">
252
               <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
253
254
255
256
257
258
259
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
              <property name="title">
               <string>Grid and patterns</string>
              </property>
260
261
262
263
264
265
              <property name="alignment">
               <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
              </property>
              <property name="flat">
               <bool>false</bool>
              </property>
266
              <layout class="QVBoxLayout" name="verticalLayout_3">
267
               <item>
268
269
                <widget class="QLabel" name="gridDimLabel">
                 <property name="sizePolicy">
270
                  <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
271
272
273
274
                   <horstretch>0</horstretch>
                   <verstretch>0</verstretch>
                  </sizepolicy>
                 </property>
275
                 <property name="text">
276
                  <string>Grid dimension</string>
277
278
279
280
                 </property>
                </widget>
               </item>
               <item>
281
282
283
284
285
286
                <layout class="QFormLayout" name="gridDimLayout">
                 <item row="0" column="0">
                  <widget class="QLabel" name="widthLabel">
                   <property name="text">
                    <string>Width :</string>
                   </property>
287
288
289
                   <property name="buddy">
                    <cstring>widthSpinBox</cstring>
                   </property>
290
                  </widget>
291
                 </item>
292
293
294
295
296
297
                 <item row="0" column="1">
                  <widget class="QSpinBox" name="widthSpinBox">
                   <property name="minimum">
                    <number>1</number>
                   </property>
                   <property name="maximum">
298
                    <number>1000</number>
299
300
301
302
303
304
                   </property>
                   <property name="value">
                    <number>10</number>
                   </property>
                  </widget>
                 </item>
305
306
307
308
309
                 <item row="1" column="0">
                  <widget class="QLabel" name="heightLabel">
                   <property name="text">
                    <string>Height :</string>
                   </property>
310
311
312
                   <property name="buddy">
                    <cstring>heightSpinBox</cstring>
                   </property>
313
                  </widget>
314
                 </item>
315
316
317
318
319
320
                 <item row="1" column="1">
                  <widget class="QSpinBox" name="heightSpinBox">
                   <property name="minimum">
                    <number>1</number>
                   </property>
                   <property name="maximum">
321
                    <number>1000</number>
322
323
324
325
326
327
                   </property>
                   <property name="value">
                    <number>10</number>
                   </property>
                  </widget>
                 </item>
328
329
330
331
                 <item row="2" column="1">
                  <widget class="QPushButton" name="validateGridDim">
                   <property name="enabled">
                    <bool>false</bool>
332
                   </property>
333
334
                   <property name="text">
                    <string>OK</string>
335
336
337
338
                   </property>
                  </widget>
                 </item>
                </layout>
339
340
               </item>
               <item>
341
342
343
344
345
346
347
348
349
350
351
                <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">
352
                    <string>Save configuration</string>
353
354
355
356
357
358
                   </property>
                  </widget>
                 </item>
                 <item row="0" column="1">
                  <widget class="QPushButton" name="openPatternButton">
                   <property name="text">
359
                    <string>Open configuration</string>
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
                   </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>
389
               </item>
390
391
392
393
394
395
              </layout>
             </widget>
            </item>
            <item>
             <widget class="QGroupBox" name="rulesGroupBox">
              <property name="sizePolicy">
396
               <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
397
398
399
400
401
402
403
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
              <property name="title">
               <string>Rules</string>
              </property>
404
              <layout class="QGridLayout" name="gridLayout_3">
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
436
437
438
439
440
441
442
               <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>
443
444
445
               <item row="4" column="0" colspan="3">
                <widget class="QGroupBox" name="rule_settings">
                 <property name="enabled">
446
                  <bool>true</bool>
447
                 </property>
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
505
506
507
508
509
510
511
                 <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>
512
513
514
515
516
517
518
519
520
521
                  <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>
522
                  <item row="2" column="1">
523
524
525
526
527
528
529
                   <widget class="QComboBox" name="neighborhood_list">
                    <property name="currentIndex">
                     <number>-1</number>
                    </property>
                   </widget>
                  </item>
                  <item row="5" column="1">
530
531
                   <widget class="QComboBox" name="transition_list"/>
                  </item>
532
                  <item row="6" column="0" colspan="2">
533
534
535
                   <widget class="QGroupBox" name="rule_settings_area">
                    <property name="title">
                     <string>Transition rule settings</string>
536
                    </property>
537
538
                   </widget>
                  </item>
539
                  <item row="7" column="0" colspan="2">
540
                   <widget class="QLabel" name="informationLabel">
541
                    <property name="text">
542
                     <string>New rule must be saved before running simulation</string>
543
                    </property>
544
545
                   </widget>
                  </item>
546
                  <item row="8" column="0" colspan="2">
547
                   <widget class="QPushButton" name="saveRuleButton">
548
                    <property name="text">
549
                     <string>Save rule</string>
550
                    </property>
551
552
                   </widget>
                  </item>
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
                  <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>
570
571
572
                 </layout>
                </widget>
               </item>
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
              </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>
598
599
600
601
602
603
604
605
606
607
      </item>
     </layout>
    </item>
   </layout>
  </widget>
  <widget class="QMenuBar" name="menubar">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
608
     <width>1056</width>
609
     <height>25</height>
610
611
    </rect>
   </property>
612
613
614
615
616
617
618
619
620
   <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>
621
    <addaction name="actionCharger_depuis_une_image"/>
622
623
624
625
626
627
    <addaction name="action_save_struct"/>
   </widget>
   <widget class="QMenu" name="menuA_propos">
    <property name="title">
     <string>À propos</string>
    </property>
628
629
    <addaction name="action_propos_de_Cellulut"/>
    <addaction name="action_propos_de_Qt"/>
630
631
632
633
   </widget>
   <addaction name="menuFichier"/>
   <addaction name="menuEditer"/>
   <addaction name="menuA_propos"/>
634
635
  </widget>
  <widget class="QStatusBar" name="statusbar"/>
636
637
638
639
640
641
642
643
  <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>
644
645
646
647
648
649
650
651
652
653
  <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>
654
655
656
657
658
  <action name="actionCharger_depuis_une_image">
   <property name="text">
    <string>Charger depuis une image...</string>
   </property>
  </action>
659
660
661
662
663
664
665
666
 </widget>
 <customwidgets>
  <customwidget>
   <class>GridView</class>
   <extends>QFrame</extends>
   <header>gridview.hpp</header>
   <container>1</container>
  </customwidget>
667
668
669
670
671
672
  <customwidget>
   <class>StructureLibraryView</class>
   <extends>QFrame</extends>
   <header>structurelibraryview.hpp</header>
   <container>1</container>
  </customwidget>
673
674
675
676
 </customwidgets>
 <resources/>
 <connections/>
</ui>