interface.ui 23.4 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
                </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>
                </widget>
               </item>
               <item>
Anthony Noir's avatar
Anthony Noir committed
192
193
194
                <widget class="QSpinBox" name="recordSpinBox">
                 <property name="minimum">
                  <number>0</number>
195
                 </property>
Anthony Noir's avatar
Anthony Noir committed
196
197
                 <property name="maximum">
                  <number>100</number>
198
                 </property>
Anthony Noir's avatar
Anthony Noir committed
199
                 <property name="value">
200
201
202
203
204
205
206
207
208
209
210
211
212
213
                  <number>10</number>
                 </property>
                </widget>
               </item>
              </layout>
             </item>
            </layout>
           </item>
          </layout>
         </widget>
        </item>
       </layout>
      </item>
      <item>
214
215
216
217
218
219
220
221
       <widget class="QTabWidget" name="tabWidget">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
        <property name="currentIndex">
222
         <number>0</number>
223
224
225
226
227
228
229
230
231
232
233
        </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">
234
               <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
235
236
237
238
239
240
241
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
              <property name="title">
               <string>Grid and patterns</string>
              </property>
242
243
244
245
246
247
              <property name="alignment">
               <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
              </property>
              <property name="flat">
               <bool>false</bool>
              </property>
248
              <layout class="QVBoxLayout" name="verticalLayout_3">
249
               <item>
250
251
                <widget class="QLabel" name="gridDimLabel">
                 <property name="sizePolicy">
252
                  <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
253
254
255
256
                   <horstretch>0</horstretch>
                   <verstretch>0</verstretch>
                  </sizepolicy>
                 </property>
257
                 <property name="text">
258
                  <string>Grid dimension</string>
259
260
261
262
                 </property>
                </widget>
               </item>
               <item>
263
264
265
266
267
268
                <layout class="QFormLayout" name="gridDimLayout">
                 <item row="0" column="0">
                  <widget class="QLabel" name="widthLabel">
                   <property name="text">
                    <string>Width :</string>
                   </property>
269
270
271
                   <property name="buddy">
                    <cstring>widthSpinBox</cstring>
                   </property>
272
                  </widget>
273
                 </item>
274
275
276
277
278
279
                 <item row="0" column="1">
                  <widget class="QSpinBox" name="widthSpinBox">
                   <property name="minimum">
                    <number>1</number>
                   </property>
                   <property name="maximum">
280
                    <number>1000</number>
281
282
283
284
285
286
                   </property>
                   <property name="value">
                    <number>10</number>
                   </property>
                  </widget>
                 </item>
287
288
289
290
291
                 <item row="1" column="0">
                  <widget class="QLabel" name="heightLabel">
                   <property name="text">
                    <string>Height :</string>
                   </property>
292
293
294
                   <property name="buddy">
                    <cstring>heightSpinBox</cstring>
                   </property>
295
                  </widget>
296
                 </item>
297
298
299
300
301
302
                 <item row="1" column="1">
                  <widget class="QSpinBox" name="heightSpinBox">
                   <property name="minimum">
                    <number>1</number>
                   </property>
                   <property name="maximum">
303
                    <number>1000</number>
304
305
306
307
308
309
                   </property>
                   <property name="value">
                    <number>10</number>
                   </property>
                  </widget>
                 </item>
310
311
312
313
                 <item row="2" column="1">
                  <widget class="QPushButton" name="validateGridDim">
                   <property name="enabled">
                    <bool>false</bool>
314
                   </property>
315
316
                   <property name="text">
                    <string>OK</string>
317
318
319
320
                   </property>
                  </widget>
                 </item>
                </layout>
321
322
               </item>
               <item>
323
324
325
326
327
328
329
330
331
332
333
                <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">
334
                    <string>Save configuration</string>
335
336
337
338
339
340
                   </property>
                  </widget>
                 </item>
                 <item row="0" column="1">
                  <widget class="QPushButton" name="openPatternButton">
                   <property name="text">
341
                    <string>Open configuration</string>
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
                   </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>
371
               </item>
372
373
374
375
376
377
              </layout>
             </widget>
            </item>
            <item>
             <widget class="QGroupBox" name="rulesGroupBox">
              <property name="sizePolicy">
378
               <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
379
380
381
382
383
384
385
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
              <property name="title">
               <string>Rules</string>
              </property>
386
              <layout class="QGridLayout" name="gridLayout_3">
387
388
389
390
391
392
393
394
395
396
397
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
               <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>
425
426
427
               <item row="4" column="0" colspan="3">
                <widget class="QGroupBox" name="rule_settings">
                 <property name="enabled">
428
                  <bool>true</bool>
429
                 </property>
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
486
487
488
489
490
491
492
493
                 <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>
494
495
496
497
498
499
500
501
502
503
                  <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>
504
                  <item row="2" column="1">
505
506
507
508
509
510
511
                   <widget class="QComboBox" name="neighborhood_list">
                    <property name="currentIndex">
                     <number>-1</number>
                    </property>
                   </widget>
                  </item>
                  <item row="5" column="1">
512
513
                   <widget class="QComboBox" name="transition_list"/>
                  </item>
514
                  <item row="6" column="0" colspan="2">
515
516
517
                   <widget class="QGroupBox" name="rule_settings_area">
                    <property name="title">
                     <string>Transition rule settings</string>
518
                    </property>
519
520
                   </widget>
                  </item>
521
                  <item row="7" column="0" colspan="2">
522
                   <widget class="QLabel" name="informationLabel">
523
                    <property name="text">
524
                     <string>New rule must be saved before running simulation</string>
525
                    </property>
526
527
                   </widget>
                  </item>
528
                  <item row="8" column="0" colspan="2">
529
                   <widget class="QPushButton" name="saveRuleButton">
530
                    <property name="text">
531
                     <string>Save rule</string>
532
                    </property>
533
534
                   </widget>
                  </item>
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
                  <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>
552
553
554
                 </layout>
                </widget>
               </item>
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
              </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>
580
581
582
583
584
585
586
587
588
589
      </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
590
591
     <width>1068</width>
     <height>26</height>
592
593
    </rect>
   </property>
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>
603
    <addaction name="actionCharger_depuis_une_image"/>
604
605
606
607
608
609
    <addaction name="action_save_struct"/>
   </widget>
   <widget class="QMenu" name="menuA_propos">
    <property name="title">
     <string>À propos</string>
    </property>
610
611
    <addaction name="action_propos_de_Cellulut"/>
    <addaction name="action_propos_de_Qt"/>
612
613
614
615
   </widget>
   <addaction name="menuFichier"/>
   <addaction name="menuEditer"/>
   <addaction name="menuA_propos"/>
616
617
  </widget>
  <widget class="QStatusBar" name="statusbar"/>
618
619
620
621
622
623
624
625
  <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>
626
627
628
629
630
631
632
633
634
635
  <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>
636
637
638
639
640
  <action name="actionCharger_depuis_une_image">
   <property name="text">
    <string>Charger depuis une image...</string>
   </property>
  </action>
641
642
643
644
645
646
647
648
 </widget>
 <customwidgets>
  <customwidget>
   <class>GridView</class>
   <extends>QFrame</extends>
   <header>gridview.hpp</header>
   <container>1</container>
  </customwidget>
649
650
651
652
653
654
  <customwidget>
   <class>StructureLibraryView</class>
   <extends>QFrame</extends>
   <header>structurelibraryview.hpp</header>
   <container>1</container>
  </customwidget>
655
656
657
658
 </customwidgets>
 <resources/>
 <connections/>
</ui>