eric6/QScintilla/SortOptionsDialog.py

changeset 6942
2602857055c5
parent 6645
ad476851d7e0
child 7229
53054eb5b15a
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2013 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing a dialog to enter the sort options for a line sort.
8 """
9
10 from __future__ import unicode_literals
11
12 from PyQt5.QtWidgets import QDialog
13
14 from .Ui_SortOptionsDialog import Ui_SortOptionsDialog
15
16
17 class SortOptionsDialog(QDialog, Ui_SortOptionsDialog):
18 """
19 Class implementing a dialog to enter the sort options for a line sort.
20 """
21 def __init__(self, parent=None):
22 """
23 Constructor
24
25 @param parent reference to the parent widget (QWidget)
26 """
27 super(SortOptionsDialog, self).__init__(parent)
28 self.setupUi(self)
29
30 msh = self.minimumSizeHint()
31 self.resize(max(self.width(), msh.width()), msh.height())
32
33 def getData(self):
34 """
35 Public method to get the selected options.
36
37 @return tuple of three flags indicating ascending order, alphanumeric
38 sort and case sensitivity (tuple of three boolean)
39 """
40 return (
41 self.ascendingButton.isChecked(),
42 self.alnumButton.isChecked(),
43 self.respectCaseButton.isChecked()
44 )

eric ide

mercurial