2012-01-12 16:40:23 -06:00
|
|
|
from objp.util import pyref
|
2012-01-13 09:20:46 -06:00
|
|
|
from cocoa.inter2 import PyGUIObject2, GUIObjectView
|
2011-09-21 15:02:13 -05:00
|
|
|
|
2012-01-12 16:40:23 -06:00
|
|
|
class PrioritizeDialogView(GUIObjectView):
|
|
|
|
pass
|
2011-09-21 15:02:13 -05:00
|
|
|
|
2012-01-13 09:20:46 -06:00
|
|
|
class PyPrioritizeDialog(PyGUIObject2):
|
2012-01-12 16:40:23 -06:00
|
|
|
def categoryList(self) -> pyref:
|
|
|
|
return self.model.category_list
|
2011-09-21 15:02:13 -05:00
|
|
|
|
2012-01-12 16:40:23 -06:00
|
|
|
def criteriaList(self) -> pyref:
|
|
|
|
return self.model.criteria_list
|
2011-09-21 15:02:13 -05:00
|
|
|
|
2012-01-12 16:40:23 -06:00
|
|
|
def prioritizationList(self) -> pyref:
|
|
|
|
return self.model.prioritization_list
|
2011-09-21 15:02:13 -05:00
|
|
|
|
|
|
|
def addSelected(self):
|
2012-01-12 16:40:23 -06:00
|
|
|
self.model.add_selected()
|
2011-09-21 15:02:13 -05:00
|
|
|
|
|
|
|
def removeSelected(self):
|
2012-01-12 16:40:23 -06:00
|
|
|
self.model.remove_selected()
|
2011-09-21 15:02:13 -05:00
|
|
|
|
|
|
|
def performReprioritization(self):
|
2012-01-12 16:40:23 -06:00
|
|
|
self.model.perform_reprioritization()
|