1#!/usr/bin/env python3
2
3#******************************************************************************
4# globalref.py, provides a module for access to a few global variables
5#
6# TreeLine, an information storage program
7# Copyright (C) 2017, Douglas W. Bell
8#
9# This is free software; you can redistribute it and/or modify it under the
10# terms of the GNU General Public License, either Version 2 or any later
11# version.  This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY.  See the included LICENSE file for details.
13#******************************************************************************
14
15mainControl = None
16
17genOptions = None
18miscOptions = None
19histOptions = None
20toolbarOptions = None
21keyboardOptions = None
22
23toolIcons = None
24treeIcons = None
25
26localTextEncoding = ''
27lang = ''
28
29fileFilters = {'trlnopen': '{} (*.trln *.trln.gz *.trl)'.
30                           format(_('All TreeLine Files')),
31               'trlnv3': '{} (*.trln *.trln.gz)'.format(_('TreeLine Files')),
32               'trlnsave': '{} (*.trln)'.format(_('TreeLine Files')),
33               'trlngz': '{} (*.trln *.trln.gz)'.
34                         format(_('TreeLine Files - Compressed')),
35               'trlnenc': '{} (*.trln)'.
36                          format(_('TreeLine Files - Encrypted')),
37               'trl': '{} (*.trl *.xml)'.format(_('Old TreeLine Files')),
38               'all': '{} (*)'.format(_('All Files')),
39               'html': '{} (*.html *.htm)'.format(_('HTML Files')),
40               'txt': '{} (*.txt)'.format(_('Text Files')),
41               'xml': '{} (*.xml)'.format(_('XML Files')),
42               'csv': '{} (*.csv)'.format(_('CSV (Comma Delimited) Files')),
43               'odt': '{} (*.odt)'.format(_('ODF Text Files')),
44               'hjt': '{} (*.hjt)'.format(_('Treepad Files')),
45               'pdf': '{} (*.pdf)'.format(_('PDF Files'))}
46