QScintilla/SortOptionsDialog.py

branch
Py2 comp.
changeset 2677
3d4277929fb3
parent 2589
a51b0c113ed7
child 3057
10516539f238
equal deleted inserted replaced
2670:e60ea6cb8e11 2677:3d4277929fb3
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2013 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 # __IGNORE_WARNING__
11
12 from PyQt4.QtGui 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 def getData(self):
31 """
32 Public method to get the selected options.
33
34 @return tuple of three flags indicating ascending order, alphanumeric sort
35 and case sensitivity (tuple of three boolean)
36 """
37 return (
38 self.ascendingButton.isChecked(),
39 self.alnumButton.isChecked(),
40 self.respectCaseButton.isChecked()
41 )

eric ide

mercurial