interface.ui 22.6 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
                </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>
118
119
120
                 <property name="minimum">
                  <number>1</number>
                 </property>
121
122
123
124
125
126
                 <property name="orientation">
                  <enum>Qt::Horizontal</enum>
                 </property>
                </widget>
               </item>
               <item>
127
128
129
130
131
                <widget class="QSpinBox" name="simSpeedSpinbox">
                 <property name="minimum">
                  <number>1</number>
                 </property>
                </widget>
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
               </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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
             <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>
199
200
201
202
203
204
205
206
207
208
209
             <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
210
211
212
                <widget class="QSpinBox" name="recordSpinBox">
                 <property name="minimum">
                  <number>0</number>
213
                 </property>
Anthony Noir's avatar
Anthony Noir committed
214
215
                 <property name="maximum">
                  <number>100</number>
216
                 </property>
Anthony Noir's avatar
Anthony Noir committed
217
                 <property name="value">
218
219
220
221
222
223
224
225
226
227
228
229
230
231
                  <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
396
               <item>
                <widget class="QPushButton" name="pushButton">
                 <property name="text">
                  <string>Reset grid</string>
                 </property>
                </widget>
               </item>
397
398
399
400
401
402
              </layout>
             </widget>
            </item>
            <item>
             <widget class="QGroupBox" name="rulesGroupBox">
              <property name="sizePolicy">
403
               <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
404
405
406
407
408
409
410
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
              <property name="title">
               <string>Rules</string>
              </property>
411
              <layout class="QGridLayout" name="gridLayout_3">
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
443
444
445
446
447
448
449
               <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>
450
451
452
               <item row="4" column="0" colspan="3">
                <widget class="QGroupBox" name="rule_settings">
                 <property name="enabled">
453
                  <bool>true</bool>
454
                 </property>
455
456
457
458
459
460
                 <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">
Yann Boucher's avatar
Yann Boucher committed
461
                    <item row="0" column="0">
462
                     <widget class="QPushButton" name="statesSettingsButton">
Yann Boucher's avatar
Yann Boucher committed
463
464
465
466
467
                      <property name="sizePolicy">
                       <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
                        <horstretch>0</horstretch>
                        <verstretch>0</verstretch>
                       </sizepolicy>
468
469
                      </property>
                      <property name="text">
Yann Boucher's avatar
Yann Boucher committed
470
                       <string>Alphabet settings</string>
471
472
473
474
475
                      </property>
                     </widget>
                    </item>
                   </layout>
                  </item>
476
477
478
479
480
481
482
483
484
485
                  <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>
486
                  <item row="2" column="1">
487
488
489
490
491
492
493
                   <widget class="QComboBox" name="neighborhood_list">
                    <property name="currentIndex">
                     <number>-1</number>
                    </property>
                   </widget>
                  </item>
                  <item row="5" column="1">
494
495
                   <widget class="QComboBox" name="transition_list"/>
                  </item>
496
                  <item row="6" column="0" colspan="2">
497
498
499
                   <widget class="QGroupBox" name="rule_settings_area">
                    <property name="title">
                     <string>Transition rule settings</string>
500
                    </property>
501
502
                   </widget>
                  </item>
503
                  <item row="7" column="0" colspan="2">
504
                   <widget class="QLabel" name="informationLabel">
505
                    <property name="text">
506
                     <string>New rule must be saved before running simulation</string>
507
                    </property>
508
509
                   </widget>
                  </item>
510
                  <item row="8" column="0" colspan="2">
511
                   <widget class="QPushButton" name="saveRuleButton">
512
                    <property name="text">
513
                     <string>Save rule</string>
514
                    </property>
515
516
                   </widget>
                  </item>
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
                  <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>
534
535
536
                 </layout>
                </widget>
               </item>
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
              </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>
562
563
564
565
566
567
568
569
570
571
      </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
572
     <width>1068</width>
573
     <height>22</height>
574
575
    </rect>
   </property>
576
577
578
579
580
581
582
583
584
   <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>
585
    <addaction name="actionCharger_depuis_une_image"/>
586
587
588
589
590
591
    <addaction name="action_save_struct"/>
   </widget>
   <widget class="QMenu" name="menuA_propos">
    <property name="title">
     <string>À propos</string>
    </property>
592
593
    <addaction name="action_propos_de_Cellulut"/>
    <addaction name="action_propos_de_Qt"/>
594
595
596
597
   </widget>
   <addaction name="menuFichier"/>
   <addaction name="menuEditer"/>
   <addaction name="menuA_propos"/>
598
599
  </widget>
  <widget class="QStatusBar" name="statusbar"/>
600
601
602
603
604
605
606
607
  <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>
608
609
610
611
612
613
614
615
616
617
  <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>
618
619
620
621
622
  <action name="actionCharger_depuis_une_image">
   <property name="text">
    <string>Charger depuis une image...</string>
   </property>
  </action>
623
624
625
626
627
628
629
630
 </widget>
 <customwidgets>
  <customwidget>
   <class>GridView</class>
   <extends>QFrame</extends>
   <header>gridview.hpp</header>
   <container>1</container>
  </customwidget>
631
632
633
634
635
636
  <customwidget>
   <class>StructureLibraryView</class>
   <extends>QFrame</extends>
   <header>structurelibraryview.hpp</header>
   <container>1</container>
  </customwidget>
637
638
639
640
 </customwidgets>
 <resources/>
 <connections/>
</ui>