~dimitris-kalamaras/socnetv/develop

« back to all changes in this revision

Viewing changes to src/forms/randscalefreedialog.ui

  • Committer: Dimitris Kalamaras
  • Date: 2015-06-04 08:33:20 UTC
  • Revision ID: git-v1:08189520e578ffc5060d32892b1963978e0aae59
added dialog / class for scale-free networks - method yet to be
implemented in Graph

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<ui version="4.0">
 
3
 <class>RandScaleFreeDialog</class>
 
4
 <widget class="QDialog" name="RandScaleFreeDialog">
 
5
  <property name="geometry">
 
6
   <rect>
 
7
    <x>0</x>
 
8
    <y>0</y>
 
9
    <width>528</width>
 
10
    <height>330</height>
 
11
   </rect>
 
12
  </property>
 
13
  <property name="sizePolicy">
 
14
   <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
 
15
    <horstretch>0</horstretch>
 
16
    <verstretch>0</verstretch>
 
17
   </sizepolicy>
 
18
  </property>
 
19
  <property name="minimumSize">
 
20
   <size>
 
21
    <width>500</width>
 
22
    <height>330</height>
 
23
   </size>
 
24
  </property>
 
25
  <property name="maximumSize">
 
26
   <size>
 
27
    <width>550</width>
 
28
    <height>350</height>
 
29
   </size>
 
30
  </property>
 
31
  <property name="font">
 
32
   <font>
 
33
    <family>DejaVu Sans</family>
 
34
   </font>
 
35
  </property>
 
36
  <property name="windowTitle">
 
37
   <string>Scale-free random network generator</string>
 
38
  </property>
 
39
  <layout class="QGridLayout" name="gridLayout">
 
40
   <item row="0" column="0">
 
41
    <widget class="QLabel" name="label_2">
 
42
     <property name="sizePolicy">
 
43
      <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
 
44
       <horstretch>0</horstretch>
 
45
       <verstretch>0</verstretch>
 
46
      </sizepolicy>
 
47
     </property>
 
48
     <property name="minimumSize">
 
49
      <size>
 
50
       <width>450</width>
 
51
       <height>50</height>
 
52
      </size>
 
53
     </property>
 
54
     <property name="font">
 
55
      <font>
 
56
       <pointsize>11</pointsize>
 
57
       <weight>50</weight>
 
58
       <italic>false</italic>
 
59
       <bold>false</bold>
 
60
       <underline>false</underline>
 
61
      </font>
 
62
     </property>
 
63
     <property name="frameShape">
 
64
      <enum>QFrame::NoFrame</enum>
 
65
     </property>
 
66
     <property name="frameShadow">
 
67
      <enum>QFrame::Sunken</enum>
 
68
     </property>
 
69
     <property name="text">
 
70
      <string>Generate random scale-free network according the Barabási–Albert (BA) model using a preferential attachment mechanism.</string>
 
71
     </property>
 
72
     <property name="textFormat">
 
73
      <enum>Qt::RichText</enum>
 
74
     </property>
 
75
     <property name="wordWrap">
 
76
      <bool>true</bool>
 
77
     </property>
 
78
    </widget>
 
79
   </item>
 
80
   <item row="1" column="0">
 
81
    <layout class="QHBoxLayout" name="horizontalLayout_2">
 
82
     <item>
 
83
      <widget class="QLabel" name="nodesLabel">
 
84
       <property name="sizePolicy">
 
85
        <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
 
86
         <horstretch>0</horstretch>
 
87
         <verstretch>0</verstretch>
 
88
        </sizepolicy>
 
89
       </property>
 
90
       <property name="minimumSize">
 
91
        <size>
 
92
         <width>380</width>
 
93
         <height>0</height>
 
94
        </size>
 
95
       </property>
 
96
       <property name="font">
 
97
        <font>
 
98
         <pointsize>11</pointsize>
 
99
        </font>
 
100
       </property>
 
101
       <property name="text">
 
102
        <string>Nodes</string>
 
103
       </property>
 
104
      </widget>
 
105
     </item>
 
106
     <item>
 
107
      <widget class="QSpinBox" name="nodesSpinBox">
 
108
       <property name="sizePolicy">
 
109
        <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
 
110
         <horstretch>0</horstretch>
 
111
         <verstretch>0</verstretch>
 
112
        </sizepolicy>
 
113
       </property>
 
114
       <property name="minimumSize">
 
115
        <size>
 
116
         <width>100</width>
 
117
         <height>0</height>
 
118
        </size>
 
119
       </property>
 
120
       <property name="font">
 
121
        <font>
 
122
         <pointsize>11</pointsize>
 
123
        </font>
 
124
       </property>
 
125
       <property name="toolTip">
 
126
        <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The resulting graph will have N nodes and N*d/2 edges&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
 
127
       </property>
 
128
       <property name="minimum">
 
129
        <number>4</number>
 
130
       </property>
 
131
       <property name="maximum">
 
132
        <number>9999</number>
 
133
       </property>
 
134
       <property name="value">
 
135
        <number>100</number>
 
136
       </property>
 
137
      </widget>
 
138
     </item>
 
139
    </layout>
 
140
   </item>
 
141
   <item row="2" column="0">
 
142
    <layout class="QHBoxLayout" name="horizontalLayout_6">
 
143
     <property name="sizeConstraint">
 
144
      <enum>QLayout::SetMinimumSize</enum>
 
145
     </property>
 
146
     <item>
 
147
      <widget class="QLabel" name="label_4">
 
148
       <property name="sizePolicy">
 
149
        <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
 
150
         <horstretch>0</horstretch>
 
151
         <verstretch>0</verstretch>
 
152
        </sizepolicy>
 
153
       </property>
 
154
       <property name="minimumSize">
 
155
        <size>
 
156
         <width>380</width>
 
157
         <height>0</height>
 
158
        </size>
 
159
       </property>
 
160
       <property name="font">
 
161
        <font>
 
162
         <pointsize>11</pointsize>
 
163
        </font>
 
164
       </property>
 
165
       <property name="text">
 
166
        <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
 
167
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
 
168
p, li { white-space: pre-wrap; }
 
169
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'DejaVu Sans'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
 
170
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Initial connected nodes &lt;span style=&quot; font-style:italic;&quot;&gt;m&lt;/span&gt;&lt;span style=&quot; font-style:italic; vertical-align:sub;&quot;&gt;0&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
 
171
       </property>
 
172
      </widget>
 
173
     </item>
 
174
     <item>
 
175
      <widget class="QSpinBox" name="initialNodesSpinBox">
 
176
       <property name="minimumSize">
 
177
        <size>
 
178
         <width>100</width>
 
179
         <height>0</height>
 
180
        </size>
 
181
       </property>
 
182
       <property name="font">
 
183
        <font>
 
184
         <pointsize>11</pointsize>
 
185
        </font>
 
186
       </property>
 
187
       <property name="toolTip">
 
188
        <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is the mean edge degree each new node will have&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
 
189
       </property>
 
190
       <property name="minimum">
 
191
        <number>2</number>
 
192
       </property>
 
193
       <property name="maximum">
 
194
        <number>9999</number>
 
195
       </property>
 
196
       <property name="singleStep">
 
197
        <number>2</number>
 
198
       </property>
 
199
       <property name="value">
 
200
        <number>10</number>
 
201
       </property>
 
202
      </widget>
 
203
     </item>
 
204
    </layout>
 
205
   </item>
 
206
   <item row="3" column="0">
 
207
    <layout class="QHBoxLayout" name="horizontalLayout">
 
208
     <item>
 
209
      <widget class="QLabel" name="probLabel">
 
210
       <property name="sizePolicy">
 
211
        <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
 
212
         <horstretch>0</horstretch>
 
213
         <verstretch>0</verstretch>
 
214
        </sizepolicy>
 
215
       </property>
 
216
       <property name="minimumSize">
 
217
        <size>
 
218
         <width>400</width>
 
219
         <height>0</height>
 
220
        </size>
 
221
       </property>
 
222
       <property name="font">
 
223
        <font>
 
224
         <pointsize>11</pointsize>
 
225
        </font>
 
226
       </property>
 
227
       <property name="text">
 
228
        <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;New nodes will connect to node &lt;span style=&quot; font-style:italic;&quot;&gt;i&lt;/span&gt; (degree &lt;span style=&quot; font-style:italic;&quot;&gt;d&lt;/span&gt;&lt;span style=&quot; font-style:italic; vertical-align:sub;&quot;&gt;i&lt;/span&gt;) with prob: &lt;span style=&quot; font-style:italic;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot; font-style:italic; vertical-align:sub;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot; font-style:italic;&quot;&gt; = d&lt;/span&gt;&lt;span style=&quot; font-style:italic; vertical-align:sub;&quot;&gt;i &lt;/span&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;/ Σ&lt;/span&gt;&lt;span style=&quot; font-style:italic; vertical-align:sub;&quot;&gt;j&lt;/span&gt;&lt;span style=&quot; font-style:italic;&quot;&gt; d&lt;/span&gt;&lt;span style=&quot; font-style:italic; vertical-align:sub;&quot;&gt;j&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
 
229
       </property>
 
230
      </widget>
 
231
     </item>
 
232
    </layout>
 
233
   </item>
 
234
   <item row="4" column="0">
 
235
    <layout class="QHBoxLayout" name="horizontalLayout_3">
 
236
     <item>
 
237
      <widget class="QLabel" name="label">
 
238
       <property name="sizePolicy">
 
239
        <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
 
240
         <horstretch>0</horstretch>
 
241
         <verstretch>0</verstretch>
 
242
        </sizepolicy>
 
243
       </property>
 
244
       <property name="minimumSize">
 
245
        <size>
 
246
         <width>400</width>
 
247
         <height>0</height>
 
248
        </size>
 
249
       </property>
 
250
       <property name="font">
 
251
        <font>
 
252
         <pointsize>11</pointsize>
 
253
         <weight>50</weight>
 
254
         <bold>false</bold>
 
255
        </font>
 
256
       </property>
 
257
       <property name="text">
 
258
        <string>Graph Mode</string>
 
259
       </property>
 
260
      </widget>
 
261
     </item>
 
262
     <item>
 
263
      <layout class="QVBoxLayout" name="verticalLayout">
 
264
       <item>
 
265
        <widget class="QRadioButton" name="undirectedRadioButton">
 
266
         <property name="sizePolicy">
 
267
          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
 
268
           <horstretch>0</horstretch>
 
269
           <verstretch>0</verstretch>
 
270
          </sizepolicy>
 
271
         </property>
 
272
         <property name="minimumSize">
 
273
          <size>
 
274
           <width>100</width>
 
275
           <height>0</height>
 
276
          </size>
 
277
         </property>
 
278
         <property name="font">
 
279
          <font>
 
280
           <pointsize>11</pointsize>
 
281
           <italic>false</italic>
 
282
           <underline>false</underline>
 
283
           <strikeout>false</strikeout>
 
284
          </font>
 
285
         </property>
 
286
         <property name="text">
 
287
          <string>Undirected</string>
 
288
         </property>
 
289
         <property name="checked">
 
290
          <bool>true</bool>
 
291
         </property>
 
292
         <property name="autoExclusive">
 
293
          <bool>false</bool>
 
294
         </property>
 
295
        </widget>
 
296
       </item>
 
297
       <item>
 
298
        <widget class="QRadioButton" name="directedRadioButton">
 
299
         <property name="sizePolicy">
 
300
          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
 
301
           <horstretch>0</horstretch>
 
302
           <verstretch>0</verstretch>
 
303
          </sizepolicy>
 
304
         </property>
 
305
         <property name="minimumSize">
 
306
          <size>
 
307
           <width>100</width>
 
308
           <height>0</height>
 
309
          </size>
 
310
         </property>
 
311
         <property name="font">
 
312
          <font>
 
313
           <pointsize>11</pointsize>
 
314
          </font>
 
315
         </property>
 
316
         <property name="text">
 
317
          <string>Directed</string>
 
318
         </property>
 
319
         <property name="autoExclusive">
 
320
          <bool>false</bool>
 
321
         </property>
 
322
        </widget>
 
323
       </item>
 
324
      </layout>
 
325
     </item>
 
326
    </layout>
 
327
   </item>
 
328
   <item row="5" column="0">
 
329
    <layout class="QHBoxLayout" name="horizontalLayout_4">
 
330
     <item>
 
331
      <widget class="QLabel" name="label_3">
 
332
       <property name="sizePolicy">
 
333
        <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
 
334
         <horstretch>0</horstretch>
 
335
         <verstretch>0</verstretch>
 
336
        </sizepolicy>
 
337
       </property>
 
338
       <property name="minimumSize">
 
339
        <size>
 
340
         <width>400</width>
 
341
         <height>0</height>
 
342
        </size>
 
343
       </property>
 
344
       <property name="font">
 
345
        <font>
 
346
         <pointsize>11</pointsize>
 
347
        </font>
 
348
       </property>
 
349
       <property name="text">
 
350
        <string>Allow diagonals (loops) or set to zero?</string>
 
351
       </property>
 
352
      </widget>
 
353
     </item>
 
354
     <item>
 
355
      <layout class="QVBoxLayout" name="verticalLayout_2">
 
356
       <item>
 
357
        <widget class="QCheckBox" name="diagCheckBox">
 
358
         <property name="sizePolicy">
 
359
          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
 
360
           <horstretch>0</horstretch>
 
361
           <verstretch>0</verstretch>
 
362
          </sizepolicy>
 
363
         </property>
 
364
         <property name="minimumSize">
 
365
          <size>
 
366
           <width>100</width>
 
367
           <height>0</height>
 
368
          </size>
 
369
         </property>
 
370
         <property name="font">
 
371
          <font>
 
372
           <pointsize>11</pointsize>
 
373
          </font>
 
374
         </property>
 
375
         <property name="toolTip">
 
376
          <string>Check to allow loops (nodes linking to themselves) in the new network</string>
 
377
         </property>
 
378
         <property name="text">
 
379
          <string>No loops</string>
 
380
         </property>
 
381
         <property name="checked">
 
382
          <bool>false</bool>
 
383
         </property>
 
384
        </widget>
 
385
       </item>
 
386
      </layout>
 
387
     </item>
 
388
    </layout>
 
389
   </item>
 
390
   <item row="6" column="0">
 
391
    <widget class="QDialogButtonBox" name="buttonBox">
 
392
     <property name="font">
 
393
      <font>
 
394
       <pointsize>11</pointsize>
 
395
      </font>
 
396
     </property>
 
397
     <property name="orientation">
 
398
      <enum>Qt::Horizontal</enum>
 
399
     </property>
 
400
     <property name="standardButtons">
 
401
      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
 
402
     </property>
 
403
    </widget>
 
404
   </item>
 
405
  </layout>
 
406
 </widget>
 
407
 <resources/>
 
408
 <connections>
 
409
  <connection>
 
410
   <sender>buttonBox</sender>
 
411
   <signal>accepted()</signal>
 
412
   <receiver>RandScaleFreeDialog</receiver>
 
413
   <slot>accept()</slot>
 
414
   <hints>
 
415
    <hint type="sourcelabel">
 
416
     <x>257</x>
 
417
     <y>373</y>
 
418
    </hint>
 
419
    <hint type="destinationlabel">
 
420
     <x>157</x>
 
421
     <y>274</y>
 
422
    </hint>
 
423
   </hints>
 
424
  </connection>
 
425
  <connection>
 
426
   <sender>buttonBox</sender>
 
427
   <signal>rejected()</signal>
 
428
   <receiver>RandScaleFreeDialog</receiver>
 
429
   <slot>reject()</slot>
 
430
   <hints>
 
431
    <hint type="sourcelabel">
 
432
     <x>325</x>
 
433
     <y>373</y>
 
434
    </hint>
 
435
    <hint type="destinationlabel">
 
436
     <x>286</x>
 
437
     <y>274</y>
 
438
    </hint>
 
439
   </hints>
 
440
  </connection>
 
441
 </connections>
 
442
</ui>