91 'Open a dialog to add a new database connection')) |
91 'Open a dialog to add a new database connection')) |
92 self.addConnectionAct.setWhatsThis(self.trUtf8( |
92 self.addConnectionAct.setWhatsThis(self.trUtf8( |
93 """<b>Add Connection</b>""" |
93 """<b>Add Connection</b>""" |
94 """<p>This opens a dialog to add a new database connection.</p>""" |
94 """<p>This opens a dialog to add a new database connection.</p>""" |
95 )) |
95 )) |
96 self.addConnectionAct.triggered.connect(self.__browser.addConnectionByDialog) |
96 self.addConnectionAct.triggered[()].connect(self.__browser.addConnectionByDialog) |
97 self.__actions.append(self.addConnectionAct) |
97 self.__actions.append(self.addConnectionAct) |
98 |
98 |
99 self.exitAct = E5Action(self.trUtf8('Quit'), |
99 self.exitAct = E5Action(self.trUtf8('Quit'), |
100 UI.PixmapCache.getIcon("exit.png"), |
100 UI.PixmapCache.getIcon("exit.png"), |
101 self.trUtf8('&Quit'), |
101 self.trUtf8('&Quit'), |
114 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) |
114 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) |
115 self.aboutAct.setWhatsThis(self.trUtf8( |
115 self.aboutAct.setWhatsThis(self.trUtf8( |
116 """<b>About</b>""" |
116 """<b>About</b>""" |
117 """<p>Display some information about this software.</p>""" |
117 """<p>Display some information about this software.</p>""" |
118 )) |
118 )) |
119 self.aboutAct.triggered.connect(self.__about) |
119 self.aboutAct.triggered[()].connect(self.__about) |
120 self.__actions.append(self.aboutAct) |
120 self.__actions.append(self.aboutAct) |
121 |
121 |
122 self.aboutQtAct = E5Action(self.trUtf8('About Qt'), |
122 self.aboutQtAct = E5Action(self.trUtf8('About Qt'), |
123 self.trUtf8('About &Qt'), |
123 self.trUtf8('About &Qt'), |
124 0, 0, self, 'sql_help_about_qt') |
124 0, 0, self, 'sql_help_about_qt') |
126 self.trUtf8('Display information about the Qt toolkit')) |
126 self.trUtf8('Display information about the Qt toolkit')) |
127 self.aboutQtAct.setWhatsThis(self.trUtf8( |
127 self.aboutQtAct.setWhatsThis(self.trUtf8( |
128 """<b>About Qt</b>""" |
128 """<b>About Qt</b>""" |
129 """<p>Display some information about the Qt toolkit.</p>""" |
129 """<p>Display some information about the Qt toolkit.</p>""" |
130 )) |
130 )) |
131 self.aboutQtAct.triggered.connect(self.__aboutQt) |
131 self.aboutQtAct.triggered[()].connect(self.__aboutQt) |
132 self.__actions.append(self.aboutQtAct) |
132 self.__actions.append(self.aboutQtAct) |
133 |
133 |
134 def __initMenus(self): |
134 def __initMenus(self): |
135 """ |
135 """ |
136 Private method to create the menus. |
136 Private method to create the menus. |