Gnumed.wxGladeWidgets.wxgPatientOverviewPnl

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgPatientOverviewPnl

     1  #!/usr/bin/env python
     2  # -*- coding: utf-8 -*-
     3  # generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-git/gnumed/gnumed/client/wxg/wxgPatientOverviewPnl.wxg"
     4
     5  import wx
     6
     7  # begin wxGlade: extracode
     8  # end wxGlade
     9
    10
    11
    12 -class wxgPatientOverviewPnl(wx.ScrolledWindow):
    13 -    def __init__(self, *args, **kwds):
    14
    15          from Gnumed.wxpython.gmListWidgets import cReportListCtrl
    16          from Gnumed.wxpython import gmDateTimeInput
    17
    18          # begin wxGlade: wxgPatientOverviewPnl.__init__
    19          kwds["style"] = wx.TAB_TRAVERSAL
    20          wx.ScrolledWindow.__init__(self, *args, **kwds)
    21          self._LCTRL_identity = cReportListCtrl(self, -1, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER)
    22          self._LCTRL_contacts = cReportListCtrl(self, -1, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER)
    23          self._PRW_encounter_range = gmDateTimeInput.cIntervalPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    24          self._LCTRL_encounters = cReportListCtrl(self, -1, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER)
    25          self._LCTRL_meds = cReportListCtrl(self, -1, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER)
    26          self._LCTRL_problems = cReportListCtrl(self, -1, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER)
    27          self._LCTRL_history = cReportListCtrl(self, -1, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER)
    28          self._LCTRL_inbox = cReportListCtrl(self, -1, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER)
    29          self._LCTRL_results = cReportListCtrl(self, -1, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER)
    30          self._LCTRL_documents = cReportListCtrl(self, -1, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER)
    31
    32          self.__set_properties()
    33          self.__do_layout()
    34          # end wxGlade
    35
    36 -    def __set_properties(self):
    37          # begin wxGlade: wxgPatientOverviewPnl.__set_properties
    38          self.SetScrollRate(10, 10)
    39          self._PRW_encounter_range.SetToolTipString(_("Here you can enter an interval (extending backwards from \"now\") within which to show health care activity."))
    40          self._LCTRL_problems.SetBackgroundColour(wx.Colour(255, 238, 180))
    41          # end wxGlade
    42
    43 -    def __do_layout(self):
    44          # begin wxGlade: wxgPatientOverviewPnl.__do_layout
    45          __szr_main = wx.BoxSizer(wx.HORIZONTAL)
    46          __szr_right = wx.BoxSizer(wx.VERTICAL)
    47          __szr_middle = wx.BoxSizer(wx.VERTICAL)
    48          __szr_left = wx.BoxSizer(wx.VERTICAL)
    49          __szr_encounters = wx.BoxSizer(wx.HORIZONTAL)
    50          __lbl_identity = wx.StaticText(self, -1, _("Identity:"))
    51          __szr_left.Add(__lbl_identity, 0, wx.BOTTOM | wx.ALIGN_CENTER_VERTICAL, 3)
    52          __szr_left.Add(self._LCTRL_identity, 1, wx.BOTTOM | wx.EXPAND, 5)
    53          __lbl_contacts = wx.StaticText(self, -1, _("Contacts:"))
    54          __szr_left.Add(__lbl_contacts, 0, wx.BOTTOM | wx.ALIGN_CENTER_VERTICAL, 3)
    55          __szr_left.Add(self._LCTRL_contacts, 1, wx.BOTTOM | wx.EXPAND, 5)
    56          __lbl_encounters = wx.StaticText(self, -1, _("Activity:"))
    57          __szr_encounters.Add(__lbl_encounters, 0, wx.ALIGN_CENTER_VERTICAL, 2)
    58          __szr_encounters.Add((20, 20), 1, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    59          __lbl_activity_limit = wx.StaticText(self, -1, _("(limit to last:"))
    60          __szr_encounters.Add(__lbl_activity_limit, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 3)
    61          __szr_encounters.Add(self._PRW_encounter_range, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 2)
    62          __lbl_closing_brace = wx.StaticText(self, -1, _(")"))
    63          __szr_encounters.Add(__lbl_closing_brace, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    64          __szr_left.Add(__szr_encounters, 0, wx.BOTTOM | wx.EXPAND, 3)
    65          __szr_left.Add(self._LCTRL_encounters, 1, wx.EXPAND, 5)
    66          __szr_main.Add(__szr_left, 1, wx.RIGHT | wx.EXPAND, 5)
    67          __lbl_meds = wx.StaticText(self, -1, _("Current meds and substances:"))
    68          __szr_middle.Add(__lbl_meds, 0, wx.BOTTOM | wx.ALIGN_CENTER_VERTICAL, 3)
    69          __szr_middle.Add(self._LCTRL_meds, 2, wx.BOTTOM | wx.EXPAND, 5)
    70          __lbl_problem_list = wx.StaticText(self, -1, _("Active Problems:"))
    71          __szr_middle.Add(__lbl_problem_list, 0, wx.BOTTOM | wx.ALIGN_CENTER_VERTICAL, 3)
    72          __szr_middle.Add(self._LCTRL_problems, 2, wx.BOTTOM | wx.EXPAND, 5)
    73          __lbl_history = wx.StaticText(self, -1, _("History:"))
    74          __szr_middle.Add(__lbl_history, 0, wx.BOTTOM | wx.ALIGN_CENTER_VERTICAL, 3)
    75          __szr_middle.Add(self._LCTRL_history, 3, wx.EXPAND, 5)
    76          __szr_main.Add(__szr_middle, 1, wx.RIGHT | wx.EXPAND, 5)
    77          __lbl_inbox = wx.StaticText(self, -1, _("Reminders:"))
    78          __szr_right.Add(__lbl_inbox, 0, wx.BOTTOM | wx.ALIGN_CENTER_VERTICAL, 3)
    79          __szr_right.Add(self._LCTRL_inbox, 1, wx.BOTTOM | wx.EXPAND, 5)
    80          __lbl_measurements = wx.StaticText(self, -1, _("Measurements:"))
    81          __szr_right.Add(__lbl_measurements, 0, wx.BOTTOM | wx.ALIGN_CENTER_VERTICAL, 3)
    82          __szr_right.Add(self._LCTRL_results, 2, wx.BOTTOM | wx.EXPAND, 5)
    83          __lbl_documents = wx.StaticText(self, -1, _("Documents:"))
    84          __szr_right.Add(__lbl_documents, 0, wx.BOTTOM | wx.ALIGN_CENTER_VERTICAL, 3)
    85          __szr_right.Add(self._LCTRL_documents, 1, wx.EXPAND, 5)
    86          __szr_main.Add(__szr_right, 1, wx.EXPAND, 0)
    87          self.SetSizer(__szr_main)
    88          __szr_main.Fit(self)
    89          # end wxGlade
    90
    91  # end of class wxgPatientOverviewPnl
    92