UI/UserInterface.py

changeset 2606
f9592e331194
parent 2596
32c4afbe0801
child 2615
bdc9b4659826
equal deleted inserted replaced
2605:20036ebbf50a 2606:f9592e331194
1595 self.utProjectAct.setEnabled(False) 1595 self.utProjectAct.setEnabled(False)
1596 self.actions.append(self.utProjectAct) 1596 self.actions.append(self.utProjectAct)
1597 1597
1598 # check for Qt4/Qt5 designer and linguist 1598 # check for Qt4/Qt5 designer and linguist
1599 if Utilities.isWindowsPlatform(): 1599 if Utilities.isWindowsPlatform():
1600 designerExe = "{0}.exe".format(Utilities.generateQtToolName("designer")) 1600 designerExe = os.path.join(QLibraryInfo.location(QLibraryInfo.BinariesPath),
1601 "{0}.exe".format(Utilities.generateQtToolName("designer")))
1601 elif Utilities.isMacPlatform(): 1602 elif Utilities.isMacPlatform():
1602 designerExe = Utilities.getQtMacBundle("designer") 1603 designerExe = Utilities.getQtMacBundle("designer")
1603 else: 1604 else:
1604 designerExe = Utilities.generateQtToolName("designer") 1605 designerExe = os.path.join(QLibraryInfo.location(QLibraryInfo.BinariesPath),
1605 if Utilities.isinpath(designerExe) or \ 1606 Utilities.generateQtToolName("designer"))
1606 os.path.exists(os.path.join( 1607 if os.path.exists(designerExe):
1607 QLibraryInfo.location(QLibraryInfo.BinariesPath), designerExe)):
1608 self.designer4Act = E5Action(self.trUtf8('Qt-Designer'), 1608 self.designer4Act = E5Action(self.trUtf8('Qt-Designer'),
1609 UI.PixmapCache.getIcon("designer4.png"), 1609 UI.PixmapCache.getIcon("designer4.png"),
1610 self.trUtf8('Qt-&Designer...'), 0, 0, self, 'qt_designer4') 1610 self.trUtf8('Qt-&Designer...'), 0, 0, self, 'qt_designer4')
1611 self.designer4Act.setStatusTip(self.trUtf8('Start Qt-Designer')) 1611 self.designer4Act.setStatusTip(self.trUtf8('Start Qt-Designer'))
1612 self.designer4Act.setWhatsThis(self.trUtf8( 1612 self.designer4Act.setWhatsThis(self.trUtf8(
1617 self.actions.append(self.designer4Act) 1617 self.actions.append(self.designer4Act)
1618 else: 1618 else:
1619 self.designer4Act = None 1619 self.designer4Act = None
1620 1620
1621 if Utilities.isWindowsPlatform(): 1621 if Utilities.isWindowsPlatform():
1622 linguistExe = "{0}.exe".format(Utilities.generateQtToolName("linguist")) 1622 linguistExe = os.path.join(QLibraryInfo.location(QLibraryInfo.BinariesPath),
1623 "{0}.exe".format(Utilities.generateQtToolName("linguist")))
1623 elif Utilities.isMacPlatform(): 1624 elif Utilities.isMacPlatform():
1624 linguistExe = Utilities.getQtMacBundle("linguist") 1625 linguistExe = Utilities.getQtMacBundle("linguist")
1625 else: 1626 else:
1626 linguistExe = Utilities.generateQtToolName("linguist") 1627 linguistExe = os.path.join(QLibraryInfo.location(QLibraryInfo.BinariesPath),
1627 if Utilities.isinpath(linguistExe) or \ 1628 Utilities.generateQtToolName("linguist"))
1628 os.path.exists(os.path.join( 1629 if os.path.exists(linguistExe):
1629 QLibraryInfo.location(QLibraryInfo.BinariesPath), linguistExe)):
1630 self.linguist4Act = E5Action(self.trUtf8('Qt-Linguist'), 1630 self.linguist4Act = E5Action(self.trUtf8('Qt-Linguist'),
1631 UI.PixmapCache.getIcon("linguist4.png"), 1631 UI.PixmapCache.getIcon("linguist4.png"),
1632 self.trUtf8('Qt-&Linguist...'), 0, 0, self, 'qt_linguist4') 1632 self.trUtf8('Qt-&Linguist...'), 0, 0, self, 'qt_linguist4')
1633 self.linguist4Act.setStatusTip(self.trUtf8('Start Qt-Linguist')) 1633 self.linguist4Act.setStatusTip(self.trUtf8('Start Qt-Linguist'))
1634 self.linguist4Act.setWhatsThis(self.trUtf8( 1634 self.linguist4Act.setWhatsThis(self.trUtf8(

eric ide

mercurial