# -*- coding: utf-8 -*-
#
# Poio Tools for Linguists
#
# Copyright (C) 2012 Poio Project
# Author: <NAME> <<EMAIL>>
# URL: <http://www.cidles.eu/ltll/poio>
# For license information, see LICENSE.TXT

from PyQt4 import QtCore, QtGui
from poio.ui.Ui_FindReplaceDialog import Ui_FindReplaceDialog

class FindReplaceDialog(QtGui.QDialog):

    def __init__(self, parent):
        """
        Initialize Find Replace Dialog
        """
        QtGui.QDialog.__init__(self, parent)
        self.ui = Ui_FindReplaceDialog()
        self.ui.setupUi(self)

    def set_text_edit(self, textedit):
        """
        Manage Find and Replace Dialog
        ...

        Parameters
        ----------
        textedit : str
        """
        self.ui.findReplaceForm.set_text_edit(textedit)

    def changeEvent(self, event):
        """
        If the language has changed retranlate the UI accordingly

        ...

        Parameters
        ----------
        event : QEvent
        """
        QtGui.QDialog.changeEvent(self, event)
        if event.type() == QtCore.QEvent.LanguageChange:
            self.ui.retranslateUi(self)

# -*- coding: utf-8 -*-
#
# Poio Tools for Linguists
#
# Copyright (C) 2012 Poio Project
# Author: <NAME> <<EMAIL>>
# URL: <http://www.cidles.eu/ltll/poio>
# For license information, see LICENSE.TXT

from PyQt4 import QtCore, QtGui
from poio.ui.Ui_FindReplaceDialog import Ui_FindReplaceDialog

class FindReplaceDialog(QtGui.QDialog):

    def __init__(self, parent):
        """
        Initialize Find Replace Dialog
        """
        QtGui.QDialog.__init__(self, parent)
        self.ui = Ui_FindReplaceDialog()
        self.ui.setupUi(self)

    def set_text_edit(self, textedit):
        """
        Manage Find and Replace Dialog
        ...

        Parameters
        ----------
        textedit : str
        """
        self.ui.findReplaceForm.set_text_edit(textedit)

    def changeEvent(self, event):
        """
        If the language has changed retranlate the UI accordingly

        ...

        Parameters
        ----------
        event : QEvent
        """
        QtGui.QDialog.changeEvent(self, event)
        if event.type() == QtCore.QEvent.LanguageChange:
            self.ui.retranslateUi(self)

# -*- coding: utf-8 -*- # # Poio Tools for Linguists # # Copyright (C) 2012 Poio Project # Author: <NAME> <<EMAIL>> # URL: <http://www.cidles.eu/ltll/poio> # For license information, see LICENSE.TXT Initialize Find Replace Dialog Manage Find and Replace Dialog         ...          Parameters         ----------         textedit : str If the language has changed retranlate the UI accordingly          ...          Parameters         ----------         event : QEvent