349 @pyqtSlot(int) |
351 @pyqtSlot(int) |
350 def on_typeComboBox_currentIndexChanged(self, index): |
352 def on_typeComboBox_currentIndexChanged(self, index): |
351 """ |
353 """ |
352 Private slot to handle a change of the .desktop type. |
354 Private slot to handle a change of the .desktop type. |
353 |
355 |
354 @param index index of the selected entry (integer) |
356 @param index index of the selected entry |
|
357 @type int |
355 """ |
358 """ |
356 self.dataTabWidget.setTabEnabled(1, index == 1) |
359 self.dataTabWidget.setTabEnabled(1, index == 1) |
357 self.dataTabWidget.setTabEnabled(2, index == 2) |
360 self.dataTabWidget.setTabEnabled(2, index == 2) |
358 |
361 |
359 @pyqtSlot() |
362 @pyqtSlot() |
405 @pyqtSlot(str) |
408 @pyqtSlot(str) |
406 def on_onlyShowEdit_textChanged(self, txt): |
409 def on_onlyShowEdit_textChanged(self, txt): |
407 """ |
410 """ |
408 Private slot to check the contents of the onlyShowEdit field. |
411 Private slot to check the contents of the onlyShowEdit field. |
409 |
412 |
410 @param txt text of the entry field (string) |
413 @param txt text of the entry field |
|
414 @type str |
411 """ |
415 """ |
412 self.__checkOK() |
416 self.__checkOK() |
413 if bool(self.onlyShowEdit.text()) and bool(self.notShowEdit.text()): |
417 if bool(self.onlyShowEdit.text()) and bool(self.notShowEdit.text()): |
414 EricMessageBox.critical( |
418 EricMessageBox.critical( |
415 self, |
419 self, |
434 @pyqtSlot(str) |
438 @pyqtSlot(str) |
435 def on_notShowEdit_textChanged(self, txt): |
439 def on_notShowEdit_textChanged(self, txt): |
436 """ |
440 """ |
437 Private slot to check the contents of the notShowEdit field. |
441 Private slot to check the contents of the notShowEdit field. |
438 |
442 |
439 @param txt text of the entry field (string) |
443 @param txt text of the entry field |
|
444 @type str |
440 """ |
445 """ |
441 self.__checkOK() |
446 self.__checkOK() |
442 if bool(self.onlyShowEdit.text()) and bool(self.notShowEdit.text()): |
447 if bool(self.onlyShowEdit.text()) and bool(self.notShowEdit.text()): |
443 EricMessageBox.critical( |
448 EricMessageBox.critical( |
444 self, |
449 self, |
463 @pyqtSlot(str) |
468 @pyqtSlot(str) |
464 def on_typeEdit_textChanged(self, txt): |
469 def on_typeEdit_textChanged(self, txt): |
465 """ |
470 """ |
466 Private slot to check, if the typeEdit field is empty. |
471 Private slot to check, if the typeEdit field is empty. |
467 |
472 |
468 @param txt text of the entry field (string) |
473 @param txt text of the entry field |
|
474 @type str |
469 """ |
475 """ |
470 self.__checkOK() |
476 self.__checkOK() |
471 |
477 |
472 @pyqtSlot(str) |
478 @pyqtSlot(str) |
473 def on_nameEdit_textChanged(self, txt): |
479 def on_nameEdit_textChanged(self, txt): |
474 """ |
480 """ |
475 Private slot to check, if the nameEdit field is empty. |
481 Private slot to check, if the nameEdit field is empty. |
476 |
482 |
477 @param txt text of the entry field (string) |
483 @param txt text of the entry field |
|
484 @type str |
478 """ |
485 """ |
479 self.__checkOK() |
486 self.__checkOK() |