import re
import h5py as h5
import numpy as np

# PyQt4
from PyQt4 import QtCore
from PyQt4 import QtGui

# PyTango
import PyTango as PT

# GuiBase
from OAGui.GuiBase import GuiBase
from OAGui.GuiBase import declare_trUtf8
_trUtf8 = declare_trUtf8("OAControl")

# Plot dialog
from OAGui.OAMultiplot import PlotDialog


class AttributeModel(QtCore.QAbstractTableModel, GuiBase):

    """ Attribute model """

    # Signal to refresh attribute list
    refresh = QtCore.pyqtSignal()

    def __init__(self, device, parent=None):
        """ Constructor. """
        # Parent constructor
Example #2
0
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, see <http://www.gnu.org/licenses/>.

"""


import inspect

from PyQt4 import QtCore
from PyQt4 import QtGui

from OAGui.GuiBase import GuiBase
from OAGui.GuiBase import declare_trUtf8
_trUtf8 = declare_trUtf8("OAEditor")


class ConfigTableModel(QtCore.QAbstractTableModel, GuiBase):

    """ TableModel to represent configuration elements. """

    def __init__(self, source, options, parent=None, *args):
        """ Constructor. """
        # Parent constructors
        QtCore.QAbstractTableModel.__init__(self, parent, *args)
        GuiBase.__init__(self)

        # Store parent
        self._parent = parent
"""

import os
import inspect
import re
import h5py as h5

# PyQt
from PyQt4 import QtCore
from PyQt4 import QtGui

# Editor base
from OAGui.GuiBase import GuiBase
from OAGui.GuiBase import declare_trUtf8

_trUtf8 = declare_trUtf8("OAOffline")

# Plot dialog
from OAGui.OAMultiplot import PlotDialog


class ResultModel(QtCore.QAbstractTableModel, GuiBase):

    """ Model for OA results. """

    def __init__(self, data, files, parent=None):
        """ Constructor. """
        # Parent constructors
        QtCore.QAbstractTableModel.__init__(self, parent)
        GuiBase.__init__(self)