module: prop_mvc_view

MVC View for proposals

see:http://www.saltycrane.com/blog/2008/01/pyqt-43-simple-qabstractlistmodel/
see:http://www.saltycrane.com/blog/2007/12/pyqt-43-qtableview-qabstracttablemodel/
class Assign_GUP.prop_mvc_view.AGUP_Proposals_View(parent=None, agup=None, settings=None)[source]

Bases: PyQt4.QtGui.QWidget

Manage the list of proposals, including assignments of topic weights and reviewers

Parameters:
  • parent (obj) – instance of main_window.AGUP_MainWindow or None
  • agup (obj) – instance of agup_data.AGUP_Data
  • settings (obj) – instance of settings.ApplicationQSettings
closeEvent(event)[source]

in response to user requesting the window be closed

details_modified()[source]

OK to select a different proposal now?

editProposal(prop_id, prev_prop_index)[source]

select Proposal for editing as referenced by ID number

index_to_ID(index)[source]

convert QListView index to GUP ID string

isProposalListModified()[source]
onAssignmentsChanged()[source]

called when a reviewer assignment checkbox has been changed

onTopicValueChanged(prop_id, topic, value)[source]

called when user changed a topic value in the details panel

on_item_clicked(index)[source]

called when changing the selected Proposal in the list

recalc()[source]

recalculate dot products

restoreWindowGeometry()[source]

put the window back where it was

saveWindowGeometry()[source]

remember where the window was

selectFirstListItem()[source]
selectModelByIndex(curr, prev)[source]

select Proposal for editing as referenced by QListView index

Parameters:
  • curr (index) – GUP ID string of current selected proposal
  • prev (index) – QListView index of previously selected proposal
setModel(model)[source]
update()[source]