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.connect(self.addConnectionAct, SIGNAL('triggered()'), |
96 self.addConnectionAct.triggered.connect(self.__browser.addConnectionByDialog) |
97 self.__browser.addConnectionByDialog) |
|
98 self.__actions.append(self.addConnectionAct) |
97 self.__actions.append(self.addConnectionAct) |
99 |
98 |
100 self.exitAct = E5Action(self.trUtf8('Quit'), |
99 self.exitAct = E5Action(self.trUtf8('Quit'), |
101 UI.PixmapCache.getIcon("exit.png"), |
100 UI.PixmapCache.getIcon("exit.png"), |
102 self.trUtf8('&Quit'), |
101 self.trUtf8('&Quit'), |
116 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) |
115 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) |
117 self.aboutAct.setWhatsThis(self.trUtf8( |
116 self.aboutAct.setWhatsThis(self.trUtf8( |
118 """<b>About</b>""" |
117 """<b>About</b>""" |
119 """<p>Display some information about this software.</p>""" |
118 """<p>Display some information about this software.</p>""" |
120 )) |
119 )) |
121 self.connect(self.aboutAct, SIGNAL('triggered()'), self.__about) |
120 self.aboutAct.triggered.connect(self.__about) |
122 self.__actions.append(self.aboutAct) |
121 self.__actions.append(self.aboutAct) |
123 |
122 |
124 self.aboutQtAct = E5Action(self.trUtf8('About Qt'), |
123 self.aboutQtAct = E5Action(self.trUtf8('About Qt'), |
125 self.trUtf8('About &Qt'), |
124 self.trUtf8('About &Qt'), |
126 0, 0, self, 'sql_help_about_qt') |
125 0, 0, self, 'sql_help_about_qt') |
128 self.trUtf8('Display information about the Qt toolkit')) |
127 self.trUtf8('Display information about the Qt toolkit')) |
129 self.aboutQtAct.setWhatsThis(self.trUtf8( |
128 self.aboutQtAct.setWhatsThis(self.trUtf8( |
130 """<b>About Qt</b>""" |
129 """<b>About Qt</b>""" |
131 """<p>Display some information about the Qt toolkit.</p>""" |
130 """<p>Display some information about the Qt toolkit.</p>""" |
132 )) |
131 )) |
133 self.connect(self.aboutQtAct, SIGNAL('triggered()'), self.__aboutQt) |
132 self.aboutQtAct.triggered.connect(self.__aboutQt) |
134 self.__actions.append(self.aboutQtAct) |
133 self.__actions.append(self.aboutQtAct) |
135 |
134 |
136 def __initMenus(self): |
135 def __initMenus(self): |
137 """ |
136 """ |
138 Private method to create the menus. |
137 Private method to create the menus. |