# Path: TestbedEdit.py
# class Ui_mainWindow(object):
#     def setupUi(self, mainWindow):
#         mainWindow.setObjectName(_fromUtf8("mainWindow"))
#         mainWindow.resize(800, 600)
#         self.centralwidget = QtGui.QWidget(mainWindow)
#         self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
#         self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
#         self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
#         self.horizontalLayout_3 = QtGui.QHBoxLayout()
#         self.horizontalLayout_3.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
#         self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
#         self.tableView = QtGui.QTableView(self.centralwidget)
#         self.tableView.setObjectName(_fromUtf8("tableView"))
#         self.horizontalLayout_3.addWidget(self.tableView)
#         self.verticalLayout.addLayout(self.horizontalLayout_3)
#         self.buttonBox = QtGui.QDialogButtonBox(self.centralwidget)
#         self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
#         self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
#         self.verticalLayout.addWidget(self.buttonBox)
#         mainWindow.setCentralWidget(self.centralwidget)
# 
#         self.retranslateUi(mainWindow)
#         QtCore.QMetaObject.connectSlotsByName(mainWindow)
# 
#     def retranslateUi(self, mainWindow):
#         mainWindow.setWindowTitle(_translate("mainWindow", "Testbed Editor", None))


from FTModuleClass import FlexToolsModuleClass
from PyQt4.QtGui import QInputDialog, QMessageBox
from _sqlite3 import Row
from SIL.FieldWorks.FDO import ILexPronunciation
from SIL.FieldWorks.FDO import ITextRepository
from SIL.FieldWorks.FDO import ITextFactory, IStTextFactory, IStTxtParaFactory
from SIL.FieldWorks.FDO import ILexEntryRepository
from SIL.FieldWorks.FDO import ILexSenseRepository
from SIL.FieldWorks.FDO import ILexEntry, ILexSense
from SIL.FieldWorks.FDO import SpecialWritingSystemCodes
from SIL.FieldWorks.FDO.DomainServices import SegmentServices
from SIL.FieldWorks.Common.COMInterfaces import ITsString
from SIL.FieldWorks.FDO import IUndoStackManager
from FLExDBAccess import FLExDBAccess, FDA_DatabaseError
from System import Guid
from System import String
from datetime import datetime
from PyQt4 import QtGui, QtCore
from PyQt4 import QtWebKit
from TestbedEdit import Ui_mainWindow
import ReadConfig
import os
import re
import tempfile
import sys
import unicodedata
import copy
import datetime
import Utils
import TestbedValidator
import xml.etree.ElementTree as ET
#
#   TestbedEditor
#
#   Ron Lockwood
#   SIL International
#   8/29/18
#
#   Version 1.0 - ??/??/18 - Ron Lockwood
#
#   Show a table which holds the testbed data. It basically consists of a collection
#   of tests. Each test is composed of a set of lexical units and the target text
#   that you get when you run FLExTrans on those lexical units. You can edit a test,
#   add a test or delete a test.
#


#----------------------------------------------------------------
# Configurables:


#----------------------------------------------------------------
# Documentation that the user sees:

docs = {'moduleName'       : "Testbed Editor",
        'moduleVersion'    : "1.0",
        'moduleModifiesDB' : False,
        'moduleSynopsis'   : "Edit, add or delete tests in the testbed.",
        'moduleDescription'   :

# Path: TestbedEdit.py
# class Ui_mainWindow(object):
#     def setupUi(self, mainWindow):
#         mainWindow.setObjectName(_fromUtf8("mainWindow"))
#         mainWindow.resize(800, 600)
#         self.centralwidget = QtGui.QWidget(mainWindow)
#         self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
#         self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
#         self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
#         self.horizontalLayout_3 = QtGui.QHBoxLayout()
#         self.horizontalLayout_3.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
#         self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
#         self.tableView = QtGui.QTableView(self.centralwidget)
#         self.tableView.setObjectName(_fromUtf8("tableView"))
#         self.horizontalLayout_3.addWidget(self.tableView)
#         self.verticalLayout.addLayout(self.horizontalLayout_3)
#         self.buttonBox = QtGui.QDialogButtonBox(self.centralwidget)
#         self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
#         self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
#         self.verticalLayout.addWidget(self.buttonBox)
#         mainWindow.setCentralWidget(self.centralwidget)
# 
#         self.retranslateUi(mainWindow)
#         QtCore.QMetaObject.connectSlotsByName(mainWindow)
# 
#     def retranslateUi(self, mainWindow):
#         mainWindow.setWindowTitle(_translate("mainWindow", "Testbed Editor", None))


# Path: TestbedEditor.py
from FTModuleClass import FlexToolsModuleClass
from PyQt4.QtGui import QInputDialog, QMessageBox
from _sqlite3 import Row
from SIL.FieldWorks.FDO import ILexPronunciation
from SIL.FieldWorks.FDO import ITextRepository
from SIL.FieldWorks.FDO import ITextFactory, IStTextFactory, IStTxtParaFactory
from SIL.FieldWorks.FDO import ILexEntryRepository
from SIL.FieldWorks.FDO import ILexSenseRepository
from SIL.FieldWorks.FDO import ILexEntry, ILexSense
from SIL.FieldWorks.FDO import SpecialWritingSystemCodes
from SIL.FieldWorks.FDO.DomainServices import SegmentServices
from SIL.FieldWorks.Common.COMInterfaces import ITsString
from SIL.FieldWorks.FDO import IUndoStackManager
from FLExDBAccess import FLExDBAccess, FDA_DatabaseError
from System import Guid
from System import String
from datetime import datetime
from PyQt4 import QtGui, QtCore
from PyQt4 import QtWebKit
from TestbedEdit import Ui_mainWindow
import ReadConfig
import os
import re
import tempfile
import sys
import unicodedata
import copy
import datetime
import Utils
import TestbedValidator
import xml.etree.ElementTree as ET

#
#   TestbedEditor
#
#   Ron Lockwood
#   SIL International
#   8/29/18
#
#   Version 1.0 - ??/??/18 - Ron Lockwood
#
#   Show a table which holds the testbed data. It basically consists of a collection
#   of tests. Each test is composed of a set of lexical units and the target text
#   that you get when you run FLExTrans on those lexical units. You can edit a test,
#   add a test or delete a test.
#


#----------------------------------------------------------------
# Configurables:


#----------------------------------------------------------------
# Documentation that the user sees:

docs = {'moduleName'       : "Testbed Editor",
        'moduleVersion'    : "1.0",
        'moduleModifiesDB' : False,
        'moduleSynopsis'   : "Edit, add or delete tests in the testbed.",
        'moduleDescription'   :

u"""