コード例 #1
0
    def urlLayout(self):
        layout = BaseFormLayout()
        layout.setAlignment(Qt.AlignTop)

        layout.addRow(self.items['url'])

        return layout
コード例 #2
0
    def coordinatesLayout(self):
        layout = BaseFormLayout()

        layout.addRow(self.items['address'])
        layout.addRow(self.items['latitude'], self.items['longitude'])

        return layout
コード例 #3
0
    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
コード例 #4
0
    def coordinatesLayout(self):
        layout = BaseFormLayout()

        layout.addRow(self.items['address'])
        layout.addRow(self.items['latitude'], self.items['longitude'])

        return layout
コード例 #5
0
    def urlLayout(self):
        layout = BaseFormLayout()
        layout.setAlignment(Qt.AlignTop)

        layout.addRow(self.items['url'])

        return layout
コード例 #6
0
    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
コード例 #7
0
    def subjectLayout(self):
        layout = BaseFormLayout()

        layout.addRow(self.items['subject'])

        return layout
コード例 #8
0
    def noteLayout(self):
        layout = BaseFormLayout()

        layout.addRow(self.items['note'])

        return layout
コード例 #9
0
    def subjectLayout(self):
        layout = BaseFormLayout()

        layout.addRow(self.items['subject'])

        return layout
コード例 #10
0
    def urlLayout(self, parent=None):
        layout = BaseFormLayout(parent)

        layout.addRow(self.items['url'])

        return layout
コード例 #11
0
    def noteLayout(self):
        layout = BaseFormLayout()

        layout.addRow(self.items['note'])

        return layout
コード例 #12
0
    def subjectLayout(self, parent=None):
        layout = BaseFormLayout(parent)

        layout.addRow(self.items['subject'])

        return layout
コード例 #13
0
    def noteLayout(self, parent=None):
        layout = BaseFormLayout(parent)

        layout.addRow(self.items['note'])

        return layout
コード例 #14
0
    def urlLayout(self, parent=None):
        layout = BaseFormLayout(parent)

        layout.addRow(self.items['url'])

        return layout
コード例 #15
0
    def subjectLayout(self, parent=None):
        layout = BaseFormLayout(parent)

        layout.addRow(self.items['subject'])

        return layout
コード例 #16
0
    def noteLayout(self, parent=None):
        layout = BaseFormLayout(parent)

        layout.addRow(self.items['note'])

        return layout