#!/usr/bin/env python
# -*- coding: ISO-8859-15 -*-
# generated by wxGlade 0.4.1 on Tue Dec 19 18:18:37 2006

import wx

class wxgEncounterEditAreaPnl(wx.ScrolledWindow):
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmEMRStructWidgets, gmListWidgets, gmDateTimeInput

        # begin wxGlade: wxgEncounterEditAreaPnl.__init__
        kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._LCTRL_problems = gmListWidgets.cReportListCtrl(self, -1, style=wx.LC_REPORT)
        self._LBL_patient = wx.StaticText(self, -1, "")
        self._PRW_encounter_type = gmEMRStructWidgets.cEncounterTypePhraseWheel(self, -1, "", style=wx.NO_BORDER)
        self._PRW_start = gmDateTimeInput.cFuzzyTimestampInput(self, -1, "", style=wx.NO_BORDER)
        self._PRW_end = gmDateTimeInput.cFuzzyTimestampInput(self, -1, "", style=wx.NO_BORDER)
        self._TCTRL_rfe = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._TCTRL_aoe = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)

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

    def __set_properties(self):
        # begin wxGlade: wxgEncounterEditAreaPnl.__set_properties
        self.SetScrollRate(10, 10)
        self._LCTRL_problems.SetBackgroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_BACKGROUND))
        self._PRW_encounter_type.SetToolTipString(_("Select the type of encounter."))
        self._TCTRL_rfe.SetToolTipString(_("Enter the Reason For Encounter here. This is the patient's initial request which led to the consultation."))
        self._TCTRL_aoe.SetToolTipString(_("Enter the Consultation Summary here. This is your final assessment of the encounter/consultation summary."))
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxgEncounterEditAreaPnl.__do_layout
        __szr_main = wx.BoxSizer(wx.VERTICAL)
        __gszr_encounter_details = wx.FlexGridSizer(6, 2, 1, 3)
        __lbl_instructions = wx.StaticText(self, -1, _("Edit the details for todays consultation below.\n\nThe following problems were discussed during this consultation:"), style=wx.ALIGN_CENTRE)
        __szr_main.Add(__lbl_instructions, 0, wx.EXPAND, 0)
        __szr_main.Add(self._LCTRL_problems, 1, wx.EXPAND, 0)
        __lbl_patient = wx.StaticText(self, -1, _("Patient"))
        __gszr_encounter_details.Add(__lbl_patient, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __gszr_encounter_details.Add(self._LBL_patient, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __lbl_type = wx.StaticText(self, -1, _("Type"))
        __gszr_encounter_details.Add(__lbl_type, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __gszr_encounter_details.Add(self._PRW_encounter_type, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __lbl_start = wx.StaticText(self, -1, _("Started"))
        __gszr_encounter_details.Add(__lbl_start, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __gszr_encounter_details.Add(self._PRW_start, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __lbl_end = wx.StaticText(self, -1, _("Ended"))
        __gszr_encounter_details.Add(__lbl_end, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __gszr_encounter_details.Add(self._PRW_end, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __lbl_rfe = wx.StaticText(self, -1, _("Request"))
        __gszr_encounter_details.Add(__lbl_rfe, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __gszr_encounter_details.Add(self._TCTRL_rfe, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __lbl_aoe = wx.StaticText(self, -1, _("Summary"))
        __gszr_encounter_details.Add(__lbl_aoe, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __gszr_encounter_details.Add(self._TCTRL_aoe, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __gszr_encounter_details.AddGrowableCol(1)
        __szr_main.Add(__gszr_encounter_details, 0, wx.EXPAND, 0)
        self.SetAutoLayout(True)
        self.SetSizer(__szr_main)
        __szr_main.Fit(self)
        __szr_main.SetSizeHints(self)
        # end wxGlade

# end of class wxgEncounterEditAreaPnl


