Gnumed.timelinelib.wxgui.dialogs.editevent.view.EditEventDialog

Package Gnumed :: Package timelinelib :: Package wxgui :: Package dialogs :: Package editevent :: Module view :: Class EditEventDialog |
[frames] | no frames]

# Class EditEventDialog

source code

    humblewx.Dialog --+
                      |
       framework.Dialog --+
                          |
                         EditEventDialog

    <BoxSizerVertical>
        <StaticBoxSizerVertical label="$(properties_label)" border="ALL" proportion="1">
            <FlexGridSizer name="grid_sizer" columns="2" growableColumns="1" border="ALL" proportion="1">
                %s
            </FlexGridSizer>
        </StaticBoxSizerVertical>
        <CheckBox
            name="add_more_checkbox"
            label="$(add_more_label)"
            border="LEFT|RIGHT|BOTTOM"
        />
        <BoxSizerHorizontal border="LEFT|RIGHT|BOTTOM">
            <TwoStateButton
                initial_state_label="$(enlarge)"
                second_state_label="$(reduce)"
                event_EVT_INITIAL_STATE_CLICKED="on_enlarge_click"
                event_EVT_SECOND_STATE_CLICKED="on_reduce_click"
            />
            <Spacer />
            <Button
                name="duplicate"
                label="$(duplicate_label)"
                event_EVT_BUTTON="on_duplicate"
            />
            <StretchSpacer />
            <DialogButtonsOkCancelSizer
                event_EVT_BUTTON__ID_OK="on_ok_clicked"
            />
        </BoxSizerHorizontal>
    </BoxSizerVertical>

Instance Methods
__init__(self, parent, config, title, db, start=None, end=None, event=None) | source code
GetDuplicateEventDialog(self, timeline, event) | source code
GetPeriod(self) | source code
SetPeriod(self, value) | source code
GetShowPeriod(self) | source code
SetShowPeriod(self, value) | source code
GetShowTime(self) | source code
SetShowTime(self, value) | source code
DisableTime(self) | source code
GetFuzzy(self) | source code
SetFuzzy(self, value) | source code
GetLocked(self) | source code
SetLocked(self, value) | source code
EnableLocked(self, value) | source code
GetEndsToday(self) | source code
SetEndsToday(self, value) | source code
EnableEndsToday(self, value) | source code
GetName(self) | source code
SetName(self, value) | source code
GetCategory(self) | source code
SetCategory(self, value) | source code
GetContainer(self) | source code
SetContainer(self, value) | source code
GetEventData(self) | source code
SetEventData(self, event_data) | source code
ClearEventData(self) | source code
IsAddMoreChecked(self) | source code
SetShowAddMoreCheckbox(self, value) | source code
SetFocusOnFirstControl(self) | source code
DisplayInvalidPeriod(self, message) | source code
Inherited from `framework.Dialog`: `DisplayErrorMessage`, `DisplayInformationMessage`, `EndModalOk`

Class Variables
| TIME_DETAILS_ROW = ``...``
| CHECKBOX_ROW = ``...``
| TEXT_FIELD_ROW = ``...``
| CATEGORY_LISTBOX_ROW = ``...``
| CONTAINER_LISTBOX_ROW = ``...``
| NOTEBOOK_ROW = ``...``

Class Variable Details

  ### TIME_DETAILS_ROW Value:
      """
              <StaticText align="ALIGN_CENTER_VERTICAL" label="$(when_label)
      " />
              <BoxSizerHorizontal>
                  <PeriodPicker
                      name="period_picker"
                      time_type="$(time_type)"
                      config="$(config)"
      ...

  ### CHECKBOX_ROW Value:
      """
              <Spacer />
              <FlexGridSizer rows="1">
                  <CheckBox
                      name="fuzzy_checkbox"
                      label="$(fuzzy_checkbox_text)"
                  />
                  <CheckBox
      ...

  ### TEXT_FIELD_ROW Value:
      """
              <StaticText align="ALIGN_CENTER_VERTICAL" label="$(text_label)
      " />
              <TextCtrl name="name" />
          """

  ### CATEGORY_LISTBOX_ROW Value:
      """
              <StaticText align="ALIGN_CENTER_VERTICAL" label="$(category_la
      bel)" />
              <CategoryChoice
                  name="category_choice"
                  allow_add="True"
                  allow_edit="True"
                  timeline="$(db)"
      ...

  ### CONTAINER_LISTBOX_ROW Value:
      """
              <StaticText align="ALIGN_CENTER_VERTICAL" label="$(container_l
      abel)" />
              <ContainerChoice
                  name="container_choice"
                  event_EVT_CONTAINER_CHANGED="on_container_changed"
                  db="$(db)"
                  align="ALIGN_LEFT"
      ...

  ### NOTEBOOK_ROW Value:
      """
              <Spacer />
              <Notebook name="notebook" style="BK_DEFAULT">
                  <DescriptionEditor
                      name="description"
                      notebookLabel="$(page_description)"
                      editor="$(self)"
                      proportion="1"
      ...