# Path: Interface/pycadapp.py
# class PyCadApp(object):
#     '''
#     PyCadApp contain static interface functions to the kernel application object.
#     '''
# 
#     # kernel application object
#     __application = None
#     # main application window
#     __cad_window = None
#     
#     
#     @staticmethod
#     def CadWindow():
#         '''
#         Gets the main window.
#         The main window is an instance of the CadWindow object.
#         '''
#         return PyCadApp.__cad_window
#     
#     
#     @staticmethod
#     def SetCadWindow(cad_window):
#         '''
#         Sets the main window.
#         The main window is an instance of the CadWindow object.
#         '''
#         PyCadApp.__cad_window = cad_window
#     
#     
#     @staticmethod
#     def Application():
#         '''
#         Gets the application object from the kernel.
#         '''
#         return PyCadApp.__application
#     
# 
#     @staticmethod
#     def SetApplication(application):
#         '''
#         Sets the application object from the kernel.
#         '''
#         PyCadApp.__application = application
#     
# 
#     @staticmethod
#     def ActiveDocument():
#         '''
#         Gets the current active document in the editor.
#         '''
#         if not PyCadApp.__application is None:
#             return PyCadApp.__application.getActiveDocument()
#         return None
# 
# 
#     @staticmethod
#     def CreateNewDocument():
#         '''
#         Create a new document.
#         '''
#         if not PyCadApp.__application is None:
#             PyCadApp.__application.newDocument()
#             return PyCadApp.__application.getActiveDocument()
#         return None
#     
# 
#     @staticmethod
#     def OpenDocument(filename):
#         '''
#         Open an existing document.
#         '''
#         if not PyCadApp.__application is None:
#             PyCadApp.__application.openDocument(filename)
#             # return the opened, current active document
#             return PyCadApp.ActiveDocument()
#         return None
# 
#     
#     @staticmethod
#     def critical(text):
#         '''
#         Shows an critical message dialog
#         '''
#         dlg = QtGui.QMessageBox()
#         dlg.setText(text)
#         dlg.setIcon(QtGui.QMessageBox.Critical)
#         dlg.exec_()
#         return


from PyQt4 import QtCore, QtGui
from Kernel.document     import *
from Kernel.exception    import *
from Kernel.GeoEntity.point         import Point
from Kernel.Command.basecommand     import BaseCommand
from Interface.pycadapp             import PyCadApp
            import time 

class testCmdLine(object):
    def __init__(self, dialog, scene):
        self.dialog=dialog
        self.scene=scene

# Path: Interface/pycadapp.py
# class PyCadApp(object):
#     '''
#     PyCadApp contain static interface functions to the kernel application object.
#     '''
# 
#     # kernel application object
#     __application = None
#     # main application window
#     __cad_window = None
#     
#     
#     @staticmethod
#     def CadWindow():
#         '''
#         Gets the main window.
#         The main window is an instance of the CadWindow object.
#         '''
#         return PyCadApp.__cad_window
#     
#     
#     @staticmethod
#     def SetCadWindow(cad_window):
#         '''
#         Sets the main window.
#         The main window is an instance of the CadWindow object.
#         '''
#         PyCadApp.__cad_window = cad_window
#     
#     
#     @staticmethod
#     def Application():
#         '''
#         Gets the application object from the kernel.
#         '''
#         return PyCadApp.__application
#     
# 
#     @staticmethod
#     def SetApplication(application):
#         '''
#         Sets the application object from the kernel.
#         '''
#         PyCadApp.__application = application
#     
# 
#     @staticmethod
#     def ActiveDocument():
#         '''
#         Gets the current active document in the editor.
#         '''
#         if not PyCadApp.__application is None:
#             return PyCadApp.__application.getActiveDocument()
#         return None
# 
# 
#     @staticmethod
#     def CreateNewDocument():
#         '''
#         Create a new document.
#         '''
#         if not PyCadApp.__application is None:
#             PyCadApp.__application.newDocument()
#             return PyCadApp.__application.getActiveDocument()
#         return None
#     
# 
#     @staticmethod
#     def OpenDocument(filename):
#         '''
#         Open an existing document.
#         '''
#         if not PyCadApp.__application is None:
#             PyCadApp.__application.openDocument(filename)
#             # return the opened, current active document
#             return PyCadApp.ActiveDocument()
#         return None
# 
#     
#     @staticmethod
#     def critical(text):
#         '''
#         Shows an critical message dialog
#         '''
#         dlg = QtGui.QMessageBox()
#         dlg.setText(text)
#         dlg.setIcon(QtGui.QMessageBox.Critical)
#         dlg.exec_()
#         return


# Path: customevent.py
from PyQt4 import QtCore, QtGui
from Kernel.document     import *
from Kernel.exception    import *
from Kernel.GeoEntity.point         import Point
from Kernel.Command.basecommand     import BaseCommand
from Interface.pycadapp             import PyCadApp
            import time 


class testCmdLine(object):
    def __init__(self, dialog, scene):
        self.dialog=dialog
        self.scene=scene

        self._addCustomEvent()