Gnumed.wxGladeWidgets.wxgProgressNotesEAPnl

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgProgressNotesEAPnl

      1  # -*- coding: UTF-8 -*-
      2  #
      3  # generated by wxGlade
      4  #
      5
      6  import wx
      7
      8  # begin wxGlade: dependencies
      9  import gettext
     10  # end wxGlade
     11
     12  # begin wxGlade: extracode
     13  # end wxGlade
     14
     15
     16 -class wxgProgressNotesEAPnl(wx.ScrolledWindow):
     17 -        def __init__(self, *args, **kwds):
     18                  # begin wxGlade: wxgProgressNotesEAPnl.__init__
     19                  kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
     20                  wx.ScrolledWindow.__init__(self, *args, **kwds)
     21                  self._LBL_Soap = wx.StaticText(self, wx.ID_ANY, _("Subjective"))
     22                  from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel
     23                  self._PRW_Soap_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "", style=wx.TE_READONLY)
     24                  from Gnumed.wxpython.gmTextCtrl import cExpandoTextCtrl
     25                  self._TCTRL_Soap = cExpandoTextCtrl(self, wx.ID_ANY, "", style=wx.TE_WORDWRAP)
     26                  self._LBL_sOap = wx.StaticText(self, wx.ID_ANY, _("Objective"))
     27                  self._PRW_sOap_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "", style=wx.TE_READONLY)
     28                  self._TCTRL_sOap = cExpandoTextCtrl(self, wx.ID_ANY, "", style=wx.TE_WORDWRAP)
     29                  self._LBL_soAp = wx.StaticText(self, wx.ID_ANY, _("Assessment"))
     30                  self._PRW_soAp_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "", style=wx.TE_READONLY)
     31                  self._TCTRL_soAp = cExpandoTextCtrl(self, wx.ID_ANY, "", style=wx.TE_WORDWRAP)
     32                  self._LBL_soaP = wx.StaticText(self, wx.ID_ANY, _("Plan"))
     33                  self._PRW_soaP_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "", style=wx.TE_READONLY)
     34                  self._TCTRL_soaP = cExpandoTextCtrl(self, wx.ID_ANY, "", style=wx.TE_WORDWRAP)
     35                  from Gnumed.wxpython.gmSoapSTCWidgets import cSoapSTC
     36                  self._STC_soap = cSoapSTC(self, wx.ID_ANY, "")
     37                  from Gnumed.wxpython.gmVisualProgressNoteWidgets import cVisualSoapPresenterPnl
     38                  self._PNL_visual_soap = cVisualSoapPresenterPnl(self, wx.ID_ANY, style=wx.BORDER_NONE)
     39                  self._LBL_summary = wx.StaticText(self, wx.ID_ANY, _("Episode synopsis"))
     40                  self._PRW_episode_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "")
     41                  self._TCTRL_episode_summary = cExpandoTextCtrl(self, wx.ID_ANY, "", style=wx.TE_WORDWRAP)
     42
     43                  self.__set_properties()
     44                  self.__do_layout()
     45                  # end wxGlade
     46
     47 -        def __set_properties(self):
     48                  # begin wxGlade: wxgProgressNotesEAPnl.__set_properties
     49                  self.SetScrollRate(10, 10)
     50                  self._PRW_Soap_codes.SetToolTip(_("Codes relevant to this Subjective\nseparated by \";\"."))
     51                  self._PRW_Soap_codes.Enable(False)
     52                  self._PRW_sOap_codes.SetToolTip(_("Codes relevant to this Objective\nseparated by \";\"."))
     53                  self._PRW_sOap_codes.Enable(False)
     54                  self._PRW_soAp_codes.SetToolTip(_("Codes relevant to this Assessment\nseparated by \";\"."))
     55                  self._PRW_soAp_codes.Enable(False)
     56                  self._PRW_soaP_codes.SetToolTip(_("Codes relevant to this Plan\nseparated by \";\"."))
     57                  self._PRW_soaP_codes.Enable(False)
     58                  self._STC_soap.Hide()
     59                  self._PRW_episode_codes.SetToolTip(_("Codes relevant to this episode\nseparated by \";\"."))
     60                  self._TCTRL_episode_summary.SetToolTip(_("Here you can modify the cumulative summary (status) of the episode this SOAP narrative belongs to."))
     61                  # end wxGlade
     62
     63 -        def __do_layout(self):
     64                  # begin wxGlade: wxgProgressNotesEAPnl.__do_layout
     65                  __szr_main = wx.BoxSizer(wx.VERTICAL)
     66                  __szr_summary = wx.BoxSizer(wx.HORIZONTAL)
     67                  __szr_soaP = wx.BoxSizer(wx.HORIZONTAL)
     68                  __szr_soAp = wx.BoxSizer(wx.HORIZONTAL)
     69                  __szr_sOap = wx.BoxSizer(wx.HORIZONTAL)
     70                  __szr_Soap = wx.BoxSizer(wx.HORIZONTAL)
     71                  __szr_Soap.Add(self._LBL_Soap, 1, wx.ALIGN_CENTER_VERTICAL, 10)
     72                  __vline_Soap = wx.StaticLine(self, wx.ID_ANY, style=wx.LI_VERTICAL)
     73                  __szr_Soap.Add(__vline_Soap, 0, wx.EXPAND | wx.RIGHT, 5)
     74                  __lbl_Soap_codes = wx.StaticText(self, wx.ID_ANY, _("Codes:"))
     75                  __lbl_Soap_codes.Hide()
     76                  __szr_Soap.Add(__lbl_Soap_codes, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)
     77                  __szr_Soap.Add(self._PRW_Soap_codes, 3, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.EXPAND | wx.TOP, 2)
     78                  __szr_main.Add(__szr_Soap, 0, wx.EXPAND | wx.LEFT | wx.RIGHT, 3)
     79                  __szr_main.Add(self._TCTRL_Soap, 0, wx.EXPAND | wx.LEFT | wx.RIGHT, 3)
     80                  __szr_sOap.Add(self._LBL_sOap, 1, wx.ALIGN_CENTER_VERTICAL, 5)
     81                  __vline_sOap = wx.StaticLine(self, wx.ID_ANY, style=wx.LI_VERTICAL)
     82                  __szr_sOap.Add(__vline_sOap, 0, wx.EXPAND | wx.RIGHT, 5)
     83                  __lbl_sOap_codes = wx.StaticText(self, wx.ID_ANY, _("Codes:"))
     84                  __lbl_sOap_codes.Hide()
     85                  __szr_sOap.Add(__lbl_sOap_codes, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)
     86                  __szr_sOap.Add(self._PRW_sOap_codes, 3, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.EXPAND | wx.TOP, 2)
     87                  __szr_main.Add(__szr_sOap, 0, wx.EXPAND | wx.LEFT | wx.RIGHT, 3)
     88                  __szr_main.Add(self._TCTRL_sOap, 0, wx.EXPAND | wx.LEFT | wx.RIGHT, 3)
     89                  __szr_soAp.Add(self._LBL_soAp, 1, wx.ALIGN_CENTER_VERTICAL, 5)
     90                  __vline_soAp = wx.StaticLine(self, wx.ID_ANY, style=wx.LI_VERTICAL)
     91                  __szr_soAp.Add(__vline_soAp, 0, wx.EXPAND | wx.RIGHT, 5)
     92                  __lbl_soAp_codes = wx.StaticText(self, wx.ID_ANY, _("Codes:"))
     93                  __lbl_soAp_codes.Hide()
     94                  __szr_soAp.Add(__lbl_soAp_codes, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)
     95                  __szr_soAp.Add(self._PRW_soAp_codes, 3, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.EXPAND | wx.TOP, 2)
     96                  __szr_main.Add(__szr_soAp, 0, wx.EXPAND | wx.LEFT | wx.RIGHT, 3)
     97                  __szr_main.Add(self._TCTRL_soAp, 0, wx.EXPAND | wx.LEFT | wx.RIGHT, 3)
     98                  __szr_soaP.Add(self._LBL_soaP, 1, wx.ALIGN_CENTER_VERTICAL, 5)
     99                  __vline_soaP = wx.StaticLine(self, wx.ID_ANY, style=wx.LI_VERTICAL)
    100                  __szr_soaP.Add(__vline_soaP, 0, wx.EXPAND | wx.RIGHT, 5)
    101                  __lbl_soaP_codes = wx.StaticText(self, wx.ID_ANY, _("Codes:"))
    102                  __lbl_soaP_codes.Hide()
    103                  __szr_soaP.Add(__lbl_soaP_codes, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)
    104                  __szr_soaP.Add(self._PRW_soaP_codes, 3, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.EXPAND | wx.TOP, 2)
    105                  __szr_main.Add(__szr_soaP, 0, wx.EXPAND | wx.LEFT | wx.RIGHT, 3)
    106                  __szr_main.Add(self._TCTRL_soaP, 0, wx.BOTTOM | wx.EXPAND | wx.LEFT | wx.RIGHT, 3)
    107                  __szr_main.Add(self._STC_soap, 1, wx.ALL | wx.EXPAND, 3)
    108                  __szr_main.Add(self._PNL_visual_soap, 0, wx.EXPAND, 0)
    109                  _hline_above_summary = wx.StaticLine(self, wx.ID_ANY)
    110                  __szr_main.Add(_hline_above_summary, 0, wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 5)
    111                  __szr_summary.Add(self._LBL_summary, 1, wx.ALIGN_CENTER_VERTICAL, 5)
    112                  __vline_summary = wx.StaticLine(self, wx.ID_ANY, style=wx.LI_VERTICAL)
    113                  __szr_summary.Add(__vline_summary, 0, wx.EXPAND | wx.RIGHT, 5)
    114                  __lbl_summary_codes = wx.StaticText(self, wx.ID_ANY, _("Codes:"))
    115                  __szr_summary.Add(__lbl_summary_codes, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)
    116                  __szr_summary.Add(self._PRW_episode_codes, 3, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.EXPAND | wx.TOP, 2)
    117                  __szr_main.Add(__szr_summary, 0, wx.EXPAND | wx.LEFT | wx.RIGHT, 3)
    118                  __szr_main.Add(self._TCTRL_episode_summary, 0, wx.BOTTOM | wx.EXPAND | wx.LEFT | wx.RIGHT, 3)
    119                  self.SetSizer(__szr_main)
    120                  __szr_main.Fit(self)
    121                  self.Layout()
    122                  # end wxGlade
    123
    124  # end of class wxgProgressNotesEAPnl
    125