#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# generated by wxGlade 0.6.8
#

import wx

# begin wxGlade: dependencies
import gettext
# end wxGlade

# begin wxGlade: extracode
from Gnumed.wxpython.gmListWidgets import cReportListCtrl
# end wxGlade


class wxgMeasurementsDetailsPnl(wx.Panel):
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgMeasurementsDetailsPnl.__init__
		kwds["style"] = wx.TAB_TRAVERSAL
		wx.Panel.__init__(self, *args, **kwds)
		self._LCTRL_days = cReportListCtrl(self, wx.ID_ANY, style=wx.LC_REPORT | wx.NO_BORDER)
		self._LCTRL_results = cReportListCtrl(self, wx.ID_ANY, style=wx.LC_REPORT | wx.NO_BORDER)
		self._TCTRL_measurements = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_AUTO_URL | wx.NO_BORDER)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_day_selected, self._LCTRL_days)
		self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_result_selected, self._LCTRL_results)
		# end wxGlade

	def __set_properties(self):
		# begin wxGlade: wxgMeasurementsDetailsPnl.__set_properties
		self._TCTRL_measurements.SetBackgroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_BACKGROUND))
		# end wxGlade

	def __do_layout(self):
		# begin wxGlade: wxgMeasurementsDetailsPnl.__do_layout
		__szr_main = wx.BoxSizer(wx.HORIZONTAL)
		__szr_main.Add(self._LCTRL_days, 0, wx.RIGHT | wx.EXPAND, 5)
		__szr_main.Add(self._LCTRL_results, 1, wx.RIGHT | wx.EXPAND, 5)
		__szr_main.Add(self._TCTRL_measurements, 1, wx.EXPAND, 0)
		self.SetSizer(__szr_main)
		__szr_main.Fit(self)
		# end wxGlade

	def _on_day_selected(self, event):  # wxGlade: wxgMeasurementsDetailsPnl.<event_handler>
		print "Event handler '_on_day_selected' not implemented!"
		event.Skip()

	def _on_result_selected(self, event):  # wxGlade: wxgMeasurementsDetailsPnl.<event_handler>
		print "Event handler '_on_result_selected' not implemented!"
		event.Skip()

# end of class wxgMeasurementsDetailsPnl
