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

import wx

# begin wxGlade: dependencies
import gettext
# end wxGlade

# begin wxGlade: extracode
# end wxGlade


class wxgCommChannelEditAreaPnl(wx.ScrolledWindow):
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgCommChannelEditAreaPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		from Gnumed.wxpython.gmContactWidgets import cCommChannelTypePhraseWheel
		self._PRW_type = cCommChannelTypePhraseWheel(self, wx.ID_ANY, "")
		self._TCTRL_url = wx.TextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_comment = wx.TextCtrl(self, wx.ID_ANY, "")
		self._CHBOX_confidential = wx.CheckBox(self, wx.ID_ANY, _("Confidential"))

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

	def __set_properties(self):
		# begin wxGlade: wxgCommChannelEditAreaPnl.__set_properties
		self.SetScrollRate(10, 10)
		self._TCTRL_url.SetToolTip(_("Enter the address or number for this communications channel here."))
		self._TCTRL_comment.SetToolTip(_("A comment on this communications channel."))
		self._CHBOX_confidential.SetToolTip(_("Check this if the communications channel is to be treated confidentially."))
		# end wxGlade

	def __do_layout(self):
		# begin wxGlade: wxgCommChannelEditAreaPnl.__do_layout
		_gszr_main = wx.FlexGridSizer(4, 2, 3, 5)
		__LBL_type = wx.StaticText(self, wx.ID_ANY, _("Channel"))
		_gszr_main.Add(__LBL_type, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		_gszr_main.Add(self._PRW_type, 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
		__LBL_url = wx.StaticText(self, wx.ID_ANY, _("Value"))
		_gszr_main.Add(__LBL_url, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		_gszr_main.Add(self._TCTRL_url, 1, 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, 0, 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)
		_gszr_main.Add(self._CHBOX_confidential, 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
		self.SetSizer(_gszr_main)
		_gszr_main.Fit(self)
		_gszr_main.AddGrowableCol(1)
		self.Layout()
		# end wxGlade

# end of class wxgCommChannelEditAreaPnl
