-
Notifications
You must be signed in to change notification settings - Fork 13
/
file_behaviors.py
67 lines (50 loc) · 1.35 KB
/
file_behaviors.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
.py
~~~
PURPOSE
REFERENCES
REQUIRES
:author: R.K.Garcia <rayg@ssec.wisc.edu>
:copyright: 2014 by University of Wisconsin Regents, see AUTHORS for more details
:license: GPLv3, see LICENSE for more details
"""
__author__ = 'rayg'
__docformat__ = 'reStructuredText'
import logging
from PyQt5.QtCore import QObject
# from PyQt4.QtGui import QAction
LOG = logging.getLogger(__name__)
FORMAT_GUIDEBOOK = {}
class UserAddsFileToDoc(QObject):
"""
Manage an open dialog and queue up adding files to the document
"""
_main = None
_open_dialog = None
_task_queue = None
def __init__(self, main_window, open_dialog, task_queue):
super(UserAddsFileToDoc, self).__init__()
self._main = main_window
self._task_queue = task_queue
self._open_dialog = open_dialog
def open_files(self):
"""
activate dialog
do any previewing appropriate
when ready, add file to document
load coarse representation immediately
queue up background refinement
:return:
"""
pass
def __call__(self, files_to_open):
"""
given information from dialog box,
for each file
identify file type using guidebook
:param files_to_open:
:return:
"""
pass