示例#1
0
 def open_create_event_editor(self, start_time, end_time):
     open_create_event_editor(
         self,
         self.config,
         self.controller.get_timeline(),
         self.fn_handle_db_error,
         start_time,
         end_time)
示例#2
0
 def end_action(self):
     self._state.display_status("")
     start, end = self.get_last_valid_period().start_and_end_time
     open_create_event_editor(
         self._state,
         self.timeline_canvas,
         self._config,
         self.timeline_canvas.GetDb(),
         start,
         end)
示例#3
0
 def _timeline_canvas_on_double_clicked(self, event):
     if self.timeline_canvas.GetDb().is_read_only():
         return
     cursor = Cursor(event.GetX(), event.GetY())
     timeline_event = self.timeline_canvas.GetEventAt(cursor)
     time = self.timeline_canvas.GetTimeAt(cursor.x)
     if timeline_event is not None:
         if timeline_event.is_milestone():
             self.open_milestone_editor(timeline_event)
         else:
             self.open_event_editor(timeline_event)
     else:
         open_create_event_editor(self._edit_controller, self, self.config,
                                  self.timeline_canvas.GetDb(), time, time)
     event.Skip()
示例#4
0
 def _timeline_canvas_on_double_clicked(self, event):
     if self.timeline_canvas.GetDb().is_read_only():
         return
     cursor = Cursor(event.GetX(), event.GetY())
     timeline_event = self.timeline_canvas.GetEventAt(cursor)
     time = self.timeline_canvas.GetTimeAt(cursor.x)
     if timeline_event is not None:
         if timeline_event.is_milestone():
             self.open_milestone_editor(timeline_event)
         else:
             self.open_event_editor(timeline_event)
     else:
         open_create_event_editor(
             self._edit_controller,
             self,
             self.config,
             self.timeline_canvas.GetDb(),
             time,
             time)
     event.Skip()
示例#5
0
 def create_event(evt):
     open_create_event_editor(self, self, self.config, self.timeline)
示例#6
0
 def end_action(self):
     self._state.display_status("")
     start, end = self.get_last_valid_period().start_and_end_time
     open_create_event_editor(self._state,
                              self.timeline_canvas, self._config,
                              self.timeline_canvas.GetDb(), start, end)
示例#7
0
 def create_event(evt):
     open_create_event_editor(self, self, self.config, self.timeline)
 def open_create_event_editor(self, start_time, end_time):
     open_create_event_editor(self, self.config,
                              self.controller.get_timeline(),
                              self.fn_handle_db_error, start_time, end_time)