121 self.__checkButtons() |
121 self.__checkButtons() |
122 |
122 |
123 @pyqtSlot() |
123 @pyqtSlot() |
124 def on_newButton_clicked(self): |
124 def on_newButton_clicked(self): |
125 """ |
125 """ |
126 Slot documentation goes here. |
126 Private slot to add a new network entry. |
127 """ |
127 """ |
128 # TODO: not implemented yet |
128 dlg = IrcNetworkEditDialog(self.__manager, "", self) |
129 raise NotImplementedError |
129 if dlg.exec_() == QDialog.Accepted: |
|
130 network = dlg.getNetwork() |
|
131 self.__manager.addNetwork(network) |
|
132 self.__refreshNetworksList() |
130 |
133 |
131 @pyqtSlot() |
134 @pyqtSlot() |
132 def on_editButton_clicked(self): |
135 def on_editButton_clicked(self): |
133 """ |
136 """ |
134 Private slot to edit the selected network. |
137 Private slot to edit the selected network. |