InfernoX5515 / Spatial-SocialNetworks

A system to display relationships between real world networks and social networks. For Kent State University COF-CS Grant research.
1 stars 0 forks source link

update toolbar/menu for query #56

Closed szuelzke closed 2 years ago

InfernoX5515 commented 2 years ago

Look at around line 776, your changes were stashed:

=======
        # self.queryInput = QtWidgets.QToolBar("queryInput")
        # self.queryInput.setIconSize(QtCore.QSize(24, 24))
        # self.addToolBar(self.queryInput)
        if self.queryUser is not None and self.summarySelected:
            # Create label
            kLabel = QtWidgets.QLabel(text="  community's structural cohesiveness(k): ")
            dLabel = QtWidgets.QLabel(text="  maximum number of hops(d): ")
            eLabel = QtWidgets.QLabel(text="  minimum degree of similarity(η): ")
            # Create button
            button = QtWidgets.QPushButton("Get Query")
            button.clicked.connect(lambda: self.updateKdSummaryGraph())
            button.clicked.connect(lambda: self.__windows[6].close())
            # Create k text box
            self.__windows[6].kTextBox = QtWidgets.QSpinBox()
            self.__windows[6].kTextBox.setRange(3, 9999)
            self.__windows[6].kTextBox.setValue(5)
            self.__windows[6].kTextBox.setToolTip("k is used to control the community's structural cohesiveness. Larger k means higher structural cohesiveness")
            # Create d text box
            self.__windows[6].dTextBox = QtWidgets.QLineEdit()
            self.__windows[6].dTextBox.setValidator(QtGui.QDoubleValidator(0.0, 9999.0, 4))
            self.__windows[6].dTextBox.setText("1")
            self.__windows[6].dTextBox.returnPressed.connect(button.click)
            self.__windows[6].dTextBox.setToolTip("d controls the maximum number of hops between users")
            # Create e text box
            self.__windows[6].eTextBox = QtWidgets.QLineEdit()
            self.__windows[6].eTextBox.setValidator(QtGui.QIntValidator(0, 9999))
            self.__windows[6].eTextBox.setText("0")
            self.__windows[6].eTextBox.returnPressed.connect(button.click)
            self.__windows[6].eTextBox.setToolTip("η controls the minimum degree of similarity between users")
            # Add widgets to window
            layout.addWidget(kLabel)
            layout.addWidget(self.__windows[6].kTextBox)
            layout.addWidget(dLabel)
            layout.addWidget(self.__windows[6].dTextBox)
            layout.addWidget(eLabel)
            layout.addWidget(self.__windows[6].eTextBox)
            layout.addWidget(button)

            # Show QWidget
            self.__windows[6].setLayout(layout)
            self.__windows[6].show()
            self.__windows[6].move(self.geometry().center() - self.__windows[6].rect().center())
>>>>>>> Stashed changes

I can't really fix this because I don't know what's current