프로젝트

일반

사용자정보

개정판 f92fccfe

IDf92fccfe23e339a342d521fa94106b82dd99c2ae
상위 d45df999
하위 1669b150

함의성이(가) 6년 이상 전에 추가함

issue #655: train ui

차이점 보기:

DTI_PID/DTI_PID/TrainingEditor_UI.py
30 30
        self.verticalLayout_2.addWidget(self.checkBox)
31 31
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
32 32
        self.pushButtonZoom = QtWidgets.QPushButton(TrainingEditorDialog)
33
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
33
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
34 34
        sizePolicy.setHorizontalStretch(0)
35 35
        sizePolicy.setVerticalStretch(0)
36 36
        sizePolicy.setHeightForWidth(self.pushButtonZoom.sizePolicy().hasHeightForWidth())
37 37
        self.pushButtonZoom.setSizePolicy(sizePolicy)
38 38
        self.pushButtonZoom.setMinimumSize(QtCore.QSize(64, 64))
39
        self.pushButtonZoom.setMaximumSize(QtCore.QSize(64, 64))
39 40
        self.pushButtonZoom.setToolTip("")
41
        self.pushButtonZoom.setIconSize(QtCore.QSize(16, 16))
40 42
        self.pushButtonZoom.setCheckable(True)
41 43
        self.pushButtonZoom.setObjectName("pushButtonZoom")
42 44
        self.horizontalLayout_2.addWidget(self.pushButtonZoom)
43 45
        self.pushButton_5 = QtWidgets.QPushButton(TrainingEditorDialog)
44
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
46
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
45 47
        sizePolicy.setHorizontalStretch(0)
46 48
        sizePolicy.setVerticalStretch(0)
47 49
        sizePolicy.setHeightForWidth(self.pushButton_5.sizePolicy().hasHeightForWidth())
48 50
        self.pushButton_5.setSizePolicy(sizePolicy)
49 51
        self.pushButton_5.setMinimumSize(QtCore.QSize(80, 32))
52
        self.pushButton_5.setMaximumSize(QtCore.QSize(80, 32))
50 53
        self.pushButton_5.setObjectName("pushButton_5")
51 54
        self.horizontalLayout_2.addWidget(self.pushButton_5)
52 55
        self.pushButton_6 = QtWidgets.QPushButton(TrainingEditorDialog)
53
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
56
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
54 57
        sizePolicy.setHorizontalStretch(0)
55 58
        sizePolicy.setVerticalStretch(0)
56 59
        sizePolicy.setHeightForWidth(self.pushButton_6.sizePolicy().hasHeightForWidth())
57 60
        self.pushButton_6.setSizePolicy(sizePolicy)
58 61
        self.pushButton_6.setMinimumSize(QtCore.QSize(80, 32))
62
        self.pushButton_6.setMaximumSize(QtCore.QSize(80, 32))
59 63
        self.pushButton_6.setObjectName("pushButton_6")
60 64
        self.horizontalLayout_2.addWidget(self.pushButton_6)
61 65
        self.pushButton_7 = QtWidgets.QPushButton(TrainingEditorDialog)
62
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
66
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
63 67
        sizePolicy.setHorizontalStretch(0)
64 68
        sizePolicy.setVerticalStretch(0)
65 69
        sizePolicy.setHeightForWidth(self.pushButton_7.sizePolicy().hasHeightForWidth())
66 70
        self.pushButton_7.setSizePolicy(sizePolicy)
67 71
        self.pushButton_7.setMinimumSize(QtCore.QSize(80, 32))
72
        self.pushButton_7.setMaximumSize(QtCore.QSize(80, 32))
68 73
        self.pushButton_7.setObjectName("pushButton_7")
69 74
        self.horizontalLayout_2.addWidget(self.pushButton_7)
70 75
        self.pushButton_8 = QtWidgets.QPushButton(TrainingEditorDialog)
71
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
76
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
72 77
        sizePolicy.setHorizontalStretch(0)
73 78
        sizePolicy.setVerticalStretch(0)
74 79
        sizePolicy.setHeightForWidth(self.pushButton_8.sizePolicy().hasHeightForWidth())
75 80
        self.pushButton_8.setSizePolicy(sizePolicy)
76 81
        self.pushButton_8.setMinimumSize(QtCore.QSize(80, 32))
82
        self.pushButton_8.setMaximumSize(QtCore.QSize(80, 32))
77 83
        self.pushButton_8.setObjectName("pushButton_8")
78 84
        self.horizontalLayout_2.addWidget(self.pushButton_8)
79 85
        self.pushButton_9 = QtWidgets.QPushButton(TrainingEditorDialog)
80
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
86
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
81 87
        sizePolicy.setHorizontalStretch(0)
82 88
        sizePolicy.setVerticalStretch(0)
83 89
        sizePolicy.setHeightForWidth(self.pushButton_9.sizePolicy().hasHeightForWidth())
84 90
        self.pushButton_9.setSizePolicy(sizePolicy)
85 91
        self.pushButton_9.setMinimumSize(QtCore.QSize(80, 32))
92
        self.pushButton_9.setMaximumSize(QtCore.QSize(80, 32))
86 93
        self.pushButton_9.setObjectName("pushButton_9")
87 94
        self.horizontalLayout_2.addWidget(self.pushButton_9)
88 95
        self.pushButton_10 = QtWidgets.QPushButton(TrainingEditorDialog)
89
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
96
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
90 97
        sizePolicy.setHorizontalStretch(0)
91 98
        sizePolicy.setVerticalStretch(0)
92 99
        sizePolicy.setHeightForWidth(self.pushButton_10.sizePolicy().hasHeightForWidth())
93 100
        self.pushButton_10.setSizePolicy(sizePolicy)
94 101
        self.pushButton_10.setMinimumSize(QtCore.QSize(80, 32))
102
        self.pushButton_10.setMaximumSize(QtCore.QSize(80, 32))
95 103
        self.pushButton_10.setObjectName("pushButton_10")
96 104
        self.horizontalLayout_2.addWidget(self.pushButton_10)
97
        spacerItem = QtWidgets.QSpacerItem(1000, 20, QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum)
105
        spacerItem = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
98 106
        self.horizontalLayout_2.addItem(spacerItem)
99 107
        self.pushButton_12 = QtWidgets.QPushButton(TrainingEditorDialog)
108
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
109
        sizePolicy.setHorizontalStretch(0)
110
        sizePolicy.setVerticalStretch(0)
111
        sizePolicy.setHeightForWidth(self.pushButton_12.sizePolicy().hasHeightForWidth())
112
        self.pushButton_12.setSizePolicy(sizePolicy)
100 113
        self.pushButton_12.setMinimumSize(QtCore.QSize(35, 64))
101 114
        self.pushButton_12.setMaximumSize(QtCore.QSize(32, 64))
102 115
        self.pushButton_12.setObjectName("pushButton_12")
103 116
        self.horizontalLayout_2.addWidget(self.pushButton_12)
104 117
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
105 118
        self.verticalLayout_3.setObjectName("verticalLayout_3")
106
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
119
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum)
107 120
        self.verticalLayout_3.addItem(spacerItem1)
108 121
        self.lineEdit_2 = QtWidgets.QLineEdit(TrainingEditorDialog)
109 122
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
......
126 139
        self.verticalLayout_3.addWidget(self.label_2)
127 140
        self.horizontalLayout_2.addLayout(self.verticalLayout_3)
128 141
        self.pushButton_11 = QtWidgets.QPushButton(TrainingEditorDialog)
142
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
143
        sizePolicy.setHorizontalStretch(0)
144
        sizePolicy.setVerticalStretch(0)
145
        sizePolicy.setHeightForWidth(self.pushButton_11.sizePolicy().hasHeightForWidth())
146
        self.pushButton_11.setSizePolicy(sizePolicy)
129 147
        self.pushButton_11.setMinimumSize(QtCore.QSize(35, 64))
130 148
        self.pushButton_11.setMaximumSize(QtCore.QSize(32, 64))
131 149
        self.pushButton_11.setObjectName("pushButton_11")
......
218 236
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
219 237
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
220 238
        self.pushButton_14 = QtWidgets.QPushButton(self.leftSideWidget)
239
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Maximum)
240
        sizePolicy.setHorizontalStretch(0)
241
        sizePolicy.setVerticalStretch(0)
242
        sizePolicy.setHeightForWidth(self.pushButton_14.sizePolicy().hasHeightForWidth())
243
        self.pushButton_14.setSizePolicy(sizePolicy)
244
        self.pushButton_14.setMinimumSize(QtCore.QSize(0, 32))
245
        self.pushButton_14.setMaximumSize(QtCore.QSize(16777215, 32))
221 246
        self.pushButton_14.setObjectName("pushButton_14")
222 247
        self.horizontalLayout_5.addWidget(self.pushButton_14)
223 248
        self.pushButton_13 = QtWidgets.QPushButton(self.leftSideWidget)
249
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Maximum)
250
        sizePolicy.setHorizontalStretch(0)
251
        sizePolicy.setVerticalStretch(0)
252
        sizePolicy.setHeightForWidth(self.pushButton_13.sizePolicy().hasHeightForWidth())
253
        self.pushButton_13.setSizePolicy(sizePolicy)
254
        self.pushButton_13.setMinimumSize(QtCore.QSize(0, 32))
255
        self.pushButton_13.setMaximumSize(QtCore.QSize(16777215, 32))
224 256
        self.pushButton_13.setObjectName("pushButton_13")
225 257
        self.horizontalLayout_5.addWidget(self.pushButton_13)
226 258
        self.verticalLayout_7.addLayout(self.horizontalLayout_5)
DTI_PID/DTI_PID/UI/TrainingEditor.ui
22 22
        <layout class="QVBoxLayout" name="verticalLayout_2">
23 23
         <item>
24 24
          <widget class="QCheckBox" name="checkBox_2">
25
           <property name="sizePolicy">
26
            <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
27
             <horstretch>0</horstretch>
28
             <verstretch>0</verstretch>
29
            </sizepolicy>
30
           </property>
25 31
           <property name="maximumSize">
26 32
            <size>
27 33
             <width>16777215</width>
......
35 41
         </item>
36 42
         <item>
37 43
          <widget class="QCheckBox" name="checkBox">
44
           <property name="sizePolicy">
45
            <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
46
             <horstretch>0</horstretch>
47
             <verstretch>0</verstretch>
48
            </sizepolicy>
49
           </property>
38 50
           <property name="maximumSize">
39 51
            <size>
40 52
             <width>16777215</width>
......
51 63
       <item>
52 64
        <widget class="QPushButton" name="pushButtonZoom">
53 65
         <property name="sizePolicy">
54
          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
66
          <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
55 67
           <horstretch>0</horstretch>
56 68
           <verstretch>0</verstretch>
57 69
          </sizepolicy>
......
62 74
           <height>64</height>
63 75
          </size>
64 76
         </property>
77
         <property name="maximumSize">
78
          <size>
79
           <width>64</width>
80
           <height>64</height>
81
          </size>
82
         </property>
65 83
         <property name="toolTip">
66 84
          <string extracomment="축소 : Ctrl + Mouse Wheel Down"/>
67 85
         </property>
68 86
         <property name="text">
69 87
          <string>확대</string>
70 88
         </property>
89
         <property name="iconSize">
90
          <size>
91
           <width>16</width>
92
           <height>16</height>
93
          </size>
94
         </property>
71 95
         <property name="checkable">
72 96
          <bool>true</bool>
73 97
         </property>
......
76 100
       <item>
77 101
        <widget class="QPushButton" name="pushButton_5">
78 102
         <property name="sizePolicy">
79
          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
103
          <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
80 104
           <horstretch>0</horstretch>
81 105
           <verstretch>0</verstretch>
82 106
          </sizepolicy>
......
87 111
           <height>32</height>
88 112
          </size>
89 113
         </property>
114
         <property name="maximumSize">
115
          <size>
116
           <width>80</width>
117
           <height>32</height>
118
          </size>
119
         </property>
90 120
         <property name="text">
91 121
          <string>PushButton</string>
92 122
         </property>
......
95 125
       <item>
96 126
        <widget class="QPushButton" name="pushButton_6">
97 127
         <property name="sizePolicy">
98
          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
128
          <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
99 129
           <horstretch>0</horstretch>
100 130
           <verstretch>0</verstretch>
101 131
          </sizepolicy>
......
106 136
           <height>32</height>
107 137
          </size>
108 138
         </property>
139
         <property name="maximumSize">
140
          <size>
141
           <width>80</width>
142
           <height>32</height>
143
          </size>
144
         </property>
109 145
         <property name="text">
110 146
          <string>PushButton</string>
111 147
         </property>
......
114 150
       <item>
115 151
        <widget class="QPushButton" name="pushButton_7">
116 152
         <property name="sizePolicy">
117
          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
153
          <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
118 154
           <horstretch>0</horstretch>
119 155
           <verstretch>0</verstretch>
120 156
          </sizepolicy>
......
125 161
           <height>32</height>
126 162
          </size>
127 163
         </property>
164
         <property name="maximumSize">
165
          <size>
166
           <width>80</width>
167
           <height>32</height>
168
          </size>
169
         </property>
128 170
         <property name="text">
129 171
          <string>PushButton</string>
130 172
         </property>
......
133 175
       <item>
134 176
        <widget class="QPushButton" name="pushButton_8">
135 177
         <property name="sizePolicy">
136
          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
178
          <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
137 179
           <horstretch>0</horstretch>
138 180
           <verstretch>0</verstretch>
139 181
          </sizepolicy>
......
144 186
           <height>32</height>
145 187
          </size>
146 188
         </property>
189
         <property name="maximumSize">
190
          <size>
191
           <width>80</width>
192
           <height>32</height>
193
          </size>
194
         </property>
147 195
         <property name="text">
148 196
          <string>PushButton</string>
149 197
         </property>
......
152 200
       <item>
153 201
        <widget class="QPushButton" name="pushButton_9">
154 202
         <property name="sizePolicy">
155
          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
203
          <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
156 204
           <horstretch>0</horstretch>
157 205
           <verstretch>0</verstretch>
158 206
          </sizepolicy>
......
163 211
           <height>32</height>
164 212
          </size>
165 213
         </property>
214
         <property name="maximumSize">
215
          <size>
216
           <width>80</width>
217
           <height>32</height>
218
          </size>
219
         </property>
166 220
         <property name="text">
167 221
          <string>PushButton</string>
168 222
         </property>
......
171 225
       <item>
172 226
        <widget class="QPushButton" name="pushButton_10">
173 227
         <property name="sizePolicy">
174
          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
228
          <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
175 229
           <horstretch>0</horstretch>
176 230
           <verstretch>0</verstretch>
177 231
          </sizepolicy>
......
182 236
           <height>32</height>
183 237
          </size>
184 238
         </property>
239
         <property name="maximumSize">
240
          <size>
241
           <width>80</width>
242
           <height>32</height>
243
          </size>
244
         </property>
185 245
         <property name="text">
186 246
          <string>PushButton</string>
187 247
         </property>
......
193 253
          <enum>Qt::Horizontal</enum>
194 254
         </property>
195 255
         <property name="sizeType">
196
          <enum>QSizePolicy::Maximum</enum>
256
          <enum>QSizePolicy::Expanding</enum>
197 257
         </property>
198 258
         <property name="sizeHint" stdset="0">
199 259
          <size>
200
           <width>1000</width>
260
           <width>20</width>
201 261
           <height>20</height>
202 262
          </size>
203 263
         </property>
......
205 265
       </item>
206 266
       <item>
207 267
        <widget class="QPushButton" name="pushButton_12">
268
         <property name="sizePolicy">
269
          <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
270
           <horstretch>0</horstretch>
271
           <verstretch>0</verstretch>
272
          </sizepolicy>
273
         </property>
208 274
         <property name="minimumSize">
209 275
          <size>
210 276
           <width>35</width>
......
229 295
           <property name="orientation">
230 296
            <enum>Qt::Horizontal</enum>
231 297
           </property>
298
           <property name="sizeType">
299
            <enum>QSizePolicy::Minimum</enum>
300
           </property>
232 301
           <property name="sizeHint" stdset="0">
233 302
            <size>
234 303
             <width>40</width>
......
279 348
       </item>
280 349
       <item>
281 350
        <widget class="QPushButton" name="pushButton_11">
351
         <property name="sizePolicy">
352
          <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
353
           <horstretch>0</horstretch>
354
           <verstretch>0</verstretch>
355
          </sizepolicy>
356
         </property>
282 357
         <property name="minimumSize">
283 358
          <size>
284 359
           <width>35</width>
......
530 605
             <layout class="QHBoxLayout" name="horizontalLayout_5">
531 606
              <item>
532 607
               <widget class="QPushButton" name="pushButton_14">
608
                <property name="sizePolicy">
609
                 <sizepolicy hsizetype="Minimum" vsizetype="Maximum">
610
                  <horstretch>0</horstretch>
611
                  <verstretch>0</verstretch>
612
                 </sizepolicy>
613
                </property>
614
                <property name="minimumSize">
615
                 <size>
616
                  <width>0</width>
617
                  <height>32</height>
618
                 </size>
619
                </property>
620
                <property name="maximumSize">
621
                 <size>
622
                  <width>16777215</width>
623
                  <height>32</height>
624
                 </size>
625
                </property>
533 626
                <property name="text">
534 627
                 <string>PushButton</string>
535 628
                </property>
......
537 630
              </item>
538 631
              <item>
539 632
               <widget class="QPushButton" name="pushButton_13">
633
                <property name="sizePolicy">
634
                 <sizepolicy hsizetype="Minimum" vsizetype="Maximum">
635
                  <horstretch>0</horstretch>
636
                  <verstretch>0</verstretch>
637
                 </sizepolicy>
638
                </property>
639
                <property name="minimumSize">
640
                 <size>
641
                  <width>0</width>
642
                  <height>32</height>
643
                 </size>
644
                </property>
645
                <property name="maximumSize">
646
                 <size>
647
                  <width>16777215</width>
648
                  <height>32</height>
649
                 </size>
650
                </property>
540 651
                <property name="text">
541 652
                 <string>PushButton</string>
542 653
                </property>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)