Package Gnumed :: Package timelinelib :: Package calendar :: Module timetype |
[frames] | no frames]

# Source Code for Module Gnumed.timelinelib.calendar.timetype

     1  # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018  Rickard Lindberg, Roger Lindberg
     2  #
     3  # This file is part of Timeline.
     4  #
     5  # Timeline is free software: you can redistribute it and/or modify
     6  # it under the terms of the GNU General Public License as published by
     7  # the Free Software Foundation, either version 3 of the License, or
     8  # (at your option) any later version.
     9  #
    10  # Timeline is distributed in the hope that it will be useful,
    11  # but WITHOUT ANY WARRANTY; without even the implied warranty of
    12  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13  # GNU General Public License for more details.
    14  #
    15  # You should have received a copy of the GNU General Public License
    16  # along with Timeline.  If not, see <http://www.gnu.org/licenses/>.
    17
    18
    19 -class TimeType(object):
    20
    21 -    def time_string(self, time):
    22          raise NotImplementedError("time_string not implemented.")
    23
    24 -    def parse_time(self, time_string):
    25          raise NotImplementedError("parse_time not implemented.")
    26
    29
    30 -    def format_period(self, time_period):
    31          raise NotImplementedError("format_period not implemented.")
    32
    33 -    def format_delta(self, time_period):
    34          raise NotImplementedError("format_delta not implemented.")
    35
    36 -    def get_min_time(self):
    37          raise NotImplementedError("return the min time for this time type.")
    38
    39 -    def get_max_time(self):
    40          raise NotImplementedError("return the max time for this time type.")
    41
    42 -    def choose_strip(self, metrics, appearance):
    43          raise NotImplementedError("choose_strip not implemented.")
    44
    45 -    def get_default_time_period(self):
    46          raise NotImplementedError("get_default_time_period not implemented.")
    47
    48 -    def supports_saved_now(self):
    49          raise NotImplementedError("supports_saved_now not implemented.")
    50
    51 -    def set_saved_now(self,time):
    52          raise NotImplementedError("set_saved_now not implemented.")
    53
    54 -    def now(self):
    55          raise NotImplementedError("now not implemented.")
    56
    57 -    def get_min_zoom_delta(self):
    58          raise NotImplementedError("get_min_zoom_delta not implemented.")
    59
    60 -    def get_name(self):
    61          raise NotImplementedError("get_name not implemented.")
    62
    63 -    def get_duplicate_functions(self):
    64          raise NotImplementedError("get_duplicate_functions not implemented.")
    65
    66 -    def is_special_day(self, time):
    67          raise NotImplementedError("is_special_day not implemented.")
    68
    69 -    def is_weekend_day(self, time):
    70          raise NotImplementedError("is_weekend_day not implemented.")
    71