def test_init_simple_map(self): """ Makes sure we can initialize a simple MapView object. """ kwargs = {} mapview = MapView(**kwargs) self.assertEqual(len(mapview.children), 2)
def __init__(self, parent=None): super().__init__(parent) self.mTile = None self.mMapDocument = None self.mMapScene = MapScene(self) self.mMapView = MapView(self, MapViewMode.NoStaticContents) self.mToolManager = ToolManager(self) self.mApplyingChanges = False self.mSynchronizing = False self.setObjectName("TileCollisionEditor") widget = QWidget(self) layout = QVBoxLayout(widget) layout.setSpacing(0) layout.setContentsMargins(5, 5, 5, 5) self.mMapView.setScene(self.mMapScene) self.mMapView.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded) self.mMapView.setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded) rectangleObjectsTool = CreateRectangleObjectTool(self) ellipseObjectsTool = CreateEllipseObjectTool(self) polygonObjectsTool = CreatePolygonObjectTool(self) polylineObjectsTool = CreatePolylineObjectTool(self) toolBar = QToolBar(self) toolBar.setMovable(False) toolBar.setFloatable(False) toolBar.setContextMenuPolicy(Qt.ActionsContextMenu) self.mToolManager = ToolManager(self) toolBar.addAction( self.mToolManager.registerTool(ObjectSelectionTool(self))) toolBar.addAction(self.mToolManager.registerTool( EditPolygonTool(self))) toolBar.addAction(self.mToolManager.registerTool(rectangleObjectsTool)) toolBar.addAction(self.mToolManager.registerTool(ellipseObjectsTool)) toolBar.addAction(self.mToolManager.registerTool(polygonObjectsTool)) toolBar.addAction(self.mToolManager.registerTool(polylineObjectsTool)) self.setCentralWidget(self.mMapView) self.addToolBar(toolBar) self.mMapScene.setSelectedTool(self.mToolManager.selectedTool()) self.mToolManager.selectedToolChanged.connect(self.setSelectedTool) zoomComboBox = QComboBox() self.statusBar().addPermanentWidget(zoomComboBox) zoomable = self.mMapView.zoomable() zoomable.connectToComboBox(zoomComboBox) undoShortcut = QShortcut(QKeySequence.Undo, self) redoShortcut = QShortcut(QKeySequence.Redo, self) cutShortcut = QShortcut(QKeySequence.Cut, self) copyShortcut = QShortcut(QKeySequence.Copy, self) pasteShortcut = QShortcut(QKeySequence.Paste, self) deleteShortcut = QShortcut(QKeySequence.Delete, self) deleteShortcut2 = QShortcut(QKeySequence.Back, self) undoShortcut.activated.connect(self.undo) redoShortcut.activated.connect(self.redo) cutShortcut.activated.connect(self.cut) copyShortcut.activated.connect(self.copy) pasteShortcut.activated.connect(self.paste) deleteShortcut.activated.connect(self.delete_) deleteShortcut2.activated.connect(self.delete_) self.retranslateUi() self.resize(300, 300) Utils.restoreGeometry(self)
def __init__(self): self.car = Vehicle() # Verify that the Vehicle object was created # print("Vehicle made!") # self.find_own_pos("1362060585", "1362060062") self.minute_warning = False self.second_warning = False self.meter_message = False self.map = MapView() self.text_to_speech = TextToSpeech()
def __init__(self, **kwargs): super(tela2, self).__init__(**kwargs) self.orientation = "vertical" gps.configure(on_location=self.on_location) gps.start() self.map = MapView(zoom=90, lat=self.lat, lon=self.lon) MapMarker(lon=self.lon, lat=self.lat, source="pessoa.png", on_press=self.on_press) self.add_widget(self.map) self.map.add_widget(self.layer) self.bind(lon=partial(self.tracking)) time.sleep(1)
class tela2(BoxLayout): lat = NumericProperty(0) lon = NumericProperty(0) map = MapView() layer = MarkerMapLayer() info = FloatLayout() def __init__(self, **kwargs): super(tela2, self).__init__(**kwargs) self.orientation = "vertical" gps.configure(on_location=self.on_location) gps.start() self.map = MapView(zoom=90, lat=self.lat, lon=self.lon) MapMarker(lon=self.lon, lat=self.lat, source="pessoa.png", on_press=self.on_press) self.add_widget(self.map) self.map.add_widget(self.layer) self.bind(lon=partial(self.tracking)) time.sleep(1) def tracking(self, *args): threading.Timer(5.0, self.tracking).start() self.layer.clear_widgets() self.layer.add_widget( MapMarker(lon=self.lon, lat=self.lat, source="pessoa.png", on_release=self.on_release, on_press=self.on_press)) self.map.center_on(self.lat, self.lon) def on_location(self, **kwargs): self.lat = kwargs['lat'] self.lon = kwargs['lon'] def on_press(self, *args): self.remove_widget(self.info) self.info.clear_widgets() lb1 = Label(text="Voce esta aqui", pos_hint={ "center_x": 0.5, "center_y": 0.5 }) self.info.add_widget(lb1) self.add_widget(self.info) def on_release(self, *args): self.remove_widget(self.info)
def newMapView(self, map): """ Creates a new map view """ mapview = MapView(map) self._mapviewlist.append(mapview) map_action = Action(unicode(map.getId())) action.activated.connect(cbwa(self.showMapView, mapview), sender=map_action, weak=False) self._mapgroup.addAction(map_action) self.showMapView(mapview) events.mapAdded.send(sender=self, map=map) return mapview
def addDocument(self, mapDocument): self.mDocuments.append(mapDocument) self.mUndoGroup.addStack(mapDocument.undoStack()) if (mapDocument.fileName() != ''): self.mFileSystemWatcher.addPath(mapDocument.fileName()) view = MapView() scene = MapScene(view) # scene is owned by the view container = MapViewContainer(view, self.mTabWidget) scene.setMapDocument(mapDocument) view.setScene(scene) documentIndex = self.mDocuments.size() - 1 self.mTabWidget.addTab(container, mapDocument.displayName()) self.mTabWidget.setTabToolTip(documentIndex, mapDocument.fileName()) mapDocument.fileNameChanged.connect(self.fileNameChanged) mapDocument.modifiedChanged.connect(self.updateDocumentTab) mapDocument.saved.connect(self.documentSaved) container.reload.connect(self.reloadRequested) self.switchToDocument(documentIndex) self.centerViewOn(0, 0)
def initUI(self): centralWidget = QWidget() self.setCentralWidget(centralWidget) self.setWindowTitle(self._gameBoard.name) self.setWindowIcon( QIcon(os.path.join('./Pictures/', 'berserker_icon.png')) ) #Apparently this doens't work the same way on a mac. self.statusBar().showMessage('Ready!') vbox = QVBoxLayout() centralWidget.setLayout(vbox) self.gameStats = GameStats(self) self.mapView = MapView(self) self.bottomButtons = BottomButtons(self) vbox.addWidget(self.gameStats) vbox.addWidget(self.mapView) vbox.addWidget(self.bottomButtons) screen = QDesktopWidget().screenGeometry() self.setGeometry( (screen.width() - (self.gameboard.width - 1) * 20) / 2, (screen.height() - self.gameboard.height * 20 - 200) / 2, 500, 400) self.show()
# coding=utf-8 """ This example demonstrate how to use the MBTilesMapSource provider. It supports v1.1 version of .mbtiles of Mapbox. See more at http://mbtiles.org/ It currently require a Kivy version that can load data from a buffer. This is not the case on every platform at 1.8.1, but we're going to fix it. """ import sys from kivy.base import runTouchApp if __name__ == '__main__' and __package__ is None: from os import sys, path sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) from mapview import MapView from mapview.mbtsource import MBTilesMapSource source = MBTilesMapSource("wc.mbtiles") #sys.argv[1]) runTouchApp( MapView(map_source=source, lat=source.default_lat, lon=source.default_lon, zoom=10))
def build(self): self.container = FloatLayout() #Контейнер программы self.dots_obj = [] self.google_map = MapView( zoom=15, lat=55.122850, lon=37.947274 ) # Координаты lat и lon - примерные координаты Михнево #60px x 60px height x 0.9 center on 121 px btn_down = Image(source="source_img/button_down2.png", pos_hint={ 'top': 0.6, 'right': 0.6 }, size_hint=(.2, .2)) #Создание экземпляра карты и помещение на нее курсора fl = FloatLayout() fl.add_widget(self.google_map) fl.add_widget(btn_down) self.container.add_widget(fl) #Создание кнопок Добавления и удаления меток и помещение их на основной экран приложения button_bl = BoxLayout(orientation="horizontal", size_hint_y=.10) button_bl.add_widget( Button(text="Добавить экипаж", size=(100, 50), on_press=self.add_gps_dot)) #Кнопка добавления метки button_bl.add_widget( Button(text="Здесь чисто", size=(100, 50), on_press=self.remove_gps_dot)) self.container.add_widget(button_bl) #self.container.add_widget(Button(size_hint = (.3,.1), pos_hint = {'top': 1, 'right': 1}, text = 'Обновить', on_press=self.build)) self.update_gps_dots_list() #Обновление списка меток на карте #Проверка включен ли модуль рекламы if self.check_marketplace() == '1': #Модуль с рекламой self.market_place = FloatLayout() pic_source = 'http://dps.mybland.xyz/marketplace_source/' + str( random.randint(1, 3)) + '.jpg' market_place_source = AsyncImage(source=pic_source) market_place_close = Button(pos_hint={ 'top': 0.98, 'right': 0.98 }, text='X', size_hint=(.07, .06), on_press=self.close_market_place) self.market_place.add_widget(market_place_source) self.market_place.add_widget(market_place_close) self.container.add_widget(self.market_place) #Проверка версии продукта, в случае несовпадения вылезает баннер на все окно программы if self.check_version() != __version__: self.container.add_widget( Button( size_hint=(1, 1), text= 'Обновите приложение по ссылке \n http://dps.mybland.xyz/index.html', on_press=self.update_app)) return self.container
class tela3(BoxLayout): lat = NumericProperty(0) lon = NumericProperty(0) info = FloatLayout() layer = MarkerMapLayer() map = MapView() layer = MarkerMapLayer() def __init__(self, **kwargs): super(tela3, self).__init__(**kwargs) self.orientation = "vertical" gps.configure(on_location=self.on_location) gps.start() self.map = MapView(zoom=90, lat=self.lat, lon=self.lon) MapMarker(lon=self.lon, lat=self.lat, source="bus.png", on_release=self.on_release1) self.add_widget(self.map) self.map.add_widget(self.layer) self.bind(lon=partial(self.tracking)) time.sleep(1) def tracking(self, *args): threading.Timer(5.0, self.tracking).start() self.layer.clear_widgets() self.layer.add_widget( MapMarker(lon=self.lon, lat=self.lat, source="bus.png", on_release=self.on_release1)) self.map.center_on(self.lat, self.lon) def on_location(self, **kwargs): self.lat = kwargs['lat'] self.lon = kwargs['lon'] def on_release(self, *args): self.remove_widget(self.info) def on_release1(self, *args): self.remove_widget(self.info) self.info.clear_widgets() lb1 = Label(text="Onibus linha: ", pos_hint={ "center_x": 0.38, "center_y": 0.4 }) lb2 = Label(text="Numero de passageiros:", pos_hint={ "center_x": 0.27, "center_y": 0.5 }) lb3 = Label(text="Opcao cadeirante:", pos_hint={ "center_x": 0.33, "center_y": 0.6 }) lb4 = Label(text="Transito:", pos_hint={ "center_x": 0.41, "center_y": 0.7 }) e1 = TextInput(size_hint=(0.2, 0.05), pos_hint={ "center_x": 0.6, "center_y": 0.4 }) e2 = TextInput(size_hint=(0.2, 0.05), pos_hint={ "center_x": 0.6, "center_y": 0.5 }) e3 = TextInput(size_hint=(0.2, 0.05), pos_hint={ "center_x": 0.6, "center_y": 0.6 }) e4 = TextInput(size_hint=(0.2, 0.05), pos_hint={ "center_x": 0.6, "center_y": 0.7 }) bt1 = Button(text="Confirmar", size_hint=(0.2, 0.1), pos_hint={ "center_x": 0.5, "center_y": 0.2 }, on_release=self.on_release) self.info.add_widget(lb1) self.info.add_widget(lb2) self.info.add_widget(lb3) self.info.add_widget(lb4) self.info.add_widget(e1) self.info.add_widget(e2) self.info.add_widget(e3) self.info.add_widget(e4) self.info.add_widget(bt1) self.add_widget(self.info, "TOP")
source = sys.argv[1] options = {} layer = GeoJsonMapLayer(source=source) # try to auto center the map on the source lon, lat = layer.center options["lon"] = lon options["lat"] = lat min_lon, max_lon, min_lat, max_lat = layer.bounds radius = haversine(min_lon, min_lat, max_lon, max_lat) zoom = get_zoom_for_radius(radius, lat) options["zoom"] = zoom view = MapView(**options) view.add_layer(layer) marker_layer = ClusteredMarkerLayer( cluster_radius=200 ) view.add_layer(marker_layer) # create marker if they exists count = 0 def create_marker(feature): global count geometry = feature["geometry"] if geometry["type"] != "Point":
import sys from kivy.base import runTouchApp if __name__ == '__main__' and __package__ is None: from os import sys, path sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) from mapview import MapView, MapSource kwargs = {} if len(sys.argv) > 1: kwargs["map_source"] = MapSource(url=sys.argv[1], attribution="") runTouchApp(MapView(**kwargs))
def __init__(self): pygame.init() pygame.display.set_caption('Map with cars') self.model = MapModel() self.view = MapView(self.model) self.control = MapControl(self.model)
from kivy.base import runTouchApp import sys if __name__ == '__main__' and __package__ is None: from os import sys, path sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) from mapview import MapView from mapview.geojson import GeoJsonMapLayer if len(sys.argv) > 1: source = sys.argv[1] else: source = "https://storage.googleapis.com/maps-devrel/google.json" view = MapView() layer = GeoJsonMapLayer(source=source) view.add_layer(layer) runTouchApp(view)
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(820, 627) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/res/logo.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) MainWindow.setWindowIcon(icon) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget) self.verticalLayout.setObjectName("verticalLayout") self.tabs = QtGui.QTabWidget(self.centralwidget) self.tabs.setTabShape(QtGui.QTabWidget.Rounded) self.tabs.setObjectName("tabs") self.tab_map = QtGui.QWidget() self.tab_map.setObjectName("tab_map") self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab_map) self.verticalLayout_2.setObjectName("verticalLayout_2") self.splitter = QtGui.QSplitter(self.tab_map) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName("splitter") self.graphicsViewMap = MapView(self.splitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(200) sizePolicy.setHeightForWidth(self.graphicsViewMap.sizePolicy().hasHeightForWidth()) self.graphicsViewMap.setSizePolicy(sizePolicy) self.graphicsViewMap.setMinimumSize(QtCore.QSize(0, 400)) self.graphicsViewMap.setObjectName("graphicsViewMap") self.verticalLayout_2.addWidget(self.splitter) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/icons/res/applications-internet.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tabs.addTab(self.tab_map, icon1, "") self.tab_events = QtGui.QWidget() self.tab_events.setObjectName("tab_events") self.verticalLayout_6 = QtGui.QVBoxLayout(self.tab_events) self.verticalLayout_6.setObjectName("verticalLayout_6") self.splitter_2 = QtGui.QSplitter(self.tab_events) self.splitter_2.setOrientation(QtCore.Qt.Vertical) self.splitter_2.setObjectName("splitter_2") self.groupBox = QtGui.QGroupBox(self.splitter_2) self.groupBox.setObjectName("groupBox") self.horizontalLayout_5 = QtGui.QHBoxLayout(self.groupBox) self.horizontalLayout_5.setSpacing(1) self.horizontalLayout_5.setMargin(1) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.tableHighPrio = QTableViewHighPrio(self.groupBox) self.tableHighPrio.setObjectName("tableHighPrio") self.horizontalLayout_5.addWidget(self.tableHighPrio) self.groupBox_2 = QtGui.QGroupBox(self.splitter_2) self.groupBox_2.setObjectName("groupBox_2") self.horizontalLayout_6 = QtGui.QHBoxLayout(self.groupBox_2) self.horizontalLayout_6.setSpacing(1) self.horizontalLayout_6.setMargin(1) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.tableLowPrio = QTableViewLowPrio(self.groupBox_2) self.tableLowPrio.setObjectName("tableLowPrio") self.horizontalLayout_6.addWidget(self.tableLowPrio) self.verticalLayout_6.addWidget(self.splitter_2) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/icons/res/application-vnd.oasis.opendocument.spreadsheet.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tabs.addTab(self.tab_events, icon2, "") self.tab_conf = QtGui.QWidget() self.tab_conf.setObjectName("tab_conf") self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab_conf) self.verticalLayout_4.setObjectName("verticalLayout_4") self.toolBox_configuracion_comandos = QtGui.QToolBox(self.tab_conf) self.toolBox_configuracion_comandos.setFrameShape(QtGui.QFrame.StyledPanel) self.toolBox_configuracion_comandos.setFrameShadow(QtGui.QFrame.Raised) self.toolBox_configuracion_comandos.setObjectName("toolBox_configuracion_comandos") self.pageComs = QtGui.QWidget() self.pageComs.setGeometry(QtCore.QRect(0, 0, 786, 423)) self.pageComs.setObjectName("pageComs") self.verticalLayout_9 = QtGui.QVBoxLayout(self.pageComs) self.verticalLayout_9.setObjectName("verticalLayout_9") self.verticalLayout_8 = QtGui.QVBoxLayout() self.verticalLayout_8.setObjectName("verticalLayout_8") self.label_2 = QtGui.QLabel(self.pageComs) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.verticalLayout_8.addWidget(self.label_2) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_6 = QtGui.QLabel(self.pageComs) self.label_6.setObjectName("label_6") self.horizontalLayout_4.addWidget(self.label_6) self.comboBox_concentrador = QComboBoxModelQuery(self.pageComs) self.comboBox_concentrador.setObjectName("comboBox_concentrador") self.horizontalLayout_4.addWidget(self.comboBox_concentrador) self.label_4 = QtGui.QLabel(self.pageComs) self.label_4.setObjectName("label_4") self.horizontalLayout_4.addWidget(self.label_4) self.comboPgmZona = QtGui.QComboBox(self.pageComs) self.comboPgmZona.setObjectName("comboPgmZona") self.horizontalLayout_4.addWidget(self.comboPgmZona) self.label_5 = QtGui.QLabel(self.pageComs) self.label_5.setObjectName("label_5") self.horizontalLayout_4.addWidget(self.label_5) self.comboPgmUc = QtGui.QComboBox(self.pageComs) self.comboPgmUc.setObjectName("comboPgmUc") self.horizontalLayout_4.addWidget(self.comboPgmUc) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem) self.pushButton_prog_manual = QtGui.QPushButton(self.pageComs) self.pushButton_prog_manual.setObjectName("pushButton_prog_manual") self.horizontalLayout_4.addWidget(self.pushButton_prog_manual) self.pushButton_prog_auto = QtGui.QPushButton(self.pageComs) self.pushButton_prog_auto.setObjectName("pushButton_prog_auto") self.horizontalLayout_4.addWidget(self.pushButton_prog_auto) self.verticalLayout_8.addLayout(self.horizontalLayout_4) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_8.addItem(spacerItem1) self.verticalLayout_9.addLayout(self.verticalLayout_8) self.toolBox_configuracion_comandos.addItem(self.pageComs, "") self.pageCOs = QtGui.QWidget() self.pageCOs.setGeometry(QtCore.QRect(0, 0, 786, 423)) self.pageCOs.setObjectName("pageCOs") self.verticalLayout_5 = QtGui.QVBoxLayout(self.pageCOs) self.verticalLayout_5.setObjectName("verticalLayout_5") self.verticalLayout_7 = QtGui.QVBoxLayout() self.verticalLayout_7.setSpacing(2) self.verticalLayout_7.setObjectName("verticalLayout_7") self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label = QtGui.QLabel(self.pageCOs) self.label.setObjectName("label") self.horizontalLayout_3.addWidget(self.label) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem2) self.pushAddCO = QtGui.QPushButton(self.pageCOs) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/icons/res/list-add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushAddCO.setIcon(icon3) self.pushAddCO.setObjectName("pushAddCO") self.horizontalLayout_3.addWidget(self.pushAddCO) self.verticalLayout_7.addLayout(self.horizontalLayout_3) self.tableCO = QTableCO(self.pageCOs) self.tableCO.setObjectName("tableCO") self.verticalLayout_7.addWidget(self.tableCO) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_3 = QtGui.QLabel(self.pageCOs) self.label_3.setObjectName("label_3") self.horizontalLayout_2.addWidget(self.label_3) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem3) self.toolAddUC = QtGui.QToolButton(self.pageCOs) self.toolAddUC.setObjectName("toolAddUC") self.horizontalLayout_2.addWidget(self.toolAddUC) self.verticalLayout_7.addLayout(self.horizontalLayout_2) self.tableUC = QTableUC(self.pageCOs) self.tableUC.setObjectName("tableUC") self.verticalLayout_7.addWidget(self.tableUC) self.verticalLayout_5.addLayout(self.verticalLayout_7) self.toolBox_configuracion_comandos.addItem(self.pageCOs, "") self.verticalLayout_4.addWidget(self.toolBox_configuracion_comandos) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/icons/res/configure.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tabs.addTab(self.tab_conf, icon4, "") self.verticalLayout.addWidget(self.tabs) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 820, 24)) self.menubar.setObjectName("menubar") self.menuSCADA = QtGui.QMenu(self.menubar) self.menuSCADA.setObjectName("menuSCADA") self.menuOptions = QtGui.QMenu(self.menubar) self.menuOptions.setObjectName("menuOptions") self.menuBarra_de_herramientas = QtGui.QMenu(self.menuOptions) self.menuBarra_de_herramientas.setObjectName("menuBarra_de_herramientas") self.menuHelp = QtGui.QMenu(self.menubar) self.menuHelp.setObjectName("menuHelp") self.menuAdmin = QtGui.QMenu(self.menubar) self.menuAdmin.setObjectName("menuAdmin") MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.scadaToolbar = QtGui.QToolBar(MainWindow) self.scadaToolbar.setIconSize(QtCore.QSize(32, 32)) self.scadaToolbar.setObjectName("scadaToolbar") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.scadaToolbar) self.toolBar_mapa = QtGui.QToolBar(MainWindow) self.toolBar_mapa.setIconSize(QtCore.QSize(32, 32)) self.toolBar_mapa.setObjectName("toolBar_mapa") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar_mapa) self.toolBar_mapa_visor = QtGui.QToolBar(MainWindow) self.toolBar_mapa_visor.setIconSize(QtCore.QSize(32, 32)) self.toolBar_mapa_visor.setObjectName("toolBar_mapa_visor") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar_mapa_visor) self.toolBar_debug = QtGui.QToolBar(MainWindow) self.toolBar_debug.setIconSize(QtCore.QSize(32, 32)) self.toolBar_debug.setObjectName("toolBar_debug") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar_debug) self.toolBar_impresion = QtGui.QToolBar(MainWindow) self.toolBar_impresion.setIconSize(QtCore.QSize(32, 32)) self.toolBar_impresion.setObjectName("toolBar_impresion") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar_impresion) self.actionAbout = QtGui.QAction(MainWindow) self.actionAbout.setObjectName("actionAbout") self.actionAbout_Qt = QtGui.QAction(MainWindow) self.actionAbout_Qt.setObjectName("actionAbout_Qt") self.actionQuit = QtGui.QAction(MainWindow) self.actionQuit.setObjectName("actionQuit") self.actionStart = QtGui.QAction(MainWindow) self.actionStart.setCheckable(True) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/icons/res/player-time.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionStart.setIcon(icon5) self.actionStart.setObjectName("actionStart") self.actionStop = QtGui.QAction(MainWindow) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(":/icons/res/process-stop.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionStop.setIcon(icon6) self.actionStop.setObjectName("actionStop") self.actionSCADA_Config = QtGui.QAction(MainWindow) self.actionSCADA_Config.setIcon(icon4) self.actionSCADA_Config.setObjectName("actionSCADA_Config") self.actionLogs = QtGui.QAction(MainWindow) self.actionLogs.setObjectName("actionLogs") self.actionMapa = QtGui.QAction(MainWindow) icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap(":/icons/res/applications-accessories.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionMapa.setIcon(icon7) self.actionMapa.setObjectName("actionMapa") self.actionEdici_n_Esquina = QtGui.QAction(MainWindow) self.actionEdici_n_Esquina.setObjectName("actionEdici_n_Esquina") self.actionUsuario = QtGui.QAction(MainWindow) self.actionUsuario.setObjectName("actionUsuario") self.actionDBUrl = QtGui.QAction(MainWindow) self.actionDBUrl.setObjectName("actionDBUrl") self.actionScada = QtGui.QAction(MainWindow) self.actionScada.setCheckable(True) self.actionScada.setChecked(True) self.actionScada.setObjectName("actionScada") self.actionIO = QtGui.QAction(MainWindow) self.actionIO.setCheckable(True) icon8 = QtGui.QIcon() icon8.addPixmap(QtGui.QPixmap(":/icons/res/strigi.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionIO.setIcon(icon8) self.actionIO.setObjectName("actionIO") self.actionLimpiar_Eventos = QtGui.QAction(MainWindow) icon9 = QtGui.QIcon() icon9.addPixmap(QtGui.QPixmap(":/icons/res/draw-eraser.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionLimpiar_Eventos.setIcon(icon9) self.actionLimpiar_Eventos.setObjectName("actionLimpiar_Eventos") self.actionImprimir = QtGui.QAction(MainWindow) icon10 = QtGui.QIcon() icon10.addPixmap(QtGui.QPixmap(":/icons/res/printer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionImprimir.setIcon(icon10) self.actionImprimir.setObjectName("actionImprimir") self.menuSCADA.addAction(self.actionUsuario) self.menuSCADA.addAction(self.actionStart) self.menuSCADA.addAction(self.actionStop) self.menuSCADA.addAction(self.actionQuit) self.menuBarra_de_herramientas.addAction(self.actionScada) self.menuOptions.addAction(self.actionSCADA_Config) self.menuOptions.addAction(self.actionLogs) self.menuOptions.addAction(self.actionDBUrl) self.menuOptions.addAction(self.menuBarra_de_herramientas.menuAction()) self.menuHelp.addAction(self.actionAbout) self.menuHelp.addAction(self.actionAbout_Qt) self.menuAdmin.addAction(self.actionMapa) self.menubar.addAction(self.menuSCADA.menuAction()) self.menubar.addAction(self.menuAdmin.menuAction()) self.menubar.addAction(self.menuOptions.menuAction()) self.menubar.addAction(self.menuHelp.menuAction()) self.scadaToolbar.addAction(self.actionStart) self.scadaToolbar.addAction(self.actionStop) self.toolBar_mapa.addAction(self.actionMapa) self.toolBar_debug.addAction(self.actionIO) self.toolBar_debug.addAction(self.actionLimpiar_Eventos) self.toolBar_debug.addAction(self.actionSCADA_Config) self.toolBar_impresion.addAction(self.actionImprimir) self.retranslateUi(MainWindow) self.tabs.setCurrentIndex(2) self.toolBox_configuracion_comandos.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow)