98 self.trUtf8('Add Connection'), |
98 self.trUtf8('Add Connection'), |
99 UI.PixmapCache.getIcon("databaseConnection.png"), |
99 UI.PixmapCache.getIcon("databaseConnection.png"), |
100 self.trUtf8('Add &Connection...'), |
100 self.trUtf8('Add &Connection...'), |
101 0, 0, self, 'sql_file_add_connection') |
101 0, 0, self, 'sql_file_add_connection') |
102 self.addConnectionAct.setStatusTip(self.trUtf8( |
102 self.addConnectionAct.setStatusTip(self.trUtf8( |
103 'Open a dialog to add a new database connection')) |
103 'Open a dialog to add a new database connection')) |
104 self.addConnectionAct.setWhatsThis(self.trUtf8( |
104 self.addConnectionAct.setWhatsThis(self.trUtf8( |
105 """<b>Add Connection</b>""" |
105 """<b>Add Connection</b>""" |
106 """<p>This opens a dialog to add a new database""" |
106 """<p>This opens a dialog to add a new database""" |
107 """ connection.</p>""" |
107 """ connection.</p>""" |
108 )) |
108 )) |
109 self.addConnectionAct.triggered[()].connect( |
109 self.addConnectionAct.triggered[()].connect( |
110 self.__browser.addConnectionByDialog) |
110 self.__browser.addConnectionByDialog) |
111 self.__actions.append(self.addConnectionAct) |
111 self.__actions.append(self.addConnectionAct) |
112 |
112 |
116 self.trUtf8('&Quit'), |
116 self.trUtf8('&Quit'), |
117 QKeySequence(self.trUtf8("Ctrl+Q", "File|Quit")), |
117 QKeySequence(self.trUtf8("Ctrl+Q", "File|Quit")), |
118 0, self, 'sql_file_quit') |
118 0, self, 'sql_file_quit') |
119 self.exitAct.setStatusTip(self.trUtf8('Quit the SQL browser')) |
119 self.exitAct.setStatusTip(self.trUtf8('Quit the SQL browser')) |
120 self.exitAct.setWhatsThis(self.trUtf8( |
120 self.exitAct.setWhatsThis(self.trUtf8( |
121 """<b>Quit</b>""" |
121 """<b>Quit</b>""" |
122 """<p>Quit the SQL browser.</p>""" |
122 """<p>Quit the SQL browser.</p>""" |
123 )) |
123 )) |
124 self.exitAct.triggered[()].connect(qApp.closeAllWindows) |
124 self.exitAct.triggered[()].connect(qApp.closeAllWindows) |
125 |
125 |
126 self.aboutAct = E5Action( |
126 self.aboutAct = E5Action( |
127 self.trUtf8('About'), |
127 self.trUtf8('About'), |
128 self.trUtf8('&About'), |
128 self.trUtf8('&About'), |
129 0, 0, self, 'sql_help_about') |
129 0, 0, self, 'sql_help_about') |
130 self.aboutAct.setStatusTip(self.trUtf8( |
130 self.aboutAct.setStatusTip(self.trUtf8( |
131 'Display information about this software')) |
131 'Display information about this software')) |
132 self.aboutAct.setWhatsThis(self.trUtf8( |
132 self.aboutAct.setWhatsThis(self.trUtf8( |
133 """<b>About</b>""" |
133 """<b>About</b>""" |
134 """<p>Display some information about this software.</p>""" |
134 """<p>Display some information about this software.</p>""" |
135 )) |
135 )) |
136 self.aboutAct.triggered[()].connect(self.__about) |
136 self.aboutAct.triggered[()].connect(self.__about) |
137 self.__actions.append(self.aboutAct) |
137 self.__actions.append(self.aboutAct) |
138 |
138 |
139 self.aboutQtAct = E5Action( |
139 self.aboutQtAct = E5Action( |
141 self.trUtf8('About &Qt'), |
141 self.trUtf8('About &Qt'), |
142 0, 0, self, 'sql_help_about_qt') |
142 0, 0, self, 'sql_help_about_qt') |
143 self.aboutQtAct.setStatusTip( |
143 self.aboutQtAct.setStatusTip( |
144 self.trUtf8('Display information about the Qt toolkit')) |
144 self.trUtf8('Display information about the Qt toolkit')) |
145 self.aboutQtAct.setWhatsThis(self.trUtf8( |
145 self.aboutQtAct.setWhatsThis(self.trUtf8( |
146 """<b>About Qt</b>""" |
146 """<b>About Qt</b>""" |
147 """<p>Display some information about the Qt toolkit.</p>""" |
147 """<p>Display some information about the Qt toolkit.</p>""" |
148 )) |
148 )) |
149 self.aboutQtAct.triggered[()].connect(self.__aboutQt) |
149 self.aboutQtAct.triggered[()].connect(self.__aboutQt) |
150 self.__actions.append(self.aboutQtAct) |
150 self.__actions.append(self.aboutQtAct) |
151 |
151 |
152 def __initMenus(self): |
152 def __initMenus(self): |