From: Wido D. <wi...@us...> - 2005-03-13 18:57:46
|
Update of /cvsroot/luma/luma/lib/luma/base/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21034/lib/luma/base/gui Modified Files: MainWinDesign.py MainWinDesign.ui Log Message: Fixed keyboard shortcuts. Index: MainWinDesign.py =================================================================== RCS file: /cvsroot/luma/luma/lib/luma/base/gui/MainWinDesign.py,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** MainWinDesign.py 2 Mar 2005 16:45:42 -0000 1.18 --- MainWinDesign.py 13 Mar 2005 18:57:33 -0000 1.19 *************** *** 1,7 **** # -*- coding: utf-8 -*- ! # Form implementation generated from reading ui file './lib/luma/base/gui/MainWinDesign.ui' # ! # Created: Tue Mar 1 22:41:56 2005 # by: The PyQt User Interface Compiler (pyuic) 3.14 # --- 1,7 ---- # -*- coding: utf-8 -*- ! # Form implementation generated from reading ui file '/home/wido/src/luma/lib/luma/base/gui/MainWinDesign.ui' # ! # Created: Sun Mar 13 19:25:44 2005 # by: The PyQt User Interface Compiler (pyuic) 3.14 # *************** *** 9,12 **** --- 9,13 ---- + import sys from qt import * *************** *** 656,663 **** self.selectLanguage = QAction(self,"selectLanguage") self.selectLanguage.setIconSet(QIconSet(self.image5)) - self.togglePluginList = QAction(self,"togglePluginList") - self.togglePluginList.setToggleAction(1) - self.togglePluginList.setOn(0) - self.togglePluginList.setEnabled(1) self.showLogger = QAction(self,"showLogger") self.showLogger.setToggleAction(0) --- 657,660 ---- *************** *** 707,711 **** self.about.setText(self.__tr("About Luma...")) self.about.setMenuText(self.__tr("About Luma...")) - self.about.setAccel(self.__tr("Ctrl+A")) self.editServerList.setText(self.__tr("Edit Server List...")) self.editServerList.setMenuText(self.__tr("Edit Server List...")) --- 704,707 ---- *************** *** 713,717 **** self.exitItem.setText(self.__tr("Exit")) self.exitItem.setMenuText(self.__tr("Exit")) ! self.exitItem.setAccel(self.__tr("Ctrl+X")) self.menuConfigurePlugins.setText(self.__tr("Configure Plugins...")) self.menuConfigurePlugins.setMenuText(self.__tr("Configure Plugins...")) --- 709,713 ---- self.exitItem.setText(self.__tr("Exit")) self.exitItem.setMenuText(self.__tr("Exit")) ! self.exitItem.setAccel(self.__tr("Ctrl+Q")) self.menuConfigurePlugins.setText(self.__tr("Configure Plugins...")) self.menuConfigurePlugins.setMenuText(self.__tr("Configure Plugins...")) *************** *** 723,730 **** self.selectLanguage.setMenuText(self.__tr("Language...")) self.selectLanguage.setAccel(self.__tr("Ctrl+L")) - self.togglePluginList.setText(self.__tr("Hide/Show pluginlist")) - self.togglePluginList.setMenuText(self.__tr("Hide/Show pluginlist")) - self.togglePluginList.setAccel(self.__tr("Ctrl+P")) self.showLogger.setText(self.__tr("Show logger")) if self.menubar.findItem(1): self.menubar.findItem(1).setText(self.__tr("Program")) --- 719,724 ---- self.selectLanguage.setMenuText(self.__tr("Language...")) self.selectLanguage.setAccel(self.__tr("Ctrl+L")) self.showLogger.setText(self.__tr("Show logger")) + self.showLogger.setAccel(self.__tr("Ctrl+L")) if self.menubar.findItem(1): self.menubar.findItem(1).setText(self.__tr("Program")) *************** *** 764,765 **** --- 758,767 ---- def __tr(self,s,c = None): return qApp.translate("MainWinDesign",s,c) + + if __name__ == "__main__": + a = QApplication(sys.argv) + QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()")) + w = MainWinDesign() + a.setMainWidget(w) + w.show() + a.exec_loop() Index: MainWinDesign.ui =================================================================== RCS file: /cvsroot/luma/luma/lib/luma/base/gui/MainWinDesign.ui,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** MainWinDesign.ui 28 Feb 2005 16:14:41 -0000 1.11 --- MainWinDesign.ui 13 Mar 2005 18:57:34 -0000 1.12 *************** *** 88,94 **** <string>About Luma...</string> </property> - <property name="accel"> - <string>Ctrl+A</string> - </property> </action> <action> --- 88,91 ---- *************** *** 123,127 **** </property> <property name="accel"> ! <string>Ctrl+X</string> </property> </action> --- 120,124 ---- </property> <property name="accel"> ! <string>Ctrl+Q</string> </property> </action> *************** *** 179,205 **** <action> <property name="name"> - <cstring>togglePluginList</cstring> - </property> - <property name="toggleAction"> - <bool>true</bool> - </property> - <property name="on"> - <bool>false</bool> - </property> - <property name="enabled"> - <bool>true</bool> - </property> - <property name="text"> - <string>Hide/Show pluginlist</string> - </property> - <property name="menuText"> - <string>Hide/Show pluginlist</string> - </property> - <property name="accel"> - <string>Ctrl+P</string> - </property> - </action> - <action> - <property name="name"> <cstring>showLogger</cstring> </property> --- 176,179 ---- *************** *** 213,216 **** --- 187,193 ---- <string>Show logger</string> </property> + <property name="accel"> + <string>Ctrl+L</string> + </property> </action> </actions> |