src/eric7/QScintilla/SortOptionsDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
14 14
15 class SortOptionsDialog(QDialog, Ui_SortOptionsDialog): 15 class SortOptionsDialog(QDialog, Ui_SortOptionsDialog):
16 """ 16 """
17 Class implementing a dialog to enter the sort options for a line sort. 17 Class implementing a dialog to enter the sort options for a line sort.
18 """ 18 """
19
19 def __init__(self, parent=None): 20 def __init__(self, parent=None):
20 """ 21 """
21 Constructor 22 Constructor
22 23
23 @param parent reference to the parent widget (QWidget) 24 @param parent reference to the parent widget (QWidget)
24 """ 25 """
25 super().__init__(parent) 26 super().__init__(parent)
26 self.setupUi(self) 27 self.setupUi(self)
27 28
28 msh = self.minimumSizeHint() 29 msh = self.minimumSizeHint()
29 self.resize(max(self.width(), msh.width()), msh.height()) 30 self.resize(max(self.width(), msh.width()), msh.height())
30 31
31 def getData(self): 32 def getData(self):
32 """ 33 """
33 Public method to get the selected options. 34 Public method to get the selected options.
34 35
35 @return tuple of three flags indicating ascending order, alphanumeric 36 @return tuple of three flags indicating ascending order, alphanumeric
36 sort and case sensitivity (tuple of three boolean) 37 sort and case sensitivity (tuple of three boolean)
37 """ 38 """
38 return ( 39 return (
39 self.ascendingButton.isChecked(), 40 self.ascendingButton.isChecked(),
40 self.alnumButton.isChecked(), 41 self.alnumButton.isChecked(),
41 self.respectCaseButton.isChecked() 42 self.respectCaseButton.isChecked(),
42 ) 43 )

eric ide

mercurial