# -*- coding: UTF-8 -*-
#
# generated by wxGlade
#

import wx

# begin wxGlade: dependencies
import gettext
# end wxGlade

# begin wxGlade: extracode
from Gnumed.wxpython.gmPatSearchWidgets import cPersonSearchCtrl
from Gnumed.wxpython.gmWaitingListWidgets import cWaitingZonePhraseWheel
# end wxGlade


class wxgWaitingListEntryEditAreaPnl(wx.Panel):
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgWaitingListEntryEditAreaPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.Panel.__init__(self, *args, **kwds)
		self._PRW_patient = cPersonSearchCtrl(self, wx.ID_ANY, "")
		self._TCTRL_comment = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_WORDWRAP)
		self._PRW_zone = cWaitingZonePhraseWheel(self, wx.ID_ANY, "")
		self._SPCTRL_urgency = wx.SpinCtrl(self, wx.ID_ANY, "0", min=0, max=10, style=0)

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

	def __set_properties(self):
		# begin wxGlade: wxgWaitingListEntryEditAreaPnl.__set_properties
		self._PRW_patient.SetToolTip(_("Waiting list details for this patient."))
		self._TCTRL_comment.SetToolTip(_("What is the patient here for. Could be the Reason for Encounter."))
		self._TCTRL_comment.SetFocus()
		self._PRW_zone.SetToolTip(_("Select or enter the zone the patient is waiting in."))
		self._SPCTRL_urgency.SetToolTip(_("Select the urgency for this patient.\n\nDefault is 0. Range is 0-10.\nHigher values mean higher urgency."))
		# end wxGlade

	def __do_layout(self):
		# begin wxGlade: wxgWaitingListEntryEditAreaPnl.__do_layout
		_gszr_main = wx.FlexGridSizer(3, 2, 3, 5)
		__szr_options = wx.BoxSizer(wx.HORIZONTAL)
		__lbl_patient = wx.StaticText(self, wx.ID_ANY, _("Patient"))
		_gszr_main.Add(__lbl_patient, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		_gszr_main.Add(self._PRW_patient, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
		__lbl_comment = wx.StaticText(self, wx.ID_ANY, _("Comment"))
		_gszr_main.Add(__lbl_comment, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		_gszr_main.Add(self._TCTRL_comment, 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
		__lbl_options = wx.StaticText(self, wx.ID_ANY, "")
		_gszr_main.Add(__lbl_options, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		__lbl_zone = wx.StaticText(self, wx.ID_ANY, _("&Zone:"))
		__szr_options.Add(__lbl_zone, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)
		__szr_options.Add(self._PRW_zone, 1, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 10)
		__lbl_urgency = wx.StaticText(self, wx.ID_ANY, _("&Urgency:"))
		__szr_options.Add(__lbl_urgency, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)
		__szr_options.Add(self._SPCTRL_urgency, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		__szr_options.Add((20, 20), 1, wx.EXPAND, 0)
		_gszr_main.Add(__szr_options, 1, wx.EXPAND, 0)
		self.SetSizer(_gszr_main)
		_gszr_main.Fit(self)
		_gszr_main.AddGrowableRow(1)
		_gszr_main.AddGrowableCol(1)
		self.Layout()
		# end wxGlade

# end of class wxgWaitingListEntryEditAreaPnl
