Gnumed.wxGladeWidgets.wxgModifyOrthancContentDlg

Package Gnumed :: Package wxGladeWidgets :: Module wxgModifyOrthancContentDlg |
[frames] | no frames]

# Source Code for Module Gnumed.wxGladeWidgets.wxgModifyOrthancContentDlg

     1  # -*- coding: UTF-8 -*-
     2  #
     3  # generated by wxGlade
     4  #
     5
     6  import wx
     7
     8  # begin wxGlade: dependencies
     9  import gettext
    10  # end wxGlade
    11
    12  # begin wxGlade: extracode
    13  from Gnumed.wxpython.gmTextCtrl import cTextCtrl
    14  from Gnumed.wxpython.gmListWidgets import cReportListCtrl
    15  # end wxGlade
    16
    17
    18 -class wxgModifyOrthancContentDlg(wx.Dialog):
    19 -        def __init__(self, *args, **kwds):
    20                  # begin wxGlade: wxgModifyOrthancContentDlg.__init__
    21                  kwds["style"] = kwds.get("style", 0) | wx.CAPTION | wx.CLOSE_BOX | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER
    22                  wx.Dialog.__init__(self, *args, **kwds)
    23                  self._TCTRL_search_term = cTextCtrl(self, wx.ID_ANY, "")
    24                  self._BTN_search_patients = wx.Button(self, wx.ID_ANY, _("&Search"), style=wx.BU_EXACTFIT)
    25                  self._LCTRL_patients = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
    26                  self._TCTRL_new_patient_id = wx.TextCtrl(self, wx.ID_ANY, "")
    27                  self._BTN_suggest_patient_id = wx.Button(self, wx.ID_ANY, _("Suggest"), style=wx.BU_EXACTFIT)
    28                  self._BTN_set_patient_id = wx.Button(self, wx.ID_ANY, _("Set"), style=wx.BU_EXACTFIT)
    29
    30                  self.__set_properties()
    31                  self.__do_layout()
    32
    33                  self.Bind(wx.EVT_BUTTON, self._on_search_patients_button_pressed, self._BTN_search_patients)
    34                  self.Bind(wx.EVT_BUTTON, self._on_suggest_patient_id_button_pressed, self._BTN_suggest_patient_id)
    35                  self.Bind(wx.EVT_BUTTON, self._on_set_patient_id_button_pressed, self._BTN_set_patient_id)
    36                  # end wxGlade
    37
    38 -        def __set_properties(self):
    39                  # begin wxGlade: wxgModifyOrthancContentDlg.__set_properties
    40                  self.SetTitle(_("dialog_1"))
    41                  self._BTN_search_patients.SetToolTip(_("Search patients in Orthanc DICOM store."))
    42                  self._BTN_suggest_patient_id.SetToolTip(_("Suggest a patient ID based on the active patient."))
    43                  # end wxGlade
    44
    45 -        def __do_layout(self):
    46                  # begin wxGlade: wxgModifyOrthancContentDlg.__do_layout
    47                  __szr_main = wx.BoxSizer(wx.VERTICAL)
    48                  __szr_patient_id = wx.BoxSizer(wx.HORIZONTAL)
    49                  __szr_search = wx.BoxSizer(wx.HORIZONTAL)
    50                  __lbl_search_term = wx.StaticText(self, wx.ID_ANY, _("Search term:"))
    51                  __szr_search.Add(__lbl_search_term, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)
    52                  __szr_search.Add(self._TCTRL_search_term, 1, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 3)
    53                  __szr_search.Add(self._BTN_search_patients, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    54                  __szr_main.Add(__szr_search, 0, wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 3)
    55                  __szr_main.Add(self._LCTRL_patients, 1, wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 3)
    56                  __lbl_new_patient_id = wx.StaticText(self, wx.ID_ANY, _("New patient ID:"))
    57                  __szr_patient_id.Add(__lbl_new_patient_id, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)
    58                  __szr_patient_id.Add(self._TCTRL_new_patient_id, 1, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)
    59                  __szr_patient_id.Add(self._BTN_suggest_patient_id, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 3)
    60                  __szr_patient_id.Add(self._BTN_set_patient_id, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    61                  __szr_main.Add(__szr_patient_id, 0, wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 0)
    62                  self.SetSizer(__szr_main)
    63                  __szr_main.Fit(self)
    64                  self.Layout()
    65                  # end wxGlade
    66
    67 -        def _on_search_patients_button_pressed(self, event):  # wxGlade: wxgModifyOrthancContentDlg.<event_handler>
    68                  print("Event handler '_on_search_patients_button_pressed' not implemented!")
    69                  event.Skip()
    70
    71 -        def _on_suggest_patient_id_button_pressed(self, event):  # wxGlade: wxgModifyOrthancContentDlg.<event_handler>
    72                  print("Event handler '_on_suggest_patient_id_button_pressed' not implemented!")
    73                  event.Skip()
    74
    75 -        def _on_set_patient_id_button_pressed(self, event):  # wxGlade: wxgModifyOrthancContentDlg.<event_handler>
    76                  print("Event handler '_on_set_patient_id_button_pressed' not implemented!")
    77                  event.Skip()
    78
    79  # end of class wxgModifyOrthancContentDlg
    80