def urlLayout(self): layout = BaseFormLayout() layout.setAlignment(Qt.AlignTop) layout.addRow(self.items['url']) return layout
def coordinatesLayout(self): layout = BaseFormLayout() layout.addRow(self.items['address']) layout.addRow(self.items['latitude'], self.items['longitude']) return layout
def mapLayout(self): layout = BaseFormLayout() layout.addRow(self.items['address']) layout.addRow(self.items['latitude'], self.items['longitude']) coordinates_enabled = not (self.items['latitude'].isHidden() or self.items['longitude'].isHidden()) if importedQtWebKit and coordinates_enabled: settings = Settings() if settings['map_type'] == 0 or not gmapsAvailable: self.map_item = OSMWidget(self) else: self.map_item = GMapsWidget(self) self.map_item.markerMoved.connect(self.mapMarkerMoved) self.map_item.markerRemoved.connect(self.mapMarkerRemoved) layout.addWidget(self.map_item, layout.row, 0, 1, layout.columnCount) self.items['address'].widget().findClicked.connect( self.map_item.geocode) self.items['latitude'].widget().textChanged.connect( self.mapChanged) self.items['longitude'].widget().textChanged.connect( self.mapChanged) return layout
def mapLayout(self): layout = BaseFormLayout() layout.addRow(self.items['address']) layout.addRow(self.items['latitude'], self.items['longitude']) coordinates_enabled = not (self.items['latitude'].isHidden() or self.items['longitude'].isHidden()) if importedQtWebKit and coordinates_enabled: settings = Settings() if settings['map_type'] == 0: self.map_item = OSMWidget(self) else: self.map_item = GMapsWidget(self) self.map_item.markerMoved.connect(self.mapMarkerMoved) self.map_item.markerRemoved.connect(self.mapMarkerRemoved) layout.addWidget(self.map_item, layout.row, 0, 1, layout.columnCount) self.items['address'].widget().findClicked.connect(self.map_item.geocode) self.items['latitude'].widget().textChanged.connect(self.mapChanged) self.items['longitude'].widget().textChanged.connect(self.mapChanged) return layout
def subjectLayout(self): layout = BaseFormLayout() layout.addRow(self.items['subject']) return layout
def noteLayout(self): layout = BaseFormLayout() layout.addRow(self.items['note']) return layout
def urlLayout(self, parent=None): layout = BaseFormLayout(parent) layout.addRow(self.items['url']) return layout
def subjectLayout(self, parent=None): layout = BaseFormLayout(parent) layout.addRow(self.items['subject']) return layout
def noteLayout(self, parent=None): layout = BaseFormLayout(parent) layout.addRow(self.items['note']) return layout