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'), |
115 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) |
115 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) |
116 self.aboutAct.setWhatsThis(self.trUtf8( |
116 self.aboutAct.setWhatsThis(self.trUtf8( |
117 """<b>About</b>""" |
117 """<b>About</b>""" |
118 """<p>Display some information about this software.</p>""" |
118 """<p>Display some information about this software.</p>""" |
119 )) |
119 )) |
120 self.aboutAct.triggered.connect(self.__about) |
120 self.aboutAct.triggered[()].connect(self.__about) |
121 self.__actions.append(self.aboutAct) |
121 self.__actions.append(self.aboutAct) |
122 |
122 |
123 self.aboutQtAct = E5Action(self.trUtf8('About Qt'), |
123 self.aboutQtAct = E5Action(self.trUtf8('About Qt'), |
124 self.trUtf8('About &Qt'), |
124 self.trUtf8('About &Qt'), |
125 0, 0, self, 'sql_help_about_qt') |
125 0, 0, self, 'sql_help_about_qt') |
127 self.trUtf8('Display information about the Qt toolkit')) |
127 self.trUtf8('Display information about the Qt toolkit')) |
128 self.aboutQtAct.setWhatsThis(self.trUtf8( |
128 self.aboutQtAct.setWhatsThis(self.trUtf8( |
129 """<b>About Qt</b>""" |
129 """<b>About Qt</b>""" |
130 """<p>Display some information about the Qt toolkit.</p>""" |
130 """<p>Display some information about the Qt toolkit.</p>""" |
131 )) |
131 )) |
132 self.aboutQtAct.triggered.connect(self.__aboutQt) |
132 self.aboutQtAct.triggered[()].connect(self.__aboutQt) |
133 self.__actions.append(self.aboutQtAct) |
133 self.__actions.append(self.aboutQtAct) |
134 |
134 |
135 def __initMenus(self): |
135 def __initMenus(self): |
136 """ |
136 """ |
137 Private method to create the menus. |
137 Private method to create the menus. |