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

import wx

# begin wxGlade: dependencies
import gettext
# end wxGlade

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


class wxgMeasurementsAsListPnl(wx.Panel):
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgMeasurementsAsListPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
		wx.Panel.__init__(self, *args, **kwds)
		self._LCTRL_results = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
		self._TCTRL_measurements = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_AUTO_URL | wx.TE_MULTILINE | wx.TE_READONLY)
		self._PNL_related_documents = cLabRelatedDocumentsPnl(self, wx.ID_ANY, style=wx.BORDER_NONE)

		self.__set_properties()
		self.__do_layout()

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

	def __set_properties(self):
		# begin wxGlade: wxgMeasurementsAsListPnl.__set_properties
		pass
		# end wxGlade

	def __do_layout(self):
		# begin wxGlade: wxgMeasurementsAsListPnl.__do_layout
		__szr_main = wx.BoxSizer(wx.HORIZONTAL)
		__szr_details = wx.BoxSizer(wx.VERTICAL)
		__szr_main.Add(self._LCTRL_results, 5, wx.EXPAND | wx.RIGHT, 5)
		__szr_details.Add(self._TCTRL_measurements, 1, wx.EXPAND, 0)
		__szr_details.Add(self._PNL_related_documents, 0, wx.EXPAND | wx.TOP, 3)
		__szr_main.Add(__szr_details, 4, wx.EXPAND, 0)
		self.SetSizer(__szr_main)
		__szr_main.Fit(self)
		self.Layout()
		# end wxGlade

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

# end of class wxgMeasurementsAsListPnl
