Esempio n. 1
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmEMRStructWidgets, gmDateTimeInput, gmDocumentWidgets

        # begin wxGlade: wxgReviewDocPartDlg.__init__
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX|wx.THICK_FRAME
        wx.Dialog.__init__(self, *args, **kwds)
        self.__szr_box_review_staticbox = wx.StaticBox(self, -1, _("Your review"))
        self.__szr_reviews_staticbox = wx.StaticBox(self, -1, _("Reviews by others"))
        self._PhWheel_episode = gmEMRStructWidgets.cEpisodeSelectionPhraseWheel(self, -1, style=wx.NO_BORDER)
        self._PhWheel_doc_type = gmDocumentWidgets.cDocumentTypeSelectionPhraseWheel(self, -1, style=wx.NO_BORDER)
        self._PRW_doc_comment = gmDocumentWidgets.cDocumentCommentPhraseWheel(self, -1, "", style=wx.NO_BORDER)
        self._PhWheel_doc_date = gmDateTimeInput.cFuzzyTimestampInput(self, -1, style=wx.NO_BORDER)
        self._TCTRL_reference = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._TCTRL_filename = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._SPINCTRL_seq_idx = wx.SpinCtrl(self, -1, "", min=0, max=10000, style=wx.SP_ARROW_KEYS|wx.SP_WRAP|wx.TE_AUTO_URL|wx.TE_NOHIDESEL|wx.NO_BORDER)
        self._LCTRL_existing_reviews = wx.ListCtrl(self, -1, style=wx.LC_REPORT|wx.LC_ALIGN_LEFT|wx.LC_SINGLE_SEL|wx.LC_HRULES|wx.LC_VRULES|wx.NO_BORDER)
        self._TCTRL_responsible = wx.TextCtrl(self, -1, _("(you are/are not the primary reviewer)"), style=wx.TE_READONLY|wx.NO_BORDER)
        self._ChBOX_review = wx.CheckBox(self, -1, _("review document"))
        self._ChBOX_abnormal = wx.CheckBox(self, -1, _("technically abnormal"))
        self._ChBOX_responsible = wx.CheckBox(self, -1, _("take over responsibility"))
        self._ChBOX_relevant = wx.CheckBox(self, -1, _("clinically relevant"))
        self._ChBOX_sign_all_pages = wx.CheckBox(self, -1, _("sign all pages"))
        self._BTN_save = wx.Button(self, wx.ID_OK, _("Save"))
        self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, _("Cancel"))

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_CHECKBOX, self._on_reviewed_box_checked, self._ChBOX_review)
        self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, id=wx.ID_OK)
Esempio n. 2
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgScanIdxPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
		wx.Panel.__init__(self, *args, **kwds)
		from Gnumed.wxpython.gmDocumentWidgets import cDocumentTypeSelectionPhraseWheel
		from Gnumed.wxpython.gmDocumentWidgets import cDocumentCommentPhraseWheel
		from Gnumed.wxpython.gmListWidgets import cReportListCtrl
		from Gnumed.wxpython.gmPhraseWheel import cPhraseWheel
		from Gnumed.wxpython import gmDateTimeInput
		from Gnumed.wxpython import gmEMRStructWidgets
		from Gnumed.wxpython import gmOrganizationWidgets
		self.__btn_scan = wx.Button(self, wx.ID_ANY, _("&Scan page(s)"))
		self.__btn_load = wx.Button(self, wx.ID_ANY, _("Pick &file(s)"))
		self.__btn_clipboard = wx.Button(self, wx.ID_ANY, _("&Clipboard"))
		self._PhWheel_doc_type = cDocumentTypeSelectionPhraseWheel(self, wx.ID_ANY)
		self._PhWheel_doc_date = gmDateTimeInput.cFuzzyTimestampInput(self, wx.ID_ANY)
		self._PhWheel_episode = gmEMRStructWidgets.cEpisodeSelectionPhraseWheel(self, wx.ID_ANY)
		self._PhWheel_source = gmOrganizationWidgets.cOrgUnitPhraseWheel(self, wx.ID_ANY)
		self._RBTN_org_is_source = wx.RadioButton(self, wx.ID_ANY, _("Source"))
		self._RBTN_org_is_receiver = wx.RadioButton(self, wx.ID_ANY, _("Receiver"))
		self._PRW_doc_comment = cDocumentCommentPhraseWheel(self, wx.ID_ANY, "")
		self.__lbl_reviewer = wx.StaticText(self, wx.ID_ANY, _("Intended reviewer:"))
		self._PhWheel_reviewer = cPhraseWheel(self, wx.ID_ANY)
		self._ChBOX_reviewed = wx.CheckBox(self, wx.ID_ANY, _("&review and sign"))
		self._ChBOX_abnormal = wx.CheckBox(self, wx.ID_ANY, _("&technically abnormal"))
		self._ChBOX_relevant = wx.CheckBox(self, wx.ID_ANY, _("&clinically relevant"))
		self._TBOX_description = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_CHARWRAP | wx.TE_MULTILINE | wx.TE_WORDWRAP)
		self._LCTRL_doc_pages = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
		self.__btn_show_page = wx.Button(self, wx.ID_ANY, _("Show"))
		self.__btn_del_page = wx.Button(self, wx.ID_ANY, _("Remove part"))
		self.__btn_save = wx.Button(self, wx.ID_ANY, _("Save"))
		self.__btn_discard = wx.Button(self, wx.ID_ANY, _("Discard"))
		self._TCTRL_metadata = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_WORDWRAP)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._scan_btn_pressed, self.__btn_scan)
		self.Bind(wx.EVT_BUTTON, self._load_btn_pressed, self.__btn_load)
		self.Bind(wx.EVT_BUTTON, self._clipboard_btn_pressed, self.__btn_clipboard)
		self.Bind(wx.EVT_CHECKBOX, self._reviewed_box_checked, self._ChBOX_reviewed)
		self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_part_selected, self._LCTRL_doc_pages)
		self.Bind(wx.EVT_BUTTON, self._show_btn_pressed, self.__btn_show_page)
		self.Bind(wx.EVT_BUTTON, self._del_btn_pressed, self.__btn_del_page)
		self.Bind(wx.EVT_BUTTON, self._save_btn_pressed, self.__btn_save)
		self.Bind(wx.EVT_BUTTON, self._startover_btn_pressed, self.__btn_discard)
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgFormTemplateEditAreaPnl.__init__
        kwds["style"] = kwds.get("style",
                                 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._PRW_name_long = cPhraseWheel(self, wx.ID_ANY, "")
        self._PRW_name_short = cPhraseWheel(self, wx.ID_ANY, "")
        self._TCTRL_external_version = wx.TextCtrl(self, wx.ID_ANY, "")
        self._CHBOX_active = wx.CheckBox(self, wx.ID_ANY, _("active"))
        self._CHBOX_editable = wx.CheckBox(self, wx.ID_ANY, _("editable"))
        self._PRW_template_type = cPhraseWheel(self, wx.ID_ANY, "")
        self._PRW_instance_type = cDocumentTypeSelectionPhraseWheel(
            self, wx.ID_ANY, "")
        self._CH_engine = wx.Choice(self,
                                    wx.ID_ANY,
                                    choices=[
                                        _("OpenOffice"),
                                        _("LaTeX"),
                                        _("Image editor"),
                                        _("Gnuplot"),
                                        _("PDF form editor"),
                                        _("AbiWord"),
                                        _("Xe(La)TeX"),
                                        _("Text (generic processing)")
                                    ])
        self._TCTRL_filename = wx.TextCtrl(self, wx.ID_ANY, "")
        self._BTN_load = wx.Button(self,
                                   wx.ID_ANY,
                                   _("&Load"),
                                   style=wx.BU_EXACTFIT)
        self._BTN_export = wx.Button(self,
                                     wx.ID_ANY,
                                     _("Export"),
                                     style=wx.BU_EXACTFIT)
        self._LBL_status = wx.StaticText(self, wx.ID_ANY, "")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_load_button_pressed, self._BTN_load)
        self.Bind(wx.EVT_BUTTON, self._on_export_button_pressed,
                  self._BTN_export)
Esempio n. 4
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgFormTemplateEditAreaPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._PRW_name_long = cPhraseWheel(self, wx.ID_ANY, "")
		self._PRW_name_short = cPhraseWheel(self, wx.ID_ANY, "")
		self._TCTRL_external_version = wx.TextCtrl(self, wx.ID_ANY, "")
		self._CHBOX_active = wx.CheckBox(self, wx.ID_ANY, _("active"))
		self._CHBOX_editable = wx.CheckBox(self, wx.ID_ANY, _("editable"))
		self._PRW_template_type = cPhraseWheel(self, wx.ID_ANY, "")
		self._PRW_instance_type = cDocumentTypeSelectionPhraseWheel(self, wx.ID_ANY, "")
		self._CH_engine = wx.Choice(self, wx.ID_ANY, choices=[_("OpenOffice"), _("LaTeX"), _("Image editor"), _("Gnuplot"), _("PDF form editor"), _("AbiWord"), _("Xe(La)TeX"), _("Text (generic processing)")])
		self._TCTRL_filename = wx.TextCtrl(self, wx.ID_ANY, "")
		self._BTN_load = wx.Button(self, wx.ID_ANY, _("&Load"), style=wx.BU_EXACTFIT)
		self._BTN_export = wx.Button(self, wx.ID_ANY, _("Export"), style=wx.BU_EXACTFIT)
		self._LBL_status = wx.StaticText(self, wx.ID_ANY, "")

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_load_button_pressed, self._BTN_load)
		self.Bind(wx.EVT_BUTTON, self._on_export_button_pressed, self._BTN_export)
Esempio n. 5
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgReviewDocPartDlg.__init__
		kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER
		wx.Dialog.__init__(self, *args, **kwds)
		from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel
		self._PhWheel_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, style=wx.NO_BORDER)
		from Gnumed.wxpython.gmDocumentWidgets import cDocumentTypeSelectionPhraseWheel
		self._PhWheel_doc_type = cDocumentTypeSelectionPhraseWheel(self, wx.ID_ANY, style=wx.NO_BORDER)
		from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel
		self._PRW_org = cOrgUnitPhraseWheel(self, wx.ID_ANY, "")
		self._RBTN_org_is_source = wx.RadioButton(self, wx.ID_ANY, _("Source"))
		self._RBTN_org_is_receiver = wx.RadioButton(self, wx.ID_ANY, _("Receiver"))
		from Gnumed.wxpython.gmHospitalStayWidgets import cHospitalStayPhraseWheel
		self._PRW_hospital_stay = cHospitalStayPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmDocumentWidgets import cDocumentCommentPhraseWheel
		self._PRW_doc_comment = cDocumentCommentPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput
		self._PhWheel_doc_date = cFuzzyTimestampInput(self, wx.ID_ANY, style=wx.NO_BORDER)
		self._TCTRL_reference = wx.TextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_filename = wx.TextCtrl(self, wx.ID_ANY, "")
		self._SPINCTRL_seq_idx = wx.SpinCtrl(self, wx.ID_ANY, "", min=0, max=10000, style=wx.SP_ARROW_KEYS | wx.SP_WRAP | wx.TE_AUTO_URL | wx.TE_NOHIDESEL)
		self._LCTRL_existing_reviews = wx.ListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_ALIGN_LEFT | wx.LC_HRULES | wx.LC_REPORT | wx.LC_SINGLE_SEL | wx.LC_VRULES)
		self._TCTRL_responsible = wx.TextCtrl(self, wx.ID_ANY, _("(you are/are not the primary reviewer)"), style=wx.TE_READONLY)
		self._ChBOX_review = wx.CheckBox(self, wx.ID_ANY, _("review document"))
		self._ChBOX_abnormal = wx.CheckBox(self, wx.ID_ANY, _("technically abnormal"))
		self._ChBOX_responsible = wx.CheckBox(self, wx.ID_ANY, _("take over responsibility"))
		self._ChBOX_relevant = wx.CheckBox(self, wx.ID_ANY, _("clinically relevant"))
		self._ChBOX_sign_all_pages = wx.CheckBox(self, wx.ID_ANY, _("sign all pages"))
		self._BTN_save = wx.Button(self, wx.ID_OK, _("Save"))
		self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, _("Cancel"))

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_CHECKBOX, self._on_reviewed_box_checked, self._ChBOX_review)
		self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, id=wx.ID_OK)
Esempio n. 6
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmDocumentWidgets
        from Gnumed.wxpython import gmPhraseWheel
        from Gnumed.wxpython import gmDateTimeInput
        from Gnumed.wxpython import gmEMRStructWidgets
        from Gnumed.wxpython import gmOrganizationWidgets
        from Gnumed.wxpython import gmListWidgets

        # begin wxGlade: wxgScanIdxPnl.__init__
        kwds["style"] = wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)
        self.__btn_scan = wx.Button(self, wx.ID_ANY, _("&Scan page(s)"))
        self.__btn_load = wx.Button(self, wx.ID_ANY, _("Pick &file(s)"))
        self.__btn_clipboard = wx.Button(self, wx.ID_ANY, _("&Clipboard"))
        self._PhWheel_doc_type = gmDocumentWidgets.cDocumentTypeSelectionPhraseWheel(
            self, wx.ID_ANY)
        self._PhWheel_doc_date = gmDateTimeInput.cFuzzyTimestampInput(
            self, wx.ID_ANY)
        self._PhWheel_episode = gmEMRStructWidgets.cEpisodeSelectionPhraseWheel(
            self, wx.ID_ANY)
        self._PhWheel_source = gmOrganizationWidgets.cOrgUnitPhraseWheel(
            self, wx.ID_ANY)
        self._RBTN_org_is_source = wx.RadioButton(self, wx.ID_ANY, _("Source"))
        self._RBTN_org_is_receiver = wx.RadioButton(self, wx.ID_ANY,
                                                    _("Receiver"))
        self._PRW_doc_comment = gmDocumentWidgets.cDocumentCommentPhraseWheel(
            self, wx.ID_ANY, "")
        self.__lbl_reviewer = wx.StaticText(self, wx.ID_ANY,
                                            _("Intended reviewer:"))
        self._PhWheel_reviewer = gmPhraseWheel.cPhraseWheel(self, wx.ID_ANY)
        self._ChBOX_reviewed = wx.CheckBox(self, wx.ID_ANY,
                                           _("&review and sign"))
        self._ChBOX_abnormal = wx.CheckBox(self, wx.ID_ANY,
                                           _("&technically abnormal"))
        self._ChBOX_relevant = wx.CheckBox(self, wx.ID_ANY,
                                           _("&clinically relevant"))
        self._TBOX_description = wx.TextCtrl(
            self,
            wx.ID_ANY,
            "",
            style=wx.TE_CHARWRAP | wx.TE_MULTILINE | wx.TE_WORDWRAP)
        self._LCTRL_doc_pages = gmListWidgets.cReportListCtrl(
            self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
        self.__btn_show_page = wx.Button(self, wx.ID_ANY, _("Show"))
        self.__btn_del_page = wx.Button(self, wx.ID_ANY, _("Remove part"))
        self.__btn_save = wx.Button(self, wx.ID_ANY, _("Save"))
        self.__btn_discard = wx.Button(self, wx.ID_ANY, _("Discard"))
        self._TCTRL_metadata = wx.TextCtrl(self,
                                           wx.ID_ANY,
                                           "",
                                           style=wx.TE_MULTILINE
                                           | wx.TE_READONLY | wx.TE_WORDWRAP)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._scan_btn_pressed, self.__btn_scan)
        self.Bind(wx.EVT_BUTTON, self._load_btn_pressed, self.__btn_load)
        self.Bind(wx.EVT_BUTTON, self._clipboard_btn_pressed,
                  self.__btn_clipboard)
        self.Bind(wx.EVT_CHECKBOX, self._reviewed_box_checked,
                  self._ChBOX_reviewed)
        self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_part_selected,
                  self._LCTRL_doc_pages)
        self.Bind(wx.EVT_BUTTON, self._show_btn_pressed, self.__btn_show_page)
        self.Bind(wx.EVT_BUTTON, self._del_btn_pressed, self.__btn_del_page)
        self.Bind(wx.EVT_BUTTON, self._save_btn_pressed, self.__btn_save)
        self.Bind(wx.EVT_BUTTON, self._startover_btn_pressed,
                  self.__btn_discard)
Esempio n. 7
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgReviewDocPartDlg.__init__
        kwds["style"] = kwds.get(
            "style", 0
        ) | wx.DEFAULT_DIALOG_STYLE | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER
        wx.Dialog.__init__(self, *args, **kwds)
        from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel
        self._PhWheel_episode = cEpisodeSelectionPhraseWheel(
            self, wx.ID_ANY, style=wx.NO_BORDER)
        from Gnumed.wxpython.gmDocumentWidgets import cDocumentTypeSelectionPhraseWheel
        self._PhWheel_doc_type = cDocumentTypeSelectionPhraseWheel(
            self, wx.ID_ANY, style=wx.NO_BORDER)
        from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel
        self._PRW_org = cOrgUnitPhraseWheel(self, wx.ID_ANY, "")
        self._RBTN_org_is_source = wx.RadioButton(self, wx.ID_ANY, _("Source"))
        self._RBTN_org_is_receiver = wx.RadioButton(self, wx.ID_ANY,
                                                    _("Receiver"))
        from Gnumed.wxpython.gmHospitalStayWidgets import cHospitalStayPhraseWheel
        self._PRW_hospital_stay = cHospitalStayPhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmDocumentWidgets import cDocumentCommentPhraseWheel
        self._PRW_doc_comment = cDocumentCommentPhraseWheel(
            self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput
        self._PhWheel_doc_date = cFuzzyTimestampInput(self,
                                                      wx.ID_ANY,
                                                      style=wx.NO_BORDER)
        self._TCTRL_reference = wx.TextCtrl(self, wx.ID_ANY, "")
        self._TCTRL_filename = wx.TextCtrl(self, wx.ID_ANY, "")
        self._SPINCTRL_seq_idx = wx.SpinCtrl(self,
                                             wx.ID_ANY,
                                             "",
                                             min=0,
                                             max=10000,
                                             style=wx.SP_ARROW_KEYS
                                             | wx.SP_WRAP | wx.TE_AUTO_URL
                                             | wx.TE_NOHIDESEL)
        self._LCTRL_existing_reviews = wx.ListCtrl(
            self,
            wx.ID_ANY,
            style=wx.BORDER_NONE | wx.LC_ALIGN_LEFT | wx.LC_HRULES
            | wx.LC_REPORT | wx.LC_SINGLE_SEL | wx.LC_VRULES)
        self._TCTRL_responsible = wx.TextCtrl(
            self,
            wx.ID_ANY,
            _("(you are/are not the primary reviewer)"),
            style=wx.TE_READONLY)
        self._ChBOX_review = wx.CheckBox(self, wx.ID_ANY, _("review document"))
        self._ChBOX_abnormal = wx.CheckBox(self, wx.ID_ANY,
                                           _("technically abnormal"))
        self._ChBOX_responsible = wx.CheckBox(self, wx.ID_ANY,
                                              _("take over responsibility"))
        self._ChBOX_relevant = wx.CheckBox(self, wx.ID_ANY,
                                           _("clinically relevant"))
        self._ChBOX_sign_all_pages = wx.CheckBox(self, wx.ID_ANY,
                                                 _("sign all pages"))
        self._BTN_save = wx.Button(self, wx.ID_OK, _("Save"))
        self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, _("Cancel"))

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_CHECKBOX, self._on_reviewed_box_checked,
                  self._ChBOX_review)
        self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, id=wx.ID_OK)