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

# Source Code for Module Gnumed.wxGladeWidgets.wxgSoapNoteExpandoEditAreaPnl

      1  #!/usr/bin/env python
      2  # -*- coding: utf-8 -*-
      3  # generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxgSoapNoteExpandoEditAreaPnl.wxg"
      4
      5  import wx
      6
      7  # begin wxGlade: extracode
      8  # end wxGlade
      9
     10 -class wxgSoapNoteExpandoEditAreaPnl(wx.ScrolledWindow):
     11 -    def __init__(self, *args, **kwds):
     12
     13          from Gnumed.wxpython.gmNarrativeWidgets import cSoapLineTextCtrl
     14          from Gnumed.wxpython.gmNarrativeWidgets import cVisualSoapPresenterPnl
     15          from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel
     16
     17          # begin wxGlade: wxgSoapNoteExpandoEditAreaPnl.__init__
     18          kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
     19          wx.ScrolledWindow.__init__(self, *args, **kwds)
     20          self._PRW_Soap_codes = cGenericCodesPhraseWheel(self, -1, "", style=wx.TE_READONLY|wx.NO_BORDER)
     21          self._TCTRL_Soap = cSoapLineTextCtrl(self, -1, "", style=wx.TE_WORDWRAP|wx.NO_BORDER)
     22          self._PRW_sOap_codes = cGenericCodesPhraseWheel(self, -1, "", style=wx.TE_READONLY|wx.NO_BORDER)
     23          self._TCTRL_sOap = cSoapLineTextCtrl(self, -1, "", style=wx.TE_WORDWRAP|wx.NO_BORDER)
     24          self._PRW_soAp_codes = cGenericCodesPhraseWheel(self, -1, "", style=wx.TE_READONLY|wx.NO_BORDER)
     25          self._TCTRL_soAp = cSoapLineTextCtrl(self, -1, "", style=wx.TE_WORDWRAP|wx.NO_BORDER)
     26          self._PRW_soaP_codes = cGenericCodesPhraseWheel(self, -1, "", style=wx.TE_READONLY|wx.NO_BORDER)
     27          self._TCTRL_soaP = cSoapLineTextCtrl(self, -1, "", style=wx.TE_WORDWRAP|wx.NO_BORDER)
     28          self._PNL_visual_soap = cVisualSoapPresenterPnl(self, -1, style=wx.NO_BORDER)
     29          self._LBL_summary = wx.StaticText(self, -1, _("Episode synopsis"))
     30          self._PRW_episode_codes = cGenericCodesPhraseWheel(self, -1, "", style=wx.NO_BORDER)
     31          self._TCTRL_episode_summary = cSoapLineTextCtrl(self, -1, "", style=wx.TE_WORDWRAP|wx.NO_BORDER)
     32
     33          self.__set_properties()
     34          self.__do_layout()
     35          # end wxGlade
     36
     37 -    def __set_properties(self):
     38          # begin wxGlade: wxgSoapNoteExpandoEditAreaPnl.__set_properties
     39          self.SetScrollRate(10, 10)
     40          self._PRW_Soap_codes.SetToolTipString(_("Codes relevant to this Subjective\nseparated by \";\"."))
     41          self._PRW_Soap_codes.Enable(False)
     42          self._PRW_sOap_codes.SetToolTipString(_("Codes relevant to this Objective\nseparated by \";\"."))
     43          self._PRW_sOap_codes.Enable(False)
     44          self._PRW_soAp_codes.SetToolTipString(_("Codes relevant to this Assessment\nseparated by \";\"."))
     45          self._PRW_soAp_codes.Enable(False)
     46          self._PRW_soaP_codes.SetToolTipString(_("Codes relevant to this Plan\nseparated by \";\"."))
     47          self._PRW_soaP_codes.Enable(False)
     48          self._PRW_episode_codes.SetToolTipString(_("Codes relevant to this episode\nseparated by \";\"."))
     49          self._TCTRL_episode_summary.SetToolTipString(_("Here you can modify the cumulative summary (status) of the episode this SOAP narrative belongs to."))
     50          # end wxGlade
     51
     52 -    def __do_layout(self):
     53          # begin wxGlade: wxgSoapNoteExpandoEditAreaPnl.__do_layout
     54          __szr_main = wx.BoxSizer(wx.VERTICAL)
     55          __szr_summary = wx.BoxSizer(wx.HORIZONTAL)
     56          __szr_soaP = wx.BoxSizer(wx.HORIZONTAL)
     57          __szr_soAp = wx.BoxSizer(wx.HORIZONTAL)
     58          __szr_sOap = wx.BoxSizer(wx.HORIZONTAL)
     59          __szr_Soap = wx.BoxSizer(wx.HORIZONTAL)
     60          __lbl_Soap = wx.StaticText(self, -1, _("Subjective"))
     61          __szr_Soap.Add(__lbl_Soap, 1, wx.ALIGN_CENTER_VERTICAL, 10)
     62          __vline_Soap = wx.StaticLine(self, -1, style=wx.LI_VERTICAL)
     63          __szr_Soap.Add(__vline_Soap, 0, wx.RIGHT|wx.EXPAND, 5)
     64          __lbl_Soap_codes = wx.StaticText(self, -1, _("Codes:"))
     65          __lbl_Soap_codes.Hide()
     66          __szr_Soap.Add(__lbl_Soap_codes, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5)
     67          __szr_Soap.Add(self._PRW_Soap_codes, 3, wx.TOP|wx.BOTTOM|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 2)
     68          __szr_main.Add(__szr_Soap, 0, wx.LEFT|wx.RIGHT|wx.EXPAND, 3)
     69          __szr_main.Add(self._TCTRL_Soap, 0, wx.LEFT|wx.RIGHT|wx.EXPAND, 3)
     70          __lbl_sOap = wx.StaticText(self, -1, _("Objective"))
     71          __szr_sOap.Add(__lbl_sOap, 1, wx.ALIGN_CENTER_VERTICAL, 5)
     72          __vline_sOap = wx.StaticLine(self, -1, style=wx.LI_VERTICAL)
     73          __szr_sOap.Add(__vline_sOap, 0, wx.RIGHT|wx.EXPAND, 5)
     74          __lbl_sOap_codes = wx.StaticText(self, -1, _("Codes:"))
     75          __lbl_sOap_codes.Hide()
     76          __szr_sOap.Add(__lbl_sOap_codes, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5)
     77          __szr_sOap.Add(self._PRW_sOap_codes, 3, wx.TOP|wx.BOTTOM|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 2)
     78          __szr_main.Add(__szr_sOap, 0, wx.LEFT|wx.RIGHT|wx.EXPAND, 3)
     79          __szr_main.Add(self._TCTRL_sOap, 0, wx.LEFT|wx.RIGHT|wx.EXPAND, 3)
     80          __lbl_soAp = wx.StaticText(self, -1, _("Assessment"))
     81          __szr_soAp.Add(__lbl_soAp, 1, wx.ALIGN_CENTER_VERTICAL, 5)
     82          __vline_soAp = wx.StaticLine(self, -1, style=wx.LI_VERTICAL)
     83          __szr_soAp.Add(__vline_soAp, 0, wx.RIGHT|wx.EXPAND, 5)
     84          __lbl_soAp_codes = wx.StaticText(self, -1, _("Codes:"))
     85          __lbl_soAp_codes.Hide()
     86          __szr_soAp.Add(__lbl_soAp_codes, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5)
     87          __szr_soAp.Add(self._PRW_soAp_codes, 3, wx.TOP|wx.BOTTOM|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 2)
     88          __szr_main.Add(__szr_soAp, 0, wx.LEFT|wx.RIGHT|wx.EXPAND, 3)
     89          __szr_main.Add(self._TCTRL_soAp, 0, wx.LEFT|wx.RIGHT|wx.EXPAND, 3)
     90          __lbl_soaP = wx.StaticText(self, -1, _("Plan"))
     91          __szr_soaP.Add(__lbl_soaP, 1, wx.ALIGN_CENTER_VERTICAL, 5)
     92          __vline_soaP = wx.StaticLine(self, -1, style=wx.LI_VERTICAL)
     93          __szr_soaP.Add(__vline_soaP, 0, wx.RIGHT|wx.EXPAND, 5)
     94          __lbl_soaP_codes = wx.StaticText(self, -1, _("Codes:"))
     95          __lbl_soaP_codes.Hide()
     96          __szr_soaP.Add(__lbl_soaP_codes, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5)
     97          __szr_soaP.Add(self._PRW_soaP_codes, 3, wx.TOP|wx.BOTTOM|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 2)
     98          __szr_main.Add(__szr_soaP, 0, wx.LEFT|wx.RIGHT|wx.EXPAND, 3)
     99          __szr_main.Add(self._TCTRL_soaP, 0, wx.LEFT|wx.RIGHT|wx.BOTTOM|wx.EXPAND, 3)
    100          __szr_main.Add(self._PNL_visual_soap, 0, wx.EXPAND, 0)
    101          _hline_above_summary = wx.StaticLine(self, -1)
    102          __szr_main.Add(_hline_above_summary, 0, wx.LEFT|wx.RIGHT|wx.TOP|wx.EXPAND, 5)
    103          __szr_summary.Add(self._LBL_summary, 1, wx.ALIGN_CENTER_VERTICAL, 5)
    104          __vline_summary = wx.StaticLine(self, -1, style=wx.LI_VERTICAL)
    105          __szr_summary.Add(__vline_summary, 0, wx.RIGHT|wx.EXPAND, 5)
    106          __lbl_summary_codes = wx.StaticText(self, -1, _("Codes:"))
    107          __szr_summary.Add(__lbl_summary_codes, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5)
    108          __szr_summary.Add(self._PRW_episode_codes, 3, wx.TOP|wx.BOTTOM|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 2)
    109          __szr_main.Add(__szr_summary, 0, wx.LEFT|wx.RIGHT|wx.EXPAND, 3)
    110          __szr_main.Add(self._TCTRL_episode_summary, 0, wx.LEFT|wx.RIGHT|wx.BOTTOM|wx.EXPAND, 3)
    111          self.SetSizer(__szr_main)
    112          __szr_main.Fit(self)
    113          # end wxGlade
    114
    115 -    def _on_manage_Soap_codes_button_pressed(self, event): # wxGlade: wxgSoapNoteExpandoEditAreaPnl.<event_handler>
    116          print "Event handler `_on_manage_Soap_codes_button_pressed' not implemented"
    117          event.Skip()
    118
    119 -    def _on_manage_sOap_codes_button_pressed(self, event): # wxGlade: wxgSoapNoteExpandoEditAreaPnl.<event_handler>
    120          print "Event handler `_on_manage_sOap_codes_button_pressed' not implemented"
    121          event.Skip()
    122
    123 -    def _on_manage_soAp_codes_button_pressed(self, event): # wxGlade: wxgSoapNoteExpandoEditAreaPnl.<event_handler>
    124          print "Event handler `_on_manage_soAp_codes_button_pressed' not implemented"
    125          event.Skip()
    126
    127 -    def _on_manage_soaP_codes_button_pressed(self, event): # wxGlade: wxgSoapNoteExpandoEditAreaPnl.<event_handler>
    128          print "Event handler `_on_manage_soaP_codes_button_pressed' not implemented"
    129          event.Skip()
    130
    131  # end of class wxgSoapNoteExpandoEditAreaPnl
    132