diff --git a/pyqso/cabrillo.py b/pyqso/cabrillo.py
index 35f00c5..56afe6e 100644
--- a/pyqso/cabrillo.py
+++ b/pyqso/cabrillo.py
@@ -17,7 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with PyQSO. If not, see .
-import os
import logging
CABRILLO_VERSION = "3.0"
@@ -103,50 +102,3 @@ class Cabrillo:
logging.info("Log exported to %s in Cabrillo format." % (path))
return
-
-
-class CabrilloExportDialog:
-
- """ A handler for the Gtk.Dialog through which a user can specify Cabrillo log details. """
-
- def __init__(self, application):
- """ Create and show the Cabrillo export dialog to the user.
-
- :arg application: The PyQSO application containing the main Gtk window, etc.
- """
-
- logging.debug("Building new Cabrillo export dialog...")
-
- self.builder = application.builder
- glade_file_path = os.path.join(os.path.realpath(os.path.dirname(__file__)), os.pardir, "res/pyqso.glade")
- self.builder.add_objects_from_file(glade_file_path, ("cabrillo_export_dialog",))
- self.dialog = self.builder.get_object("cabrillo_export_dialog")
-
- self.contest_combo = self.builder.get_object("cabrillo_export_contest_combo")
- self.mycall_entry = self.builder.get_object("cabrillo_export_mycall_entry")
- for contest in CONTESTS:
- self.contest_combo.append_text(contest)
-
- self.dialog.show_all()
-
- logging.debug("Cabrillo export dialog built.")
-
- return
-
- @property
- def contest(self):
- """ Return the name of the contest.
-
- :returns: The name of the contest.
- :rtype: str
- """
- return self.contest_combo.get_active_text()
-
- @property
- def mycall(self):
- """ Return the callsign used during the contest.
-
- :returns: The callsign used during the contest.
- :rtype: str
- """
- return self.mycall_entry.get_text()
diff --git a/pyqso/cabrillo_export_dialog.py b/pyqso/cabrillo_export_dialog.py
new file mode 100644
index 0000000..2cb2372
--- /dev/null
+++ b/pyqso/cabrillo_export_dialog.py
@@ -0,0 +1,68 @@
+#!/usr/bin/env python3
+
+# Copyright (C) 2017 Christian Thomas Jacobs.
+
+# This file is part of PyQSO.
+
+# PyQSO 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 3 of the License, or
+# (at your option) any later version.
+#
+# PyQSO 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 PyQSO. If not, see .
+
+import os
+import logging
+
+
+class CabrilloExportDialog:
+
+ """ A handler for the Gtk.Dialog through which a user can specify Cabrillo log details. """
+
+ def __init__(self, application):
+ """ Create and show the Cabrillo export dialog to the user.
+
+ :arg application: The PyQSO application containing the main Gtk window, etc.
+ """
+
+ logging.debug("Building new Cabrillo export dialog...")
+
+ self.builder = application.builder
+ glade_file_path = os.path.join(os.path.realpath(os.path.dirname(__file__)), os.pardir, "res/pyqso.glade")
+ self.builder.add_objects_from_file(glade_file_path, ("cabrillo_export_dialog",))
+ self.dialog = self.builder.get_object("cabrillo_export_dialog")
+
+ self.contest_combo = self.builder.get_object("cabrillo_export_contest_combo")
+ self.mycall_entry = self.builder.get_object("cabrillo_export_mycall_entry")
+ for contest in CONTESTS:
+ self.contest_combo.append_text(contest)
+
+ self.dialog.show_all()
+
+ logging.debug("Cabrillo export dialog built.")
+
+ return
+
+ @property
+ def contest(self):
+ """ Return the name of the contest.
+
+ :returns: The name of the contest.
+ :rtype: str
+ """
+ return self.contest_combo.get_active_text()
+
+ @property
+ def mycall(self):
+ """ Return the callsign used during the contest.
+
+ :returns: The callsign used during the contest.
+ :rtype: str
+ """
+ return self.mycall_entry.get_text()
diff --git a/pyqso/logbook.py b/pyqso/logbook.py
index fa29e44..cf3cf40 100644
--- a/pyqso/logbook.py
+++ b/pyqso/logbook.py
@@ -50,6 +50,7 @@ from pyqso.log import *
from pyqso.auxiliary_dialogs import *
from pyqso.log_name_dialog import LogNameDialog
from pyqso.record_dialog import RecordDialog
+from pyqso.cabrillo_export_dialog import CabrilloExportDialog
class Logbook: