# Path: pytrainer/gui/dialogs.py
# class fileChooserDialog():
#     def __init__(self, title = "Choose a file", multiple = False):
#         warnings.warn("Deprecated fileChooserDialog class called", DeprecationWarning, stacklevel=2)
#         self.inputfiles = open_file_chooser_dialog(title=title, multiple=multiple)
# 
#     def getFiles(self):
#         return self.inputfiles
# 
# class guiFlush():
#     def __init__(self):
#         dialog = Gtk.Dialog(title=None, parent=None, flags=0, buttons=None)
#         dialog.show()
#         dialog.destroy()


import os
import subprocess
import logging
from lxml import etree
from pytrainer.gui.dialogs import fileChooserDialog, guiFlush

#Copyright (C) Fiz Vazquez vud1@sindominio.net

#This program is free software; you can redistribute it and/or
#modify it under the terms of the GNU General Public License
#as published by the Free Software Foundation; either version 2
#of the License, or (at your option) any later version.

#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.

#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.



class googleearth():
	def __init__(self, parent = None, validate=False):
		self.parent = parent
		self.pytrainer_main = parent.pytrainer_main
		self.validate = validate
		self.data_path = os.path.dirname(__file__)
		self.tmpdir = self.pytrainer_main.profile.tmpdir

	def run(self):
		logging.debug(">>")
		selectedFiles = fileChooserDialog(title="Choose a Google Earth file (.kml) to import", multiple=True).getFiles()

# Path: pytrainer/gui/dialogs.py
# class fileChooserDialog():
#     def __init__(self, title = "Choose a file", multiple = False):
#         warnings.warn("Deprecated fileChooserDialog class called", DeprecationWarning, stacklevel=2)
#         self.inputfiles = open_file_chooser_dialog(title=title, multiple=multiple)
# 
#     def getFiles(self):
#         return self.inputfiles
# 
# class guiFlush():
#     def __init__(self):
#         dialog = Gtk.Dialog(title=None, parent=None, flags=0, buttons=None)
#         dialog.show()
#         dialog.destroy()


# Path: plugins/googleearth/main.py
import os
import subprocess
import logging
from lxml import etree
from pytrainer.gui.dialogs import fileChooserDialog, guiFlush


#Copyright (C) Fiz Vazquez vud1@sindominio.net

#This program is free software; you can redistribute it and/or
#modify it under the terms of the GNU General Public License
#as published by the Free Software Foundation; either version 2
#of the License, or (at your option) any later version.

#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.

#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.



class googleearth():
	def __init__(self, parent = None, validate=False):
		self.parent = parent
		self.pytrainer_main = parent.pytrainer_main
		self.validate = validate
		self.data_path = os.path.dirname(__file__)
		self.tmpdir = self.pytrainer_main.profile.tmpdir

	def run(self):
		logging.debug(">>")
		selectedFiles = fileChooserDialog(title="Choose a Google Earth file (.kml) to import", multiple=True).getFiles()

		guiFlush()