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