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

import wx

# begin wxGlade: dependencies
import gettext
# end wxGlade

# begin wxGlade: extracode
# end wxGlade


class wxgLabRelatedDocumentsPnl(wx.Panel):
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgLabRelatedDocumentsPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
		wx.Panel.__init__(self, *args, **kwds)
		self._LBL_no_of_docs = wx.StaticText(self, wx.ID_ANY, _("Related documents: XX"))
		self._BTN_list_documents = wx.Button(self, wx.ID_ANY, _("List"), style=wx.BU_EXACTFIT)
		self._BTN_select_lab_doc_types = wx.Button(self, wx.ID_ANY, _("Select types"), style=wx.BU_EXACTFIT)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_list_documents_button_pressed, self._BTN_list_documents)
		self.Bind(wx.EVT_BUTTON, self._on_select_lab_doc_types_button_pressed, self._BTN_select_lab_doc_types)
		# end wxGlade

	def __set_properties(self):
		# begin wxGlade: wxgLabRelatedDocumentsPnl.__set_properties
		self._BTN_list_documents.SetToolTip(_("List lab documents within the episode of the selected measurement."))
		self._BTN_list_documents.Enable(False)
		self._BTN_select_lab_doc_types.SetToolTip(_("Select the document types assumed to contain lab results."))
		# end wxGlade

	def __do_layout(self):
		# begin wxGlade: wxgLabRelatedDocumentsPnl.__do_layout
		__szr_main = wx.BoxSizer(wx.HORIZONTAL)
		__szr_main.Add(self._LBL_no_of_docs, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)
		__szr_main.Add(self._BTN_list_documents, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		__szr_main.Add((20, 20), 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
		__szr_main.Add(self._BTN_select_lab_doc_types, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		self.SetSizer(__szr_main)
		__szr_main.Fit(self)
		self.Layout()
		# end wxGlade

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

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

# end of class wxgLabRelatedDocumentsPnl
