Package Gnumed :: Package wxGladeWidgets :: Module wxgFancySoapEditorPnl
[frames] | no frames]

Source Code for Module Gnumed.wxGladeWidgets.wxgFancySoapEditorPnl

  1  #!/usr/bin/env python 
  2  # -*- coding: utf-8 -*- 
  3  # generated by wxGlade 0.6.5 from "/home/ncq/Projekte/gm-git/gnumed/gnumed/client/wxg/wxgFancySoapEditorPnl.wxg" 
  4   
  5  import wx 
  6   
  7  # begin wxGlade: extracode 
  8  # end wxGlade 
  9   
 10   
11 -class wxgFancySoapEditorPnl(wx.Panel):
12 - def __init__(self, *args, **kwds):
13 14 from Gnumed.wxpython.gmNarrativeWidgets import cSoapNoteInputNotebook 15 from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel 16 17 # begin wxGlade: wxgFancySoapEditorPnl.__init__ 18 kwds["style"] = wx.TAB_TRAVERSAL 19 wx.Panel.__init__(self, *args, **kwds) 20 self._TCTRL_rfe = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 21 self._PRW_rfe_codes = cGenericCodesPhraseWheel(self, -1, "", style=wx.NO_BORDER) 22 self._TCTRL_aoe = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 23 self._PRW_aoe_codes = cGenericCodesPhraseWheel(self, -1, "", style=wx.NO_BORDER) 24 self._NB_soap_editors = cSoapNoteInputNotebook(self, -1, style=0) 25 self.notebook_1_pane_1 = wx.Panel(self._NB_soap_editors, -1) 26 self._BTN_new_editor = wx.Button(self, -1, _("&New"), style=wx.BU_EXACTFIT) 27 self._BTN_clear_editor = wx.Button(self, -1, _("&Clear"), style=wx.BU_EXACTFIT) 28 self._BTN_discard_editor = wx.Button(self, -1, _("&Discard"), style=wx.BU_EXACTFIT) 29 self._BTN_save_note = wx.Button(self, -1, _("&Save"), style=wx.BU_EXACTFIT) 30 self._BTN_save_note_under = wx.Button(self, -1, _("Save &under"), style=wx.BU_EXACTFIT) 31 self._BTN_image = wx.Button(self, -1, _("&Image"), style=wx.BU_EXACTFIT) 32 self._BTN_save_encounter = wx.Button(self, -1, _("Save"), style=wx.BU_EXACTFIT) 33 self._BTN_save_all = wx.Button(self, -1, _("Save &all"), style=wx.BU_EXACTFIT) 34 self.__szr_right_staticbox = wx.StaticBox(self, -1, _("New notelets in current encounter")) 35 36 self.__set_properties() 37 self.__do_layout() 38 39 self.Bind(wx.EVT_BUTTON, self._on_new_editor_button_pressed, self._BTN_new_editor) 40 self.Bind(wx.EVT_BUTTON, self._on_clear_editor_button_pressed, self._BTN_clear_editor) 41 self.Bind(wx.EVT_BUTTON, self._on_discard_editor_button_pressed, self._BTN_discard_editor) 42 self.Bind(wx.EVT_BUTTON, self._on_save_note_button_pressed, self._BTN_save_note) 43 self.Bind(wx.EVT_BUTTON, self._on_save_note_under_button_pressed, self._BTN_save_note_under) 44 self.Bind(wx.EVT_BUTTON, self._on_image_button_pressed, self._BTN_image) 45 self.Bind(wx.EVT_BUTTON, self._on_save_encounter_button_pressed, self._BTN_save_encounter) 46 self.Bind(wx.EVT_BUTTON, self._on_save_all_button_pressed, self._BTN_save_all)
47 # end wxGlade 48
49 - def __set_properties(self):
50 # begin wxGlade: wxgFancySoapEditorPnl.__set_properties 51 self._TCTRL_rfe.SetToolTipString(_("Also known as the Reason For Encounter/Visit (RFE).\n\nOptionally captures why the consultation takes place.\n\nIt may be due to a patient request or it may be prompted by other reasons. Often initially collected at the front desk and put into a waiting list comment. May turn out to just be a proxy request for why the patient really is here.")) 52 self._PRW_rfe_codes.SetToolTipString(_("Codes relevant to the Reason for Encounter\nseparated by \";\".")) 53 self._TCTRL_aoe.SetToolTipString(_("Also known as the Assessment of Encounter/Visit (AOE)\n\nOptionally summarizes the outcome/assessment of the consultation from the doctors point of view.\n\nNote that this summary spans all the problems discussed during this encounter.")) 54 self._PRW_aoe_codes.SetToolTipString(_("Codes relevant to the Assessment of Encounter\nseparated by \";\".")) 55 self._BTN_new_editor.SetToolTipString(_("Open a new progress note editor.\n\nThere is a configuration item on whether to allow several new-episode editors at once.")) 56 self._BTN_clear_editor.SetToolTipString(_("Clear the editor for the displayed progress note.")) 57 self._BTN_discard_editor.SetToolTipString(_("Discard the editor for the displayed progress note.")) 58 self._BTN_save_note.SetToolTipString(_("Save the currently displayed progress note under the current encounter.")) 59 self._BTN_save_note_under.SetToolTipString(_("Save the currently displayed note into an encounter selected from a list of encounters.")) 60 self._BTN_image.SetToolTipString(_("Add a visual progress note for this episode.")) 61 self._BTN_save_encounter.SetToolTipString(_("Save the encounter details.")) 62 self._BTN_save_all.SetToolTipString(_("Save encounter details and all progress notes."))
63 # end wxGlade 64
65 - def __do_layout(self):
66 # begin wxGlade: wxgFancySoapEditorPnl.__do_layout 67 self.__szr_right_staticbox.Lower() 68 __szr_right = wx.StaticBoxSizer(self.__szr_right_staticbox, wx.VERTICAL) 69 __szr_buttons = wx.BoxSizer(wx.HORIZONTAL) 70 __gszr_encounter_details = wx.FlexGridSizer(2, 2, 2, 5) 71 __szr_aoe = wx.BoxSizer(wx.HORIZONTAL) 72 __szr_rfe_details = wx.BoxSizer(wx.HORIZONTAL) 73 __lbl_rfe = wx.StaticText(self, -1, _("Purpose")) 74 __gszr_encounter_details.Add(__lbl_rfe, 0, wx.ALIGN_CENTER_VERTICAL, 0) 75 __szr_rfe_details.Add(self._TCTRL_rfe, 2, wx.RIGHT | wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 5) 76 __lbl_rfe_codes = wx.StaticText(self, -1, _("Codes:")) 77 __szr_rfe_details.Add(__lbl_rfe_codes, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 5) 78 __szr_rfe_details.Add(self._PRW_rfe_codes, 1, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0) 79 __gszr_encounter_details.Add(__szr_rfe_details, 1, wx.EXPAND, 0) 80 __lbl_aoe = wx.StaticText(self, -1, _("Summary")) 81 __gszr_encounter_details.Add(__lbl_aoe, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 5) 82 __szr_aoe.Add(self._TCTRL_aoe, 2, wx.RIGHT | wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 5) 83 __lbl_aoe_codes = wx.StaticText(self, -1, _("Codes:")) 84 __szr_aoe.Add(__lbl_aoe_codes, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 5) 85 __szr_aoe.Add(self._PRW_aoe_codes, 1, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0) 86 __gszr_encounter_details.Add(__szr_aoe, 0, wx.EXPAND, 3) 87 __gszr_encounter_details.AddGrowableCol(1) 88 __szr_right.Add(__gszr_encounter_details, 0, wx.RIGHT | wx.TOP | wx.BOTTOM | wx.EXPAND, 3) 89 self._NB_soap_editors.AddPage(self.notebook_1_pane_1, _("tab1")) 90 __szr_right.Add(self._NB_soap_editors, 4, wx.EXPAND, 3) 91 __lbl_editor = wx.StaticText(self, -1, _("Notelet:")) 92 __szr_buttons.Add(__lbl_editor, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 5) 93 __szr_buttons.Add(self._BTN_new_editor, 0, wx.RIGHT | wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 3) 94 __szr_buttons.Add(self._BTN_clear_editor, 0, wx.RIGHT | wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 3) 95 __szr_buttons.Add(self._BTN_discard_editor, 0, wx.RIGHT | wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 3) 96 __szr_buttons.Add(self._BTN_save_note, 0, wx.RIGHT | wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 3) 97 __szr_buttons.Add(self._BTN_save_note_under, 0, wx.RIGHT | wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 3) 98 __szr_buttons.Add(self._BTN_image, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0) 99 __szr_buttons.Add((1, 1), 1, wx.EXPAND, 0) 100 __lbl_encounter = wx.StaticText(self, -1, _("Encounter:")) 101 __szr_buttons.Add(__lbl_encounter, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 5) 102 __szr_buttons.Add(self._BTN_save_encounter, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 3) 103 __szr_buttons.Add((1, 1), 1, wx.EXPAND, 0) 104 __szr_buttons.Add(self._BTN_save_all, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 5) 105 __szr_right.Add(__szr_buttons, 0, wx.RIGHT | wx.TOP | wx.EXPAND, 3) 106 self.SetSizer(__szr_right) 107 __szr_right.Fit(self)
108 # end wxGlade 109
110 - def _on_new_editor_button_pressed(self, event): # wxGlade: wxgFancySoapEditorPnl.<event_handler>
111 print "Event handler `_on_new_editor_button_pressed' not implemented!" 112 event.Skip()
113
114 - def _on_clear_editor_button_pressed(self, event): # wxGlade: wxgFancySoapEditorPnl.<event_handler>
115 print "Event handler `_on_clear_editor_button_pressed' not implemented!" 116 event.Skip() 117
118 - def _on_discard_editor_button_pressed(self, event): # wxGlade: wxgFancySoapEditorPnl.<event_handler>
119 print "Event handler `_on_discard_editor_button_pressed' not implemented!" 120 event.Skip() 121
122 - def _on_save_note_button_pressed(self, event): # wxGlade: wxgFancySoapEditorPnl.<event_handler>
123 print "Event handler `_on_save_note_button_pressed' not implemented!" 124 event.Skip() 125
126 - def _on_save_note_under_button_pressed(self, event): # wxGlade: wxgFancySoapEditorPnl.<event_handler>
127 print "Event handler `_on_save_note_under_button_pressed' not implemented!" 128 event.Skip() 129
130 - def _on_image_button_pressed(self, event): # wxGlade: wxgFancySoapEditorPnl.<event_handler>
131 print "Event handler `_on_image_button_pressed' not implemented!" 132 event.Skip() 133
134 - def _on_save_encounter_button_pressed(self, event): # wxGlade: wxgFancySoapEditorPnl.<event_handler>
135 print "Event handler `_on_save_encounter_button_pressed' not implemented!" 136 event.Skip() 137
138 - def _on_save_all_button_pressed(self, event): # wxGlade: wxgFancySoapEditorPnl.<event_handler>
139 print "Event handler `_on_save_all_button_pressed' not implemented!" 140 event.Skip() 141 142 # end of class wxgFancySoapEditorPnl 143