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