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_problems = cReportListCtrl(self, -1, style=wx.LC_REPORT|wx.LC_NO_HEADER|wx.SIMPLE_BORDER)
    26          self._LCTRL_meds = 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          # end wxGlade
    40
    41 -    def __do_layout(self):
    42          # begin wxGlade: wxgPatientOverviewPnl.__do_layout
    43          __szr_main = wx.BoxSizer(wx.HORIZONTAL)
    44          __szr_right = wx.BoxSizer(wx.VERTICAL)
    45          __szr_middle = wx.BoxSizer(wx.VERTICAL)
    46          __szr_left = wx.BoxSizer(wx.VERTICAL)
    47          __szr_encounters = wx.BoxSizer(wx.HORIZONTAL)
    48          __lbl_identity = wx.StaticText(self, -1, _("Identity:"))
    49          __szr_left.Add(__lbl_identity, 0, wx.BOTTOM|wx.ALIGN_CENTER_VERTICAL, 3)
    50          __szr_left.Add(self._LCTRL_identity, 1, wx.BOTTOM|wx.EXPAND, 5)
    51          __lbl_contacts = wx.StaticText(self, -1, _("Contacts:"))
    52          __szr_left.Add(__lbl_contacts, 0, wx.BOTTOM|wx.ALIGN_CENTER_VERTICAL, 3)
    53          __szr_left.Add(self._LCTRL_contacts, 1, wx.BOTTOM|wx.EXPAND, 5)
    54          __lbl_encounters = wx.StaticText(self, -1, _("Encounters / admissions (last"))
    55          __szr_encounters.Add(__lbl_encounters, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 2)
    56          __szr_encounters.Add(self._PRW_encounter_range, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 2)
    57          __lbl_closing_brace = wx.StaticText(self, -1, _("):"))
    58          __szr_encounters.Add(__lbl_closing_brace, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    59          __szr_left.Add(__szr_encounters, 0, wx.BOTTOM|wx.EXPAND, 3)
    60          __szr_left.Add(self._LCTRL_encounters, 1, wx.EXPAND, 5)
    61          __szr_main.Add(__szr_left, 1, wx.RIGHT|wx.EXPAND, 5)
    62          __lbl_problem_list = wx.StaticText(self, -1, _("Active Problems:"))
    63          __szr_middle.Add(__lbl_problem_list, 0, wx.BOTTOM|wx.ALIGN_CENTER_VERTICAL, 3)
    64          __szr_middle.Add(self._LCTRL_problems, 2, wx.BOTTOM|wx.EXPAND, 5)
    65          __lbl_meds = wx.StaticText(self, -1, _("Current meds and substances:"))
    66          __szr_middle.Add(__lbl_meds, 0, wx.BOTTOM|wx.ALIGN_CENTER_VERTICAL, 3)
    67          __szr_middle.Add(self._LCTRL_meds, 2, wx.BOTTOM|wx.EXPAND, 5)
    68          __lbl_history = wx.StaticText(self, -1, _("History:"))
    69          __szr_middle.Add(__lbl_history, 0, wx.BOTTOM|wx.ALIGN_CENTER_VERTICAL, 3)
    70          __szr_middle.Add(self._LCTRL_history, 3, wx.EXPAND, 5)
    71          __szr_main.Add(__szr_middle, 1, wx.RIGHT|wx.EXPAND, 5)
    72          __lbl_inbox = wx.StaticText(self, -1, _("Inbox / Scratch pad:"))
    73          __szr_right.Add(__lbl_inbox, 0, wx.BOTTOM|wx.ALIGN_CENTER_VERTICAL, 3)
    74          __szr_right.Add(self._LCTRL_inbox, 1, wx.BOTTOM|wx.EXPAND, 5)
    75          __lbl_measurements = wx.StaticText(self, -1, _("Measurements:"))
    76          __szr_right.Add(__lbl_measurements, 0, wx.BOTTOM|wx.ALIGN_CENTER_VERTICAL, 3)
    77          __szr_right.Add(self._LCTRL_results, 2, wx.BOTTOM|wx.EXPAND, 5)
    78          __lbl_documents = wx.StaticText(self, -1, _("Documents:"))
    79          __szr_right.Add(__lbl_documents, 0, wx.BOTTOM|wx.ALIGN_CENTER_VERTICAL, 3)
    80          __szr_right.Add(self._LCTRL_documents, 1, wx.EXPAND, 5)
    81          __szr_main.Add(__szr_right, 1, wx.EXPAND, 0)
    82          self.SetSizer(__szr_main)
    83          __szr_main.Fit(self)
    84          # end wxGlade
    85
    86  # end of class wxgPatientOverviewPnl
    87