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

update: add 'Detail' button to toggle command output

Changeset 40aa4c8df7ef

Parent 7d4164b6c39f

by Yuki KODAMA

Changes to one file · Browse files at 40aa4c8df7ef Showing diff from parent 7d4164b6c39f Diff from another changeset...

 
117
118
119
 
 
 
 
 
120
121
122
 
133
134
135
 
136
137
138
 
164
165
166
 
 
 
167
168
169
 
171
172
173
 
174
175
176
 
117
118
119
120
121
122
123
124
125
126
127
 
138
139
140
141
142
143
144
 
170
171
172
173
174
175
176
177
178
 
180
181
182
183
184
185
186
@@ -117,6 +117,11 @@
  self.update_btn = buttons.addButton(_('&Update'),   QDialogButtonBox.ActionRole)   self.update_btn.clicked.connect(self.update_clicked) + self.detail_btn = buttons.addButton(_('Detail'), + QDialogButtonBox.ResetRole) + self.detail_btn.setAutoDefault(False) + self.detail_btn.setCheckable(True) + self.detail_btn.toggled.connect(self.detail_toggled)   box.addWidget(buttons)     # signal handlers @@ -133,6 +138,7 @@
  self.rev_combo.lineEdit().selectAll()   self.cmd.setHidden(True)   self.cancel_btn.setHidden(True) + self.detail_btn.setHidden(True)   self.update_info()     ### Private Methods ### @@ -164,6 +170,9 @@
  def cancel_clicked(self):   self.cmd.cancel()   + def detail_toggled(self, checked): + self.cmd.show_output(checked) +   def command_started(self):   self.cmd.setShown(True)   if self.showlog_chk.isChecked(): @@ -171,6 +180,7 @@
  self.update_btn.setHidden(True)   self.close_btn.setHidden(True)   self.cancel_btn.setShown(True) + self.detail_btn.setShown(True)     def command_finished(self, wrapper):   if wrapper.data is not 0 or self.cmd.is_show_output():