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

hgignore: add frames and labels to two list widgets

Changeset c53902617100

Parent 4b8339bc5377

by Steve Borho

Changes to one file · Browse files at c53902617100 Showing diff from parent 4b8339bc5377 Diff from another changeset...

 
18
19
20
21
22
23
24
25
26
 
82
83
84
85
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
88
89
90
91
 
 
92
93
94
 
18
19
20
 
 
 
21
22
23
 
79
80
81
 
 
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
@@ -18,9 +18,6 @@
   from tortoisehg.hgqt import qtlib   -# Technical Debt: -# Labels for list widgets -  class HgignoreDialog(QDialog):   'Edit a reposiory .hgignore file'   @@ -82,13 +79,33 @@
  split = QSplitter()   vbox.addWidget(split, 1)   - ignorelist = QListWidget(split) - unknownlist = QListWidget(split) + ignoregb = QFrame() + ignoregb.setFrameStyle(QFrame.Panel|QFrame.Raised) + ivbox = QVBoxLayout() + ignoregb.setLayout(ivbox) + lbl = QLabel(_('<b>Ignore Filter</b>')) + ivbox.addWidget(lbl) + split.addWidget(ignoregb) + + unknowngb = QFrame() + unknowngb.setFrameStyle(QFrame.Panel|QFrame.Raised) + uvbox = QVBoxLayout() + unknowngb.setLayout(uvbox) + lbl = QLabel(_('<b>Untracked Files</b>')) + uvbox.addWidget(lbl) + split.addWidget(unknowngb) + + ignorelist = QListWidget() + ivbox.addWidget(ignorelist) + unknownlist = QListWidget() + uvbox.addWidget(unknownlist)   unknownlist.currentTextChanged.connect(self.setGlobFilter)   unknownlist.setContextMenuPolicy(Qt.CustomContextMenu)   self.connect(unknownlist,   SIGNAL('customContextMenuRequested(const QPoint &)'),   self.customContextMenuRequested) + lbl = QLabel(_('Backspace or Del to remove a row')) + ivbox.addWidget(lbl)     # layer 4 - dialog buttons   BB = QDialogButtonBox