Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1.2 and tip

stable purge: move status bar to bottom and fix layout

Changeset 2c4a7446f105

Parent 6695ed63099e

by David Golub

Changes to one file · Browse files at 2c4a7446f105 Showing diff from parent 6695ed63099e Diff from another changeset...

 
27
28
29
30
 
 
 
 
 
 
 
 
 
31
32
33
34
35
 
36
37
38
39
40
41
 
42
43
44
45
46
47
 
48
49
50
51
52
 
53
54
55
56
57
58
59
60
61
 
62
63
64
65
66
67
68
 
 
 
 
 
 
 
69
70
71
 
27
28
29
 
30
31
32
33
34
35
36
37
38
39
40
41
42
 
43
44
45
46
47
48
 
49
50
51
52
53
54
 
55
56
57
58
59
 
60
61
62
 
 
 
 
 
 
 
63
64
65
66
67
68
69
 
70
71
72
73
74
75
76
77
78
79
@@ -27,45 +27,53 @@
  QDialog.__init__(self, parent)   f = self.windowFlags()   self.setWindowFlags(f & ~Qt.WindowContextHelpButtonHint) - self.setLayout(QVBoxLayout()) + layout = QVBoxLayout() + layout.setMargin(0) + layout.setSpacing(0) + self.setLayout(layout) + + toplayout = QVBoxLayout() + toplayout.setMargin(10) + toplayout.setSpacing(5) + layout.addLayout(toplayout)     cb = QCheckBox(_('No unknown files found'))   cb.setChecked(False)   cb.setEnabled(False) - self.layout().addWidget(cb) + toplayout.addWidget(cb)   self.ucb = cb     cb = QCheckBox(_('No ignored files found'))   cb.setChecked(False)   cb.setEnabled(False) - self.layout().addWidget(cb) + toplayout.addWidget(cb)   self.icb = cb     cb = QCheckBox(_('No trash files found'))   cb.setChecked(False)   cb.setEnabled(False) - self.layout().addWidget(cb) + toplayout.addWidget(cb)   self.tcb = cb     self.foldercb = QCheckBox(_('Delete empty folders'))   self.foldercb.setChecked(True) - self.layout().addWidget(self.foldercb) + toplayout.addWidget(self.foldercb)   self.hgfilecb = QCheckBox(_('Preserve files beginning with .hg'))   self.hgfilecb.setChecked(True) - self.layout().addWidget(self.hgfilecb) - - self.stbar = cmdui.ThgStatusBar(self) - self.stbar.setSizeGripEnabled(False) - self.progress.connect(self.stbar.progress) - self.showMessage.connect(self.stbar.showMessage) - self.layout().addWidget(self.stbar) + toplayout.addWidget(self.hgfilecb)     BB = QDialogButtonBox   bb = QDialogButtonBox(BB.Ok|BB.Cancel)   bb.accepted.connect(self.accept)   bb.rejected.connect(self.reject)   self.bb = bb - self.layout().addWidget(bb) + toplayout.addStretch() + toplayout.addWidget(bb) + + self.stbar = cmdui.ThgStatusBar(self) + self.progress.connect(self.stbar.progress) + self.showMessage.connect(self.stbar.showMessage) + layout.addWidget(self.stbar)     self.setWindowTitle(_('%s - purge') % repo.displayname)   self.setWindowIcon(qtlib.geticon('hg-purge'))