def __init__(self, parent, shortcut_config): Dialog.__init__(self, ShortcutsEditorDialogController, parent, { "functions": _("Functions:"), "modifiers": _("Modifier:"), "shortcutkey": _("Shortcut Key:"), }, title=_("Edit Shortcuts")) self.controller.on_init(shortcut_config)
def __init__(self, parent, title, db, container=None): Dialog.__init__(self, EditContainerDialogController, parent, { "db": db, "name_text": _("Name:"), "category_text": _("Category:"), }, title=title) self.controller.on_init(db, container)
def __init__(self, parent, event_list): Dialog.__init__(self, EventListDialogController, parent, { "event_list": event_list }, title=_("Found Events"), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) self.controller.on_init() if len(event_list) > 0: self.lb_events.SetSelection(0)
def __init__(self, parent, db, config): Dialog.__init__(self, ErasEditorDialogController, parent, {}, title=_("Edit Era's"), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) self.controller.on_init(db, config)
def __init__(self, parent, db, canvas): self._db = db self._canvas = canvas Dialog.__init__(self, SlideshowDialogController, parent, { "events_label": _("Select Events"), "target_dir_label": _("Save html pages at") }, title=_("Start Slide Show")) self.controller.on_init(db, canvas)
def __init__(self, parent=None): Dialog.__init__(self, ImportIcsDialogController, parent, { "import_location_label": _("Import in event description"), "trigger_as_start_time_label": _("Use as start date of event"), "trigger_as_alarm": _("Use as event alarm time"), }, title=_("Options for ICS import")) self.controller.on_init() self._make_static_texts_bold()
def __init__(self, parent, title, data, fields): self.static_box = None Dialog.__init__(self, FieldSelectionDialogController, parent, {"description_text": _("Select Fields to Export")}, title=title) self.controller.on_init(data, fields)
def __init__(self, parent, config, time_type, time, title): Dialog.__init__(self, TimeEditorDialogController, parent, { "cb_text": _("Show time"), "use_checkbox": time_type.is_date_time_type(), "time_type": time_type, "config": config, }, title=title) self.controller.on_init(time_type, time)
def __init__(self, title, text, parent=None): Dialog.__init__(self, TextDisplayDialogController, parent, { "id_copy": wx.ID_COPY, }, title=title) self.controller.on_init(text)
def __init__(self, parent, config): Dialog.__init__(self, EventEditorTabSelectionDialogController, parent, { "header_text": _("Select Tab Order:"), "up_bitmap": self._GetBitmap(wx.ART_GO_UP), "down_bitmap": self._GetBitmap(wx.ART_GO_DOWN) }, title=_("Event Editor Tab Order"), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) self.controller.on_init(config)
def __init__(self, parent, feature): Dialog.__init__(self, FeatureDialogController, parent, {"give_feedback_button_text": _("Give Feedback")}, title=_("Feedback On Feature")) self._make_info_label_bold() self.controller.on_init(feature)
def __init__(self, parent, config, db, handle_new_time_fn, title): Dialog.__init__(self, ChangeNowDateDialogController, parent, { "show_time_text": _("Show time"), "time_type": db.get_time_type(), "config": config, "time_picker_on_change": self._time_picker_on_change, }, title=title) self.controller.on_init(db, handle_new_time_fn)
def __init__(self, parent, config, time_type, time, title): Dialog.__init__(self, TimeEditorDialogController, parent, { "time_type": time_type, "config": config, }, title=title) self.controller.on_init(time)
def __init__(self, parent): Dialog.__init__(self, SystemInfoDialogController, parent, { "system_version": _("System version:"), "python_version": _("Python version:"), "wxpython_version": _("wxPython version:"), "locale_setting": _("Locale setting:"), "date_format": _("Locale date format:"), "config_file": _("Configuration file:"), }, title=_("System Information")) self.controller.on_init(parent)
def __init__(self, parent, db): Dialog.__init__(self, CategoryFinderDialogController, parent, { "check_button_text": _("Check"), "uncheck_button_text": _("Uncheck"), }, title=_("Category Finder"), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) self.controller.on_init(db, parent)
def __init__(self, parent): Dialog.__init__(self, ExportDialogController, parent, { "type_description_text": _("Select Export File Type"), "encoding_description_text": _("Select Text Encoding"), "export_items_description_text": _("Select Items to export"), "events_text": _("Events"), "categories_text": _("Categories"), "select_text": _("Select Fields..."), }, title=_("Export Timeline")) self.controller.on_init()
def __init__(self, parent, title, db, category): Dialog.__init__(self, EditCategoryDialogController, parent, { "db": db, "name_text": _("Name:"), "color_text": _("Color:"), "progress_color_text": _("Progress Color:"), "done_color_text": _("Done Color:"), "font_color_text": _("Font Color:"), "parent_text": _("Parent:"), }, title=title) self.controller.on_init(db, category)
def __init__(self, parent=None): Dialog.__init__( self, ImportIcsDialogController, parent, { "import_location_label": _("Import in event description"), "trigger_as_start_time_label": _("Use as start date of event"), "trigger_as_alarm": _("Use as event alarm time"), }, title=_("Options for ICS import")) self.controller.on_init() self._make_static_texts_bold()
def __init__(self, parent, config, db, handle_new_time_fn, title): Dialog.__init__( self, ChangeNowDateDialogController, parent, { "show_time_text": _("Show time"), "time_type": db.get_time_type(), "config": config, "time_picker_on_change": self._time_picker_on_change, }, title=title) self.controller.on_init(db, handle_new_time_fn)
def __init__(self, parent, info, subject, body): Dialog.__init__(self, FeedbackDialogController, parent, { "title_text": _("Email Feedback"), "to_text": _("To:"), "subject_text": _("Subject:"), "body_text": _("Body:"), "send_with_text": _("Send With:"), "default_button_text": _("Default client"), "gmail_button_text": _("Gmail"), "other_button_text": _("Other"), }, title=_("Email Feedback"), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) self.controller.on_init(webbrowser, info, subject, body) self.body_text.SetFocus()
def __init__(self, parent, db, event): self. move_period_config = db.get_time_type().get_duplicate_functions() period_list = [label for (label, fn) in self.move_period_config] Dialog.__init__(self, DuplicateEventDialogController, parent, { "nbr_of_duplicates_text": _("Number of duplicates:"), "period_text": _("Period"), "direction_text": _("Direction"), "period_choices": period_list, "frequency_text": _("Frequency:"), "direction_choices": [_("Forward"), _("Backward"), _("Both")], }, title=_("Duplicate Event")) self.controller.on_init(event) self.sc_nbr_of_duplicates.SetSelection(-1, -1)
def __init__(self, parent, items): Dialog.__init__( self, FileNewDialogController, parent, { "explanation_text": _("Choose what type of timeline you want to create."), "description_text": _("Description"), }, title=_("Create new timeline"), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) self.controller.on_init(items)
def __init__(self, db, parent=None): Dialog.__init__( self, ImportEventsDialogController, parent, { "header_label": _("Select timeline to import from:"), "dialog_wildcard": WildcardHelper(_("Timeline files"), ["timeline", "ics"]).wildcard_string(), }, title=_("Import events")) self.controller.on_init(db)
def __init__(self, parent): Dialog.__init__(self, ExportDialogController, parent, { "type_description_text": _("Select Export File Type"), "encoding_description_text": _("Select Text Encoding"), "encoding_error_strategy_text": _("Select encoding error strategy"), "export_items_description_text": _("Select Items to export"), "events_text": _("Events"), "categories_text": _("Categories"), "select_text": _("Select Fields..."), "lb_error_strategies_choices": [IGNORE, REPLACE, XML_REPLACE, STRICT], }, title=_("Export Timeline")) self.controller.on_init() self.lb_error_strategies.Select(0)
def __init__(self, parent, title, time_type, config, era): Dialog.__init__(self, EraEditorDialogController, parent, { "groupbox_text": _("Era Properties"), "name_text": _("Name:"), "colour_text": _("Colour:"), "when_text": _("When:"), "time_type": time_type, "config": config, "ends_today_text": _("Ends today"), }, title=title) self.controller.on_init(era) self.period_picker.SetFocus()
def __init__(self, parent, title, db, config, milestone): Dialog.__init__(self, EditMilestoneDialogController, parent, { "groupbox_text": _("Milestone Properties"), "when_text": _("When:"), "time_type": db.time_type, "description_text": _("Description:"), "description_label": _("Label:"), "category_label": _("Category:"), "colour_text": _("Colour:"), "config": config, "db": db, }, title=title) self.controller.on_init(db, milestone) self._milestone = milestone self.txt_label.Bind(wx.EVT_CHAR, self.handle_keypress)
def __init__(self, parent, title, time_type, config, era): Dialog.__init__(self, EraEditorDialogController, parent, { "groupbox_text": _("Era Properties"), "show_time_text": _("Show time"), "name_text": _("Name:"), "colour_text": _("Colour:"), "when_text": _("When:"), "to_text": _("to"), "time_type": time_type, "config": config, }, title=title) self.controller.on_init(era, time_type) self.dtp_start.SetFocus()
def __init__(self, parent, config, title, db, start=None, end=None, event=None): self.parent = parent self.timeline = db self.config = config self.start = start self.event = event self._insert_rows_in_correct_order_in_xml() Dialog.__init__(self, EditEventDialogController, parent, { "self": self, "db": db, "time_type": db.get_time_type(), "config": config, "properties_label": _("Event Properties"), "when_label": _("When:"), "fuzzy_checkbox_text": _("Fuzzy"), "locked_checkbox_text": _("Locked"), "ends_today_checkbox_text": _("Ends today"), "text_label": _("Text:"), "category_label": _("Category:"), "container_label": _("Container:"), "page_description": _("Description"), "page_icon": _("Icon"), "page_alert": _("Alert"), "page_hyperlink": _("Hyperlink"), "page_progress": _("Progress"), "color": _("Default color"), "add_more_label": _("Add more events after this one"), "enlarge": _("&Enlarge"), "reduce": _("&Reduce"), "duplicate_label": _("Save and Duplicate"), }, title=title, style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) self.controller.on_init( config, db.get_time_type(), DbWrapperEventRepository(db), db, start, end, event) self._make_row_with_notebook_growable() self.SetMinSize((800, -1)) self.Fit() self.SetMinSize(self.GetSize())
def __init__(self, parent, config, title, db, start=None, end=None, event=None): self.timeline = db self.config = config self.start = start self.event = event self._insert_rows_in_correct_order_in_xml() Dialog.__init__(self, EditEventDialogController, parent, { "self": self, "db": db, "time_type": db.get_time_type(), "config": config, "properties_label": _("Event Properties"), "when_label": _("When:"), "period_checkbox_text": _("Period"), "show_time_checkbox_text": _("Show time"), "fuzzy_checkbox_text": _("Fuzzy"), "locked_checkbox_text": _("Locked"), "ends_today_checkbox_text": _("Ends today"), "to_label": _("to"), "text_label": _("Text:"), "category_label": _("Category:"), "container_label": _("Container:"), "page_description": _("Description"), "page_icon": _("Icon"), "page_alert": _("Alert"), "page_hyperlink": _("Hyperlink"), "page_progress": _("Progress"), "add_more_label": _("Add more events after this one"), "enlarge": _("&Enlarge"), "reduce": _("&Reduce"), }, title=title, style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) self.controller.on_init( config, db.get_time_type(), DbWrapperEventRepository(db), db, start, end, event) self._make_row_with_notebook_growable() self.SetMinSize((800, -1)) self.Fit() self.SetMinSize(self.GetSize())
def __init__(self, parent, config): Dialog.__init__(self, PreferencesDialogController, parent, { "general_text": _("General"), "open_recent_text": _("Open most recent timeline on startup"), "inertial_scrolling_text": _("Use inertial scrolling"), "never_period_point_text": _("Never show period Events as point Events"), "center_text_text": _("Center Event texts"), "tab_order_text": _("Select Event Editor Tab Order"), "date_time_text": _("Date && Time"), "week_start_text": _("Week start on:"), "week_start_choices": [_("Monday"), _("Sunday")], "fonts_text": _("Fonts"), "major_strip_text": _("Major Strips:"), "minor_strip_text": _("Minor Strips:"), "legends_text": _("Legends:"), "edit_text": _("Edit"), "experimental_text": _("Experimental Features"), }, title=_("Preferences")) self.controller.on_init(config, ExperimentalFeatures())
def __init__(self, parent, db, event): self.move_period_config = db.get_time_type().get_duplicate_functions() period_list = [label for (label, fn) in self.move_period_config] Dialog.__init__( self, DuplicateEventDialogController, parent, { "nbr_of_duplicates_text": _("Number of duplicates:"), "period_text": _("Period"), "direction_text": _("Direction"), "period_choices": period_list, "frequency_text": _("Frequency:"), "direction_choices": [_("Forward"), _("Backward"), _("Both")], }, title=_("Duplicate Event")) self.controller.on_init(event) self.sc_nbr_of_duplicates.SetSelection(-1, -1)
def __init__(self, parent, config): Dialog.__init__(self, PreferencesDialogController, parent, { "general_text": _("General"), "open_recent_text": _("Open most recent timeline on startup"), "inertial_scrolling_text": _("Use inertial scrolling"), "never_period_point_text": _("Never show period Events as point Events"), "center_text_text": _("Center Event texts"), "uncheck_time_for_new_events_text": _("Uncheck time checkbox for new events"), "text_below_icon_text": _("Balloon text below icon"), "text_filtered_listbox_export": _("Filter items in listbox export, on categories"), "tab_order_text": _("Select Event Editor Tab Order"), "date_formatter_text": _("Select Date format"), "date_time_text": _("Date && Time"), "week_start_text": _("Week start on:"), "week_start_choices": [_("Monday"), _("Sunday")], "fonts_text": _("Fonts"), "colours_text": _("Colours"), "major_strip_text": _("Major Strips:"), "minor_strip_text": _("Minor Strips:"), "balloon_text": _("Balloons:"), "icons_text": _("Icons"), "fuzzy_icon_text": _("Fuzzy icon"), "locked_icon_text": _("Locked icon"), "hyperlink_icon_text": _("Hyperlink icon"), "legends_text": _("Legends:"), "edit_text": _("Edit"), "experimental_text": _("Experimental Features"), "minor_strip_colour_text": _("Minor strip divider line:"), "major_strip_colour_text": _("Major strip divider line:"), "now_line_colour_text": _("Now line:"), "weekend_colour_text": _("Weekends:"), "bg_colour_text": _("Background"), "vertical_space_between_events_text": _("Vertical space between Events (px)"), "colorize_weekends_text": _("Colorize weekends"), "skip_s_in_decade_text_text": _("Skip s in decade text"), "display_checkmark_on_events_done_text": _("Display checkmark when events are done"), "never_use_time_text": _("Never use time precision for events"), "legend_positions_text": _("Legend Position"), "legend_positions": [_("Bottom-Left"), _("Top-Left"), _("Top-Right"), _("Bottom-Right")], }, title=_("Preferences")) self.controller.on_init(config, ExperimentalFeatures()) self.font_sizer.Layout()
def __init__(self, parent, config): Dialog.__init__( self, PreferencesDialogController, parent, { "general_text": _("General"), "open_recent_text": _("Open most recent timeline on startup"), "inertial_scrolling_text": _("Use inertial scrolling"), "never_period_point_text": _("Never show period Events as point Events"), "center_text_text": _("Center Event texts"), "tab_order_text": _("Select Event Editor Tab Order"), "date_time_text": _("Date && Time"), "week_start_text": _("Week start on:"), "week_start_choices": [_("Monday"), _("Sunday")], "fonts_text": _("Fonts"), "major_strip_text": _("Major Strips:"), "minor_strip_text": _("Minor Strips:"), "legends_text": _("Legends:"), "edit_text": _("Edit"), "experimental_text": _("Experimental Features"), }, title=_("Preferences")) self.controller.on_init(config, ExperimentalFeatures())
def __init__(self, parent, items): Dialog.__init__(self, FileNewDialogController, parent, { "explanation_text": _("Choose what type of timeline you want to create."), "description_text": _("Description"), }, title=_("Create new timeline"), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) self.controller.on_init(items)
def __init__(self, parent, db, selected_event_ids=[]): Dialog.__init__(self, SetCategoryDialogController, parent, { "db": db, "label": _("Select a Category:"), }) self.controller.on_init(db, selected_event_ids)
def __init__(self, parent, feature): Dialog.__init__(self, FeatureDialogController, parent, { "give_feedback_button_text": _("Give Feedback") }, title=_("Feedback On Feature")) self._make_info_label_bold() self.controller.on_init(feature)
def __init__(self, parent, title, data, fields): self.static_box = None Dialog.__init__(self, FieldSelectionDialogController, parent, { "description_text": _("Select Fields to Export") }, title=title) self.controller.on_init(data, fields)
def __init__(self, parent, config): Dialog.__init__(self, DateFormatDialogController, parent, { "date_format_text": _("Date format:"), "locale_date_format_text": _("Locale Date format:"), }, title=_("Set Date format")) self.controller.on_init(config)
def __init__(self, title, text='', parent=None): Dialog.__init__(self, TextDisplayDialogController, parent, { "id_copy": wx.ID_COPY, }, title=title) self.controller.on_init(text)
def __init__(self, db, parent=None): Dialog.__init__(self, ImportEventsDialogController, parent, { "header_label": _("Select timeline to import from:"), "dialog_wildcard": WildcardHelper(_("Timeline files"), ["timeline", "ics"]).wildcard_string(), }, title=_("Import events")) self.controller.on_init(db)
def DisplayErrorMessage(self, message): Dialog.DisplayErrorMessage(self, message) self.date_format.SetFocus()