-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.py
33 lines (23 loc) · 1.01 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from PyQt5 import QtCore
from .ausmap_config import AusMapConfig
from .local_config import LocalConfig
class Config(QtCore.QObject):
def __init__(self, settings):
super(Config, self).__init__()
self.settings = settings
self.ausmap_config = AusMapConfig(settings)
self.local_config = LocalConfig(settings)
def load(self):
self.local_config.load()
self.ausmap_config.load()
self.ausmap_groups_and_layers = self.ausmap_config.get_categories()
self.local_groups_and_layers = self.local_config.get_categories()
self.groups_and_layers = []
self.groups_and_layers.append(self.ausmap_groups_and_layers)
self.groups_and_layers.append(self.local_groups_and_layers)
def get_groups_and_layers(self):
return self.groups_and_layers
def get_ausmap_maplayer_node(self, id):
return self.ausmap_config.get_maplayer_node(id)
def get_local_maplayer_node(self, id):
return self.local_config.get_maplayer_node(id)