36 if not projectOpen: |
36 if not projectOpen: |
37 self.projectCheckBox.setEnabled(False) |
37 self.projectCheckBox.setEnabled(False) |
38 if task is not None: |
38 if task is not None: |
39 self.summaryEdit.setText(task.summary) |
39 self.summaryEdit.setText(task.summary) |
40 self.descriptionEdit.setText(task.description) |
40 self.descriptionEdit.setText(task.description) |
41 self.creationLabel.setText(time.strftime("%Y-%m-%d, %H:%M:%S", |
41 self.creationLabel.setText( |
42 time.localtime(task.created))) |
42 time.strftime("%Y-%m-%d, %H:%M:%S", |
|
43 time.localtime(task.created))) |
43 self.priorityCombo.setCurrentIndex(task.priority) |
44 self.priorityCombo.setCurrentIndex(task.priority) |
44 self.projectCheckBox.setChecked(task._isProjectTask) |
45 self.projectCheckBox.setChecked(task._isProjectTask) |
45 self.completedCheckBox.setChecked(task.completed) |
46 self.completedCheckBox.setChecked(task.completed) |
46 self.filenameEdit.setText(task.filename) |
47 self.filenameEdit.setText(task.filename) |
47 if task.lineno: |
48 if task.lineno: |
61 def getData(self): |
62 def getData(self): |
62 """ |
63 """ |
63 Public method to retrieve the dialogs data. |
64 Public method to retrieve the dialogs data. |
64 |
65 |
65 @return tuple of description, priority, completion flag, |
66 @return tuple of description, priority, completion flag, |
66 project flag and long text (string, string, boolean, boolean, string) |
67 project flag and long text (string, string, boolean, |
|
68 boolean, string) |
67 """ |
69 """ |
68 return (self.summaryEdit.text(), self.priorityCombo.currentIndex(), |
70 return (self.summaryEdit.text(), |
69 self.completedCheckBox.isChecked(), self.projectCheckBox.isChecked(), |
71 self.priorityCombo.currentIndex(), |
|
72 self.completedCheckBox.isChecked(), |
|
73 self.projectCheckBox.isChecked(), |
70 self.descriptionEdit.toPlainText()) |
74 self.descriptionEdit.toPlainText()) |