Esempio n. 1
0
    def __init__(self):
        CommonSettings.__init__(self)

        self.COLOURS = COLOURS

        #: a reference to a :doc:`TeethPresentDecoder`
        self.tooth_decoder = TeethPresentDecoder()

        #: who is using the system
        self.user = "******"

        #: who is logged in as user1
        self.user1 = None

        #: and assistant
        self.user2 = None

        #: a pointer to the :doc:`ClientConnection` in use
        self.psql_conn = None

        #: an enumeration of chart styles
        self.chart_styles = (
            (_("Mixed"), 1),
            (_("Deciduous"), 2),
            (_("Adult Simple"), 3),
            (_("Adult Complex"), 4),
            (_("Adult Complex PLUS"), 4.5),
            (_("Roots Only"), 5),
            (_("Perio Chart"), 6),
            )

        #: initially this is "Adult Complex"
        self.default_chart_style = 4

        #: only adult rows, as per style 4
        self.visible_chart_rows = (1,2)

        #: colours for fillings
        self.fill_materials = (
            ("?",  self.COLOURS.UNKNOWN),
            ("AM", self.COLOURS.AMALGAM),
            ("CO", self.COLOURS.COMPOSITE),
            ("GL", self.COLOURS.GLASS),
            ("PO", self.COLOURS.PORCELAIN),
            ("GO", self.COLOURS.GOLD)
            )

        #: a reference to the :doc:`ClientMainWindow` for plugin use
        self.mainui = None

        self._fee_scales = []
        self._current_patient = None
        self._current_practitioner = None
        self._practitioners = None
        self._treatment_model = None
        self._staff = None
        self._users = None
        self._last_known_address = None
        self._text_fields = None
Esempio n. 2
0
    def __init__(self):
        CommonSettings.__init__(self)

        self.VERSION
        self.load()