def __init__(self, model, view, parent): self.actions = {} # {name: QAction, ...} self.nodes = {} # {node_id: label, ...} self.edges = [] # [[source_id, target_id, label], ...] self.attributes = {} # {node_id: [(name, value), ...], ...} self.positions = {} # {node_id: (x, y), ...} self._selection = None Frame.__init__(self, model, view, parent) QtWidgets.QMainWindow.__init__(self) self._selection = QuerySelection(self.model, self.view, []) central_widget = QtWidgets.QWidget(self) central_widget.setLayout(QtWidgets.QVBoxLayout()) central_widget.layout().setContentsMargins(0, 0, 0, 0) self.setCentralWidget(central_widget) self.set_up_toolbar() self.graph_view = GraphVisView() self.graph_view.activated.connect(self.on_activated) self.graph_view.selected.connect(self.on_selected) central_widget.layout().addWidget(self.graph_view) self.set_up() self.graph_view.reset_scene() self.connect_broadcast(Broadcasts.ELEMENT_CHANGED, self.on_store_changed) self.connect_broadcast(Broadcasts.ELEMENT_ADDED, self.on_store_changed) self.connect_broadcast(Broadcasts.ELEMENT_DELETED, self.on_store_changed)
def __init__(self, model, view, parent, es): self.es = es self.header = None self.body = None Frame.__init__(self, model, view, parent)
def __init__(self, model, view, parent, query): self.query = query self.geo_model = None self.gis_layers = [] Frame.__init__(self, model, view, parent) QtWidgets.QWidget.__init__(self, parent) self.layout = QtWidgets.QVBoxLayout() self.layout.setContentsMargins(0, 0, 0, 0) self.layout.setSpacing(0) self.setLayout(self.layout) self.toolbar = QtWidgets.QToolBar("Geo", self) # TODO implement toolbar for name in ["Act1", "Act2", "Act3"]: # DEBUG action = QtWidgets.QAction(name, self) action.setData(name) self.toolbar.addAction(action) self.layout.addWidget(self.toolbar) self.gis_canvas = QtWidgets.QWidget() self.layout.addWidget(self.gis_canvas) self.set_up()
def __init__(self, model, view, parent, query): self.query = query self._row_count = 0 self._selection = None self._nodes = {} # {node_id: label, ...} self._edges = [] # [[source_id, target_id, label], ...] self._attributes = {} # {node_id: [(name, value), ...], ...} self._positions = {} # {node_id: (x, y), ...} self._actions = {} # {name: QAction, ...} Frame.__init__(self, model, view, parent) QtWidgets.QMainWindow.__init__(self) self._selection = QuerySelection(self.model, self.view, []) central_widget = QtWidgets.QWidget(self) central_widget.setLayout(QtWidgets.QVBoxLayout()) central_widget.layout().setContentsMargins(0, 0, 0, 0) self.setCentralWidget(central_widget) self.set_up_toolbar() self.graph_view = GraphVisView() self.graph_view.activated.connect(self.on_activated) self.graph_view.selected.connect(self.on_selected) central_widget.layout().addWidget(self.graph_view) self.set_up() self.graph_view.reset_scene()
def __init__(self, model, view, parent): self.class_names = [] Frame.__init__(self, model, view, parent) QtWidgets.QListWidget.__init__(self, parent) self.set_up()
def __init__(self, model, view, parent, cls): self.cls = cls Frame.__init__(self, model, view, parent) QtWidgets.QWidget.__init__(self, parent) self.set_up()
def __init__(self, model, view, parent, query): self.query = query self.has_image = False Frame.__init__(self, model, view, parent) QtWidgets.QWidget.__init__(self, parent) self.set_up()
def __init__(self, model, view, parent, query): self.query = query Frame.__init__(self, model, view, parent) QtWidgets.QTableWidget.__init__(self, parent) self.set_up() self.set_up_drag_drop()
def __init__(self, model, view, parent): self.object = None self.class_labels = [] Frame.__init__(self, model, view, parent) QtWidgets.QFrame.__init__(self, parent) self.set_up()
def __init__(self, model, view, parent, descriptor): self.descriptor = descriptor self.actions = {} # {name: QAction, ...} self.resource_item = None Frame.__init__(self, model, view, parent) QtWidgets.QMainWindow.__init__(self) self.set_up()
def __init__(self, model, view, parent, query): self.query = query self._row_count = 0 Frame.__init__(self, model, view, parent) QtWidgets.QWidget.__init__(self, parent) self.set_up()
def __init__(self, model, view, parent): self.layout = None self.querylist = None self.footer = None Frame.__init__(self, model, view, parent) QtWidgets.QWidget.__init__(self, view) self.set_up()
def __init__(self, model, view, parent, query, visible_widgets={}): self.query = query self.tables = [] # [QueryLst, ...] self.relations = [] # [[relation_name, class_name], ...] self.visible_widgets = visible_widgets # {rel_cls: True/False, ...} Frame.__init__(self, model, view, parent) QtWidgets.QWidget.__init__(self, parent) self.set_up()
def __init__(self, model, view, parent, dclass_name): self.dclass = None Frame.__init__(self, model, view, parent) QtWidgets.QWidget.__init__(self, parent) self.set_up(dclass_name) self.connect_broadcast(Broadcasts.ELEMENT_CHANGED, self.on_store_changed)
def __init__(self, model, view, parent, query, relation=None): self.query = query self.table_model = None self.relation = relation self._selection = None Frame.__init__(self, model, view, parent) QtWidgets.QTableView.__init__(self, parent) self.set_up() self.set_up_drag_drop()
def __init__(self, model, view, parent, query, icon_size=256): self.query = query self.icon_size = icon_size self.list_model = None self.row_ids = {} # {object id: row, ...} Frame.__init__(self, model, view, parent) QtWidgets.QListView.__init__(self, parent) self.set_up() self.set_up_drag_drop()
def __init__(self, model, view, parent, querystr): self.querystr = querystr self.query = None self.tabs = None self.tab_lst = None self.tab_img = None self.tab_geo = None self.tab_vis = None self.tab_obj = None self.footer = None self.populate_obj = [] # [DObject, row] or [] self._update_timer = None self._filter_timer = None Frame.__init__(self, model, view, parent) QtWidgets.QWidget.__init__(self, parent) self.set_up()
def __init__(self, model, view, parent, query): self.query = query self.object = None self.row = None self.query_lst = None self.browse_frame = None self.obj_view = None self.rel_view = None Frame.__init__(self, model, view, parent) QtWidgets.QWidget.__init__(self, parent) self.layout = QtWidgets.QVBoxLayout() self.layout.setContentsMargins(0, 0, 0, 0) self.layout.setSpacing(0) self.setLayout(self.layout) self.set_up()
def __init__(self, model, view, parent): Frame.__init__(self, model, view, parent) QtWidgets.QGraphicsView.__init__(self) self.set_up()
def __init__(self, model, view, parent): Frame.__init__(self, model, view, parent) QtWidgets.QWidget.__init__(self, parent) self.set_up()