#!/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.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel
from Gnumed.wxpython.gmListWidgets import cReportListCtrl
from Gnumed.wxpython.gmPhraseWheel import cPhraseWheel
from Gnumed.wxpython.gmTextCtrl import cTextCtrl
# end wxGlade


class wxgFormDisposalDlg(wx.Dialog):
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgFormDisposalDlg.__init__
		kwds["style"] = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER | wx.THICK_FRAME
		wx.Dialog.__init__(self, *args, **kwds)
		self._LBL_msg = wx.StaticText(self, wx.ID_ANY, _("What would you like to do with the following document(s) ?"))
		self._LCTRL_forms = cReportListCtrl(self, wx.ID_ANY, style=wx.LC_REPORT | wx.NO_BORDER)
		self._BTN_show_forms = wx.Button(self, wx.ID_OPEN, "", style=wx.BU_EXACTFIT)
		self._BTN_delete_forms = wx.Button(self, wx.ID_DELETE, "", style=wx.BU_EXACTFIT)
		self._CHBOX_export = wx.CheckBox(self, wx.ID_ANY, _("to patient export area"))
		self._PRW_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_soap = cTextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._BTN_print = wx.Button(self, wx.ID_PRINT, "")
		self._BTN_remote_print = wx.Button(self, wx.ID_ANY, _("Print &remotely"))
		self._BTN_export = wx.Button(self, wx.ID_ANY, _("&Export only"))
		self._BTN_archive = wx.Button(self, wx.ID_ANY, _("&Archive only"))
		self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, "")

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_show_forms_button_pressed, self._BTN_show_forms)
		self.Bind(wx.EVT_BUTTON, self._on_delete_forms_button_pressed, self._BTN_delete_forms)
		self.Bind(wx.EVT_BUTTON, self._on_print_button_pressed, self._BTN_print)
		self.Bind(wx.EVT_BUTTON, self._on_remote_print_button_pressed, self._BTN_remote_print)
		self.Bind(wx.EVT_BUTTON, self._on_export_button_pressed, self._BTN_export)
		self.Bind(wx.EVT_BUTTON, self._on_archive_button_pressed, self._BTN_archive)
		# end wxGlade

	def __set_properties(self):
		# begin wxGlade: wxgFormDisposalDlg.__set_properties
		self.SetTitle(_("Form handling"))
		self.SetSize((609, 500))
		self._BTN_show_forms.SetToolTipString(_("Show the selected form(s)."))
		self._BTN_delete_forms.SetToolTipString(_("Delete the selected forms from the list."))
		self._CHBOX_export.SetToolTipString(_("Check here to put a copy into the export area."))
		self._PRW_episode.SetToolTipString(_("Select episode under which to archive a copy of the document(s)."))
		self._TCTRL_soap.SetToolTipString(_("Enter a SOAP note to be put into the chart."))
		self._BTN_print.SetToolTipString(_("Print document(s)\n(optionally copy to archive and export area)"))
		self._BTN_remote_print.SetToolTipString(_("Remotely print document(s).\n(optionally copy to archive and export area)"))
		self._BTN_export.SetToolTipString(_("Put into export area only.\n(no printing, no archiving)"))
		self._BTN_archive.SetToolTipString(_("Put copy into archive only.\n(no printing, no export area)"))
		self._BTN_cancel.SetToolTipString(_("Cancel any actions and close dialog."))
		# end wxGlade

	def __do_layout(self):
		# begin wxGlade: wxgFormDisposalDlg.__do_layout
		__szr_main = wx.BoxSizer(wx.VERTICAL)
		__szr_buttons = wx.BoxSizer(wx.HORIZONTAL)
		__szr_grid = wx.FlexGridSizer(3, 2, 2, 2)
		__szr_forms = wx.BoxSizer(wx.HORIZONTAL)
		__szr_forms_buttons = wx.BoxSizer(wx.VERTICAL)
		__szr_main.Add(self._LBL_msg, 0, wx.ALL | wx.EXPAND, 3)
		__szr_forms.Add(self._LCTRL_forms, 1, wx.RIGHT | wx.EXPAND, 5)
		__szr_forms_buttons.Add((20, 20), 1, wx.EXPAND, 0)
		__szr_forms_buttons.Add(self._BTN_show_forms, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALIGN_CENTER_VERTICAL, 0)
		__szr_forms_buttons.Add(self._BTN_delete_forms, 0, wx.TOP | wx.ALIGN_CENTER_HORIZONTAL | wx.ALIGN_CENTER_VERTICAL, 3)
		__szr_forms_buttons.Add((20, 20), 1, wx.EXPAND, 0)
		__szr_forms.Add(__szr_forms_buttons, 0, wx.EXPAND, 0)
		__szr_main.Add(__szr_forms, 1, wx.LEFT | wx.RIGHT | wx.TOP | wx.EXPAND, 3)
		__lbl_export = wx.StaticText(self, wx.ID_ANY, _("Export"))
		__szr_grid.Add(__lbl_export, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		__szr_grid.Add(self._CHBOX_export, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		__lbl_episode = wx.StaticText(self, wx.ID_ANY, _("Episode"))
		__szr_grid.Add(__lbl_episode, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		__szr_grid.Add(self._PRW_episode, 1, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
		__lbl_soap = wx.StaticText(self, wx.ID_ANY, _("Note"))
		__szr_grid.Add(__lbl_soap, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		__szr_grid.Add(self._TCTRL_soap, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
		__szr_grid.AddGrowableCol(1)
		__szr_main.Add(__szr_grid, 1, wx.ALL | wx.EXPAND, 3)
		__szr_buttons.Add((20, 20), 2, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
		__szr_buttons.Add(self._BTN_print, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 5)
		__szr_buttons.Add(self._BTN_remote_print, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 5)
		__szr_buttons.Add(self._BTN_export, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 5)
		__szr_buttons.Add(self._BTN_archive, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALIGN_CENTER_VERTICAL, 0)
		__szr_buttons.Add((20, 20), 1, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
		__szr_buttons.Add(self._BTN_cancel, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		__szr_buttons.Add((20, 20), 2, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
		__szr_main.Add(__szr_buttons, 0, wx.ALL | wx.EXPAND, 3)
		self.SetSizer(__szr_main)
		self.Layout()
		# end wxGlade

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

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

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

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

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

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

# end of class wxgFormDisposalDlg
if __name__ == "__main__":
	gettext.install("app") # replace with the appropriate catalog name

	app = wx.PySimpleApp(0)
	wx.InitAllImageHandlers()
	dialog_1 = wxgFormDisposalDlg(None, wx.ID_ANY, "")
	app.SetTopWindow(dialog_1)
	dialog_1.Show()
	app.MainLoop()