Commits

Yuya Nishihara committed b8520e3

mq: remove unused items from OptionsDialog

OptionsDialog needs redesign. It only has "--force" now.

Comments (0)

Files changed (1)

tortoisehg/hgqt/mq.py

         QDialog.__init__(self, parent)
         self.setWindowTitle(_('MQ options'))
 
-        layout = QFormLayout()
+        layout = QVBoxLayout()
         self.setLayout(layout)
 
-        self.gitcb = QCheckBox(
-            _('Force use of git extended diff format (--git)'))
-        layout.addRow(self.gitcb, None)
-
         self.forcecb = QCheckBox(
             _('Force push or pop (--force)'))
-        layout.addRow(self.forcecb, None)
+        layout.addWidget(self.forcecb)
 
-        self.exactcb = QCheckBox(
-            _('Apply patch to its recorded parent (--exact)'))
-        layout.addRow(self.exactcb, None)
-
-        self.currentdatecb = QCheckBox(
-            _('Update date field with current date (--currentdate)'))
-        layout.addRow(self.currentdatecb, None)
-
-        self.datele = QLineEdit()
-        layout.addRow(QLabel(_('Specify an explicit date:')), self.datele)
-
-        self.currentusercb = QCheckBox(
-            _('Update author field with current user (--currentuser)'))
-        layout.addRow(self.currentusercb, None)
-
-        self.userle = QLineEdit()
-        layout.addRow(QLabel(_('Specify an explicit author:')), self.userle)
-
-        self.currentdatecb.toggled.connect(self.datele.setDisabled)
-        self.currentusercb.toggled.connect(self.userle.setDisabled)
-
-        self.gitcb.setChecked(parent.opts.get('git', False))
         self.forcecb.setChecked(parent.opts.get('force', False))
-        self.exactcb.setChecked(parent.opts.get('exact', False))
-        self.currentdatecb.setChecked(parent.opts.get('currentdate', False))
-        self.currentusercb.setChecked(parent.opts.get('currentuser', False))
-        self.datele.setText(hglib.tounicode(parent.opts.get('date', '')))
-        self.userle.setText(hglib.tounicode(parent.opts.get('user', '')))
 
         BB = QDialogButtonBox
         bb = QDialogButtonBox(BB.Ok|BB.Cancel)
 
     def accept(self):
         outopts = {}
-        outopts['git'] = self.gitcb.isChecked()
         outopts['force'] = self.forcecb.isChecked()
-        outopts['exact'] = self.exactcb.isChecked()
-        outopts['currentdate'] = self.currentdatecb.isChecked()
-        outopts['currentuser'] = self.currentusercb.isChecked()
-        if self.currentdatecb.isChecked():
-            outopts['date'] = ''
-        else:
-            outopts['date'] = hglib.fromunicode(self.datele.text())
-        if self.currentusercb.isChecked():
-            outopts['user'] = ''
-        else:
-            outopts['user'] = hglib.fromunicode(self.userle.text())
-
         self.outopts = outopts
         QDialog.accept(self)