Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

cmdui: CamelCase member names for Dialog class

Changeset 62dca56cb680

Parent e691cb1202f9

by Steve Borho

Changes to one file · Browse files at 62dca56cb680 Showing diff from parent e691cb1202f9 Diff from another changeset...

 
726
727
728
729
730
 
 
731
732
733
734
735
 
 
 
 
 
736
737
738
739
740
 
 
 
 
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
 
757
758
759
 
782
783
784
785
 
786
787
788
789
790
791
 
 
 
792
793
794
 
726
727
728
 
 
729
730
731
732
 
 
 
733
734
735
736
737
738
 
 
 
 
739
740
741
742
743
744
745
746
747
748
 
 
 
749
750
751
752
753
754
 
755
756
757
758
 
781
782
783
 
784
785
786
787
 
 
 
788
789
790
791
792
793
@@ -726,34 +726,33 @@
    # bottom buttons   buttons = QDialogButtonBox() - self.cancel_btn = buttons.addButton(QDialogButtonBox.Cancel) - self.cancel_btn.clicked.connect(self.core.cancel) + self.cancelBtn = buttons.addButton(QDialogButtonBox.Cancel) + self.cancelBtn.clicked.connect(self.core.cancel)   self.core.commandCanceling.connect(self.commandCanceling)   - self.close_btn = buttons.addButton(QDialogButtonBox.Close) - self.close_btn.clicked.connect(self.reject) - self.detail_btn = buttons.addButton(_('Detail'), + self.closeBtn = buttons.addButton(QDialogButtonBox.Close) + self.closeBtn.setHidden(True) + self.closeBtn.clicked.connect(self.reject) + + self.detailBtn = buttons.addButton(_('Detail'),   QDialogButtonBox.ResetRole) - self.detail_btn.setAutoDefault(False) - self.detail_btn.setCheckable(True) - self.detail_btn.setChecked(True) - self.detail_btn.toggled.connect(self.show_output) + self.detailBtn.setAutoDefault(False) + self.detailBtn.setCheckable(True) + self.detailBtn.setChecked(True) + self.detailBtn.toggled.connect(self.show_output)   vbox.addWidget(buttons)     self.setLayout(vbox)   self.setWindowTitle(_('TortoiseHg Command Dialog'))   self.resize(540, 420)   - # prepare to show - self.close_btn.setHidden(True) -   # start command   self.core.run(cmdline)     def show_output(self, visible):   """show/hide command output"""   self.core.output_text.setVisible(visible) - self.detail_btn.setChecked(visible) + self.detailBtn.setChecked(visible)     # workaround to adjust only window height   self.setMinimumWidth(self.width()) @@ -782,13 +781,13 @@
    @pyqtSlot()   def commandCanceling(self): - self.cancel_btn.setDisabled(True) + self.cancelBtn.setDisabled(True)     @pyqtSlot(int)   def commandFinished(self, ret): - self.cancel_btn.setHidden(True) - self.close_btn.setShown(True) - self.close_btn.setFocus() + self.cancelBtn.setHidden(True) + self.closeBtn.setShown(True) + self.closeBtn.setFocus()    class Runner(QWidget):   """A component for running Mercurial command without UI