#!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxgPrimaryCareVitalsInputPnl.wxg"

import wx

# begin wxGlade: extracode
import wx.lib.analogclock
import wx.lib.hyperlink
import wx.lib.hyperlink
import wx.lib.masked
# end wxGlade



class wxgPrimaryCareVitalsInputPnl(wx.Panel):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgPrimaryCareVitalsInputPnl.__init__
        kwds["style"] = wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)
        self._TCTRL_RR_left = wx.lib.masked.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._LNK_SI = wx.lib.hyperlink.HyperLinkCtrl(self, -1, _("Schock index"), style=wx.TE_READONLY|wx.TE_CENTRE|wx.NO_BORDER)
        self._TCTRL_RR_right = wx.lib.masked.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._LBL_SI_value = wx.StaticText(self, -1, _("<SI>"), style=wx.ALIGN_CENTRE)
        self._TCTRL_pulse = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._RBTN_rhythmic = wx.RadioButton(self, -1, _("rhythmic"))
        self._RBTN_arrhythmic = wx.RadioButton(self, -1, _("arrhythmic"))
        self._TCTRL_pulse_quality = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._TCTRL_temp_periph = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._TCTRL_temp_rect = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._RBTN_centigrade = wx.RadioButton(self, -1, _(u"°C"), style=wx.RB_GROUP)
        self._RBTN_fahrenheit = wx.RadioButton(self, -1, _(u"°F"))
        self._TCTRL_respiration = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._TCTRL_height = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._LBL_last_height = wx.StaticText(self, -1, _("<last height>"))
        self._LNK_BMI = wx.lib.hyperlink.HyperLinkCtrl(self, -1, _("BMI"), style=wx.TE_READONLY|wx.TE_CENTRE|wx.NO_BORDER)
        self._TCTRL_weight = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._LBL_last_weight = wx.StaticText(self, -1, _("<last weight>"))
        self._LBL_BMI_value = wx.StaticText(self, -1, _("<BMI>"), style=wx.ALIGN_CENTRE)
        self._TCTRL_waist = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._LBL_last_waist = wx.StaticText(self, -1, _("<last waist>"))
        self._clock = wx.lib.analogclock.AnalogClock(self, -1)

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxgPrimaryCareVitalsInputPnl.__set_properties
        self._TCTRL_RR_left.SetToolTipString(_("RR measured on the left arm."))
        self._LNK_SI.SetBackgroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_BACKGROUND))
        self._LNK_SI.SetToolTipString(_("SI = Pulse / RR (syst)\n\n  0.4-0.7 = normal\n  >1 = critical"))
        self._TCTRL_RR_right.SetToolTipString(_("RR measured on the right arm."))
        self._TCTRL_pulse.SetToolTipString(_("Heart rate in beats per minute."))
        self._RBTN_rhythmic.SetValue(1)
        self._TCTRL_pulse_quality.SetToolTipString(_("The quality of the pulse.\nLet's not forget good old GP medicine !"))
        self._TCTRL_temp_periph.SetToolTipString(_("Peripheral body temperature:\n axillar\n oral\n forehead\n tympanic"))
        self._TCTRL_temp_rect.SetToolTipString(_("\"Core\" body temperature:\n rectal\n intravascular"))
        self._RBTN_centigrade.SetValue(1)
        self._TCTRL_respiration.SetToolTipString(_("Respiration rate."))
        self._TCTRL_height.SetToolTipString(_("Current height in cm."))
        self._LNK_BMI.SetBackgroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_BACKGROUND))
        self._LNK_BMI.SetToolTipString(_(u"Body Mass Index.\n\nBMI = weight / height²"))
        self._TCTRL_weight.SetToolTipString(_("Current weight in gram or kg.\n\nCutoff is 500:\n <500: kg\n >500: g"))
        self._TCTRL_waist.SetToolTipString(_("Current waist circumference in cm."))
        self._clock.SetMinSize((100, 100))
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxgPrimaryCareVitalsInputPnl.__do_layout
        __szr_main = wx.BoxSizer(wx.VERTICAL)
        __gzsr_main = wx.FlexGridSizer(14, 3, 2, 4)
        __szr_waist = wx.BoxSizer(wx.HORIZONTAL)
        __szr_weight = wx.BoxSizer(wx.HORIZONTAL)
        __szr_height = wx.BoxSizer(wx.HORIZONTAL)
        __szr_respiration = wx.BoxSizer(wx.HORIZONTAL)
        __szr_temp_details = wx.BoxSizer(wx.HORIZONTAL)
        __szr_pulse_details = wx.BoxSizer(wx.HORIZONTAL)
        __szr_pulse = wx.BoxSizer(wx.HORIZONTAL)
        __szr_RR_right = wx.BoxSizer(wx.HORIZONTAL)
        __szr_RR = wx.BoxSizer(wx.HORIZONTAL)
        __gzsr_main.Add((20, 20), 0, wx.EXPAND, 0)
        __lbl_vitals = wx.StaticText(self, -1, _("Vitals"))
        __lbl_vitals.SetForegroundColour(wx.Colour(95, 159, 159))
        __gzsr_main.Add(__lbl_vitals, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0)
        __gzsr_main.Add((20, 20), 0, wx.EXPAND, 0)
        __lbl_RR_left = wx.StaticText(self, -1, _("RR left"))
        __gzsr_main.Add(__lbl_RR_left, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_RR.Add(self._TCTRL_RR_left, 0, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 3)
        __lbl_mmHg_left = wx.StaticText(self, -1, _("mmHg"))
        __szr_RR.Add(__lbl_mmHg_left, 0, wx.ALIGN_CENTER_VERTICAL, 15)
        __gzsr_main.Add(__szr_RR, 1, wx.EXPAND, 0)
        __gzsr_main.Add(self._LNK_SI, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 15)
        __lbl_RR_right = wx.StaticText(self, -1, _("RR right"))
        __gzsr_main.Add(__lbl_RR_right, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_RR_right.Add(self._TCTRL_RR_right, 0, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 3)
        __lbl_mmHg_right = wx.StaticText(self, -1, _("mmHg"))
        __szr_RR_right.Add(__lbl_mmHg_right, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        __gzsr_main.Add(__szr_RR_right, 1, wx.EXPAND, 0)
        __gzsr_main.Add(self._LBL_SI_value, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 15)
        __lbl_pulse = wx.StaticText(self, -1, _("Pulse"))
        __gzsr_main.Add(__lbl_pulse, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_pulse.Add(self._TCTRL_pulse, 0, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 3)
        __lbl_bpm = wx.StaticText(self, -1, _("/min"))
        __szr_pulse.Add(__lbl_bpm, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 10)
        __szr_pulse.Add(self._RBTN_rhythmic, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3)
        __szr_pulse.Add(self._RBTN_arrhythmic, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        __gzsr_main.Add(__szr_pulse, 1, wx.EXPAND, 0)
        __gzsr_main.Add((20, 20), 0, wx.EXPAND, 0)
        __gzsr_main.Add((20, 20), 0, wx.EXPAND, 0)
        __szr_pulse_details.Add(self._TCTRL_pulse_quality, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __gzsr_main.Add(__szr_pulse_details, 1, wx.EXPAND, 0)
        __gzsr_main.Add((20, 20), 0, wx.EXPAND, 0)
        __lbl_temp = wx.StaticText(self, -1, _("Temp"))
        __gzsr_main.Add(__lbl_temp, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_temp_details.Add(self._TCTRL_temp_periph, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3)
        __lbl_temp_periph = wx.StaticText(self, -1, _("(axill./oral/...)"))
        __szr_temp_details.Add(__lbl_temp_periph, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 10)
        __szr_temp_details.Add(self._TCTRL_temp_rect, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3)
        __lbl_temp_rect = wx.StaticText(self, -1, _("(rectal)"))
        __szr_temp_details.Add(__lbl_temp_rect, 0, wx.ALIGN_CENTER_VERTICAL, 3)
        __szr_temp_details.Add((20, 20), 1, wx.EXPAND, 0)
        __szr_temp_details.Add(self._RBTN_centigrade, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3)
        __szr_temp_details.Add(self._RBTN_fahrenheit, 0, wx.ALIGN_CENTER_VERTICAL, 3)
        __gzsr_main.Add(__szr_temp_details, 1, wx.EXPAND, 0)
        __gzsr_main.Add((20, 20), 0, wx.EXPAND, 0)
        __lbl_resp_rate = wx.StaticText(self, -1, _("Resp"))
        __gzsr_main.Add(__lbl_resp_rate, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_respiration.Add(self._TCTRL_respiration, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3)
        __lbl_units_respiration = wx.StaticText(self, -1, _("/min"))
        __szr_respiration.Add(__lbl_units_respiration, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        __gzsr_main.Add(__szr_respiration, 1, wx.EXPAND, 0)
        __gzsr_main.Add((20, 20), 0, wx.EXPAND, 0)
        __gzsr_main.Add((20, 20), 0, wx.EXPAND, 0)
        __lbl_figure = wx.StaticText(self, -1, _("Figure"))
        __lbl_figure.SetForegroundColour(wx.Colour(95, 159, 159))
        __gzsr_main.Add(__lbl_figure, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0)
        __gzsr_main.Add((20, 20), 0, wx.EXPAND, 0)
        __lbl_height = wx.StaticText(self, -1, _("Height"))
        __gzsr_main.Add(__lbl_height, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_height.Add(self._TCTRL_height, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3)
        __lbl_unit_height = wx.StaticText(self, -1, _("cm"))
        __szr_height.Add(__lbl_unit_height, 0, wx.ALIGN_CENTER_VERTICAL, 10)
        __szr_height.Add((20, 20), 1, wx.EXPAND, 0)
        __szr_height.Add(self._LBL_last_height, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        __gzsr_main.Add(__szr_height, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __gzsr_main.Add(self._LNK_BMI, 0, wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 15)
        __lbl_weight = wx.StaticText(self, -1, _("Weight"))
        __gzsr_main.Add(__lbl_weight, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL, 3)
        __szr_weight.Add(self._TCTRL_weight, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3)
        __lbl_unit_weight = wx.StaticText(self, -1, _("g or kg"))
        __szr_weight.Add(__lbl_unit_weight, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_weight.Add((20, 20), 1, wx.EXPAND, 0)
        __szr_weight.Add(self._LBL_last_weight, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        __gzsr_main.Add(__szr_weight, 1, wx.EXPAND, 0)
        __gzsr_main.Add(self._LBL_BMI_value, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 15)
        __lbl_waist = wx.StaticText(self, -1, _("Waist"))
        __gzsr_main.Add(__lbl_waist, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_waist.Add(self._TCTRL_waist, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3)
        __lbl_unit_waist = wx.StaticText(self, -1, _("cm"))
        __szr_waist.Add(__lbl_unit_waist, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_waist.Add((20, 20), 1, wx.EXPAND, 0)
        __szr_waist.Add(self._LBL_last_waist, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        __gzsr_main.Add(__szr_waist, 1, wx.EXPAND, 0)
        __gzsr_main.Add((20, 20), 0, wx.EXPAND, 0)
        __gzsr_main.Add((20, 20), 0, wx.EXPAND, 0)
        __gzsr_main.Add(self._clock, 1, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0)
        __gzsr_main.Add((20, 20), 0, wx.EXPAND, 0)
        __gzsr_main.AddGrowableCol(1)
        __szr_main.Add(__gzsr_main, 1, wx.EXPAND, 0)
        self.SetSizer(__szr_main)
        __szr_main.Fit(self)
        # end wxGlade

# end of class wxgPrimaryCareVitalsInputPnl


