module timelinelib.wxgui.components.mainpanel

class timelinelib.wxgui.components.mainpanel.FileDropTarget[source]

Bases: wx._core.FileDropTarget

__init__(canvas)[source]

Initialize self. See help(type(self)) for accurate signature.

OnDropFiles(x, y, filenames) → bool[source]

Override this function to receive dropped files.

OnDragOver(x, y, defResult) → DragResult[source]

Called when the mouse is being dragged over the drop target.

class timelinelib.wxgui.components.mainpanel.MainPanel[source]

Bases: wx._core.Panel

Panel that covers the whole client area of MainFrame.

Displays one of the following panels:

  • The welcome panel (show_welcome_panel)

  • The timeline panel (show_timeline_panel)

Also displays the search bar.

__init__(parent, config, main_frame)[source]

Initialize self. See help(type(self)) for accurate signature.

property canvas
property main_frame
save_time_period()[source]

Whenever the period of the visible timeline is changed, this function is called to save the old period to enable the restore of the previous period.

restore_time_period()[source]

When user selects the menu alternative “Restore previous time period” and the time period has been changed, this function navigates to the old period.

get_export_periods(first_time, last_time)[source]
timeline_panel_visible()[source]
show_welcome_panel()[source]
show_timeline_panel()[source]
navigate_to_first_event()[source]
navigate_to_last_event()[source]
on_cats_view_changed(evt)[source]
on_labels_changed(evt)[source]
display_timeline(timeline)[source]
get_timeline_canvas()[source]
save_view_properties()[source]
get_displayed_period_delta()[source]
get_time_period()[source]
get_ids_of_two_first_selected_events()[source]
get_selected_event_ids()[source]
get_id_of_first_selected_event()[source]
get_first_selected_event()[source]
get_nbr_of_selected_events()[source]
open_event_editor(event=None)[source]
redraw_timeline()[source]
Navigate(flags=NavigationKeyEvent.IsForward) → bool[source]

Performs a keyboard navigation action starting from this window.

FitAllEvents()[source]
get_visible_events(all_events)[source]
set_searchbar_timeline_canvas(timeline_canvas)[source]
get_view_properties()[source]