def __init__(self, parent = None): QtGui.QWidget.__init__(self, parent) self.patient = None self.notes_browser = QtWebKit.QWebView(self) self.notes_browser.settings().setUserStyleSheetUrl( QtCore.QUrl.fromLocalFile(SETTINGS.NOTES_CSS)) self.notes_browser.setHtml(messages.welcome_html( self.notes_browser.width())) self.clinical_editor = AddNotesWidget() self.clerical_editor = AddNotesWidget() layout = QtGui.QVBoxLayout(self) layout.addWidget(self.notes_browser) layout.addWidget(self.clerical_editor) layout.addWidget(self.clinical_editor) self.is_loaded = False self.clinical_editor.hide() self.clerical_editor.hide() self.notes_browser.linkClicked.connect(self._link_clicked) self.connect(self.clinical_editor, QtCore.SIGNAL("Save Requested"), self.clinical_note_edited) self.connect(self.clerical_editor, QtCore.SIGNAL("Save Requested"), self.clerical_note_edited)
def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.patient = None self.notes_browser = QtWebKit.QWebView(self) self.notes_browser.settings().setUserStyleSheetUrl( QtCore.QUrl.fromLocalFile(SETTINGS.NOTES_CSS)) self.notes_browser.setHtml( messages.welcome_html(self.notes_browser.width())) self.clinical_editor = AddNotesWidget() self.clerical_editor = AddNotesWidget() layout = QtGui.QVBoxLayout(self) layout.addWidget(self.notes_browser) layout.addWidget(self.clerical_editor) layout.addWidget(self.clinical_editor) self.is_loaded = False self.clinical_editor.hide() self.clerical_editor.hide() self.notes_browser.linkClicked.connect(self._link_clicked) self.connect(self.clinical_editor, QtCore.SIGNAL("Save Requested"), self.clinical_note_edited) self.connect(self.clerical_editor, QtCore.SIGNAL("Save Requested"), self.clerical_note_edited)
def clear(self): self.notes_browser.setHtml(messages.welcome_html( self.notes_browser.width())) self.is_loaded = False self._new_note = None
def clear(self): self.notes_browser.setHtml( messages.welcome_html(self.notes_browser.width())) self.is_loaded = False self._new_note = None