프로젝트

일반

사용자정보

개정판 7da8145f

ID7da8145f7375ae04a93487de90225a21d9718984
상위 39d5c40a
하위 402d231a

백흠경이(가) 약 6년 전에 추가함

issue #578: add a button to refresh drawing list

차이점 보기:

DTI_PID/DTI_PID/MainWindow.py
1 1
# coding: utf-8
2
"""
3
This is MainWindow module
4
"""
2 5

  
3 6
import sys
4 7
import os
......
161 164
        self.actionLine.triggered.connect(self.onPlaceLine)
162 165
        self.actionRecognition.triggered.connect(self.recognize)
163 166
        self.pushButtonBatchRecognition.clicked.connect(self.recognizeBatch)
167
        self.pushButtonRefreshDrawings.clicked.connect(self.load_drawing_list)
164 168
        self.actionLineRecognition.triggered.connect(self.recognizeLine)
165 169
        self.actionArea.triggered.connect(self.areaConfiguration)
166 170
        self.actionConfiguration.triggered.connect(self.configuration)
DTI_PID/DTI_PID/MainWindow_UI.py
87 87
        self.dockWidget.setWidget(self.dockWidgetContents)
88 88
        MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockWidget)
89 89
        self.dockWidgetObjectExplorer = QtWidgets.QDockWidget(MainWindow)
90
        self.dockWidgetObjectExplorer.setMinimumSize(QtCore.QSize(300, 190))
90
        self.dockWidgetObjectExplorer.setMinimumSize(QtCore.QSize(300, 219))
91 91
        self.dockWidgetObjectExplorer.setObjectName("dockWidgetObjectExplorer")
92 92
        self.dockWidgetContents_2 = QtWidgets.QWidget()
93 93
        self.dockWidgetContents_2.setObjectName("dockWidgetContents_2")
......
109 109
        self.gridLayout_7.setObjectName("gridLayout_7")
110 110
        self.verticalLayoutDrawingList = QtWidgets.QVBoxLayout()
111 111
        self.verticalLayoutDrawingList.setObjectName("verticalLayoutDrawingList")
112
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
113
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
112 114
        self.pushButtonBatchRecognition = QtWidgets.QPushButton(self.tabDrawingList)
113 115
        self.pushButtonBatchRecognition.setMaximumSize(QtCore.QSize(80, 16777215))
114 116
        self.pushButtonBatchRecognition.setObjectName("pushButtonBatchRecognition")
115
        self.verticalLayoutDrawingList.addWidget(self.pushButtonBatchRecognition)
117
        self.horizontalLayout_4.addWidget(self.pushButtonBatchRecognition)
118
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
119
        self.horizontalLayout_4.addItem(spacerItem)
120
        self.pushButtonRefreshDrawings = QtWidgets.QPushButton(self.tabDrawingList)
121
        self.pushButtonRefreshDrawings.setObjectName("pushButtonRefreshDrawings")
122
        self.horizontalLayout_4.addWidget(self.pushButtonRefreshDrawings)
123
        self.verticalLayoutDrawingList.addLayout(self.horizontalLayout_4)
116 124
        self.treeWidgetDrawingList = QtWidgets.QTreeWidget(self.tabDrawingList)
117 125
        self.treeWidgetDrawingList.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
118 126
        self.treeWidgetDrawingList.setColumnCount(2)
......
143 151
        self.verticalLayout_2.setObjectName("verticalLayout_2")
144 152
        self.horizontalLayout = QtWidgets.QHBoxLayout()
145 153
        self.horizontalLayout.setObjectName("horizontalLayout")
146
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
147
        self.horizontalLayout.addItem(spacerItem)
154
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
155
        self.horizontalLayout.addItem(spacerItem1)
148 156
        self.pushButtonClearLog = QtWidgets.QPushButton(self.dockWidgetContents_3)
149 157
        self.pushButtonClearLog.setMaximumSize(QtCore.QSize(32, 16777215))
150 158
        self.pushButtonClearLog.setObjectName("pushButtonClearLog")
......
440 448
        self.dockWidgetObjectExplorer.setWindowTitle(_translate("MainWindow", "객체 탐색기"))
441 449
        self.tabWidgetItemExplorer.setTabText(self.tabWidgetItemExplorer.indexOf(self.tabItemProperty), _translate("MainWindow", "객체 탐색기"))
442 450
        self.pushButtonBatchRecognition.setText(_translate("MainWindow", "배치 작업"))
451
        self.pushButtonRefreshDrawings.setText(_translate("MainWindow", "도면 리스트 갱신"))
443 452
        self.treeWidgetDrawingList.setSortingEnabled(True)
444 453
        self.tabWidgetItemExplorer.setTabText(self.tabWidgetItemExplorer.indexOf(self.tabDrawingList), _translate("MainWindow", "도면 리스트"))
445 454
        self.EditToolbar.setWindowTitle(_translate("MainWindow", "Edit Toolbar"))
DTI_PID/DTI_PID/UI/MainWindow.ui
205 205
   <property name="minimumSize">
206 206
    <size>
207 207
     <width>300</width>
208
     <height>190</height>
208
     <height>219</height>
209 209
    </size>
210 210
   </property>
211 211
   <property name="windowTitle">
......
239 239
         <item row="0" column="0">
240 240
          <layout class="QVBoxLayout" name="verticalLayoutDrawingList">
241 241
           <item>
242
            <widget class="QPushButton" name="pushButtonBatchRecognition">
243
             <property name="maximumSize">
244
              <size>
245
               <width>80</width>
246
               <height>16777215</height>
247
              </size>
248
             </property>
249
             <property name="text">
250
              <string>배치 작업</string>
251
             </property>
252
            </widget>
242
            <layout class="QHBoxLayout" name="horizontalLayout_4">
243
             <item>
244
              <widget class="QPushButton" name="pushButtonBatchRecognition">
245
               <property name="maximumSize">
246
                <size>
247
                 <width>80</width>
248
                 <height>16777215</height>
249
                </size>
250
               </property>
251
               <property name="text">
252
                <string>배치 작업</string>
253
               </property>
254
              </widget>
255
             </item>
256
             <item>
257
              <spacer name="horizontalSpacer_2">
258
               <property name="orientation">
259
                <enum>Qt::Horizontal</enum>
260
               </property>
261
               <property name="sizeHint" stdset="0">
262
                <size>
263
                 <width>40</width>
264
                 <height>20</height>
265
                </size>
266
               </property>
267
              </spacer>
268
             </item>
269
             <item>
270
              <widget class="QPushButton" name="pushButtonRefreshDrawings">
271
               <property name="text">
272
                <string>도면 리스트 갱신</string>
273
               </property>
274
              </widget>
275
             </item>
276
            </layout>
253 277
           </item>
254 278
           <item>
255 279
            <widget class="QTreeWidget" name="treeWidgetDrawingList">

내보내기 Unified diff

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