-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.ui
243 lines (238 loc) · 6.17 KB
/
mainwindow.ui
1
2
3
4
5
6
7
8
9
10
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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
101
102
103
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
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
232
233
234
235
236
237
238
239
240
241
242
243
<!-- This is the main XML code for designing the code, its like the CSS for a website + its more imp than CSS -->
<?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>
<width>900</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>Graph Generator Assignment</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QLabel" name="label_vertices">
<property name="geometry">
<rect>
<x>50</x>
<y>30</y>
<width>111</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Number of Vertices</string>
</property>
</widget>
<widget class="QLabel" name="label_density">
<property name="geometry">
<rect>
<x>60</x>
<y>70</y>
<width>101</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Density of Graph</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_vertices">
<property name="geometry">
<rect>
<x>180</x>
<y>30</y>
<width>113</width>
<height>22</height>
</rect>
</property>
</widget>
<!-- Toggle Switch -->
<!-- <widget class="QCheckBox" name="toggleSwitch">
<property name="geometry">
<rect>
<x>50</x>
<y>480</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Toggle Switch</string>
</property>
</widget>-->
<!-- Max, Min, Neighbours -->
<!--Anns Khan copyright section -->
<widget class="QLabel" name="label_anns_khan">
<property name="geometry">
<rect>
<x>50</x>
<y>550</y>
<width>211</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>💻🤝 Anns Khan © </string>
</property>
</widget>
<!--max, min, neighbours -->
<widget class="QLabel" name="label_max_degree">
<property name="geometry">
<rect>
<x>50</x>
<y>420</y>
<width>201</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Node with maximum degree: </string>
</property>
</widget>
<widget class="QLabel" name="label_min_degree">
<property name="geometry">
<rect>
<x>50</x>
<y>450</y>
<width>201</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Node with minimum degree: </string>
</property>
</widget>
<widget class="QLabel" name="label_find_neighbours">
<property name="geometry">
<rect>
<x>50</x>
<y>480</y>
<width>201</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Enter node to find its neighbors:</string>
</property>
</widget>
<widget class="QLineEdit" name="node_input">
<property name="geometry">
<rect>
<x>320</x>
<y>480</y>
<width>81</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QPushButton" name="btn_find_neighbors">
<property name="geometry">
<rect>
<x>420</x>
<y>480</y>
<width>101</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Find Neighbours</string>
</property>
</widget>
<!-- Adjacency Matrix Display -->
<widget class="QLabel" name="label_adjacency_matrix">
<property name="geometry">
<rect>
<x>400</x>
<y>150</y>
<width>121</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Adjacency Matrix:</string>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_adjacency_matrix">
<property name="geometry">
<rect>
<x>400</x>
<y>170</y>
<width>401</width>
<height>221</height>
</rect>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<!-- Neighbours Display -->
<!--<widget class="QLabel" name="label_neighbours">
<property name="geometry">
<rect>
<x>50</x>
<y>450</y>
<width>221</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Neighbours of the entered node:</string>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_neighbours">
<property name="geometry">
<rect>
<x>50</x>
<y>470</y>
<width>201</width>
<height>121</height>
</rect>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>-->
<!---generate graph button -->
<widget class="QLineEdit" name="lineEdit_density">
<property name="geometry">
<rect>
<x>180</x>
<y>70</y>
<width>113</width>
<height>22</height>
</rect>
</property>
</widget>
<widget class="QPushButton" name="btn_generate">
<property name="geometry">
<rect>
<x>150</x>
<y>110</y>
<width>100</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>Generate Graph</string>
</property>
</widget>
<widget class="QGraphicsView" name="graphicsView">
<property name="geometry">
<rect>
<x>50</x>
<y>170</y>
<width>301</width>
<height>221</height>
</rect>
</property>
</widget>
</widget>
</widget>
<resources/>
<connections/>
</ui>