eric6/SqlBrowser/SqlBrowser.py

changeset 7533
88261c96484b
parent 7360
9190402e4505
child 7761
ed2c67d20328
equal deleted inserted replaced
7532:1358e9d67a1c 7533:88261c96484b
40 40
41 if connections is None: 41 if connections is None:
42 connections = [] 42 connections = []
43 43
44 self.setWindowTitle(self.tr("SQL Browser")) 44 self.setWindowTitle(self.tr("SQL Browser"))
45 self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) 45 self.setWindowIcon(UI.PixmapCache.getIcon("eric"))
46 46
47 self.setStyle(Preferences.getUI("Style"), 47 self.setStyle(Preferences.getUI("Style"),
48 Preferences.getUI("StyleSheet")) 48 Preferences.getUI("StyleSheet"))
49 49
50 from .SqlBrowserWidget import SqlBrowserWidget 50 from .SqlBrowserWidget import SqlBrowserWidget
99 # list of all actions 99 # list of all actions
100 self.__actions = [] 100 self.__actions = []
101 101
102 self.addConnectionAct = E5Action( 102 self.addConnectionAct = E5Action(
103 self.tr('Add Connection'), 103 self.tr('Add Connection'),
104 UI.PixmapCache.getIcon("databaseConnection.png"), 104 UI.PixmapCache.getIcon("databaseConnection"),
105 self.tr('Add &Connection...'), 105 self.tr('Add &Connection...'),
106 0, 0, self, 'sql_file_add_connection') 106 0, 0, self, 'sql_file_add_connection')
107 self.addConnectionAct.setStatusTip(self.tr( 107 self.addConnectionAct.setStatusTip(self.tr(
108 'Open a dialog to add a new database connection')) 108 'Open a dialog to add a new database connection'))
109 self.addConnectionAct.setWhatsThis(self.tr( 109 self.addConnectionAct.setWhatsThis(self.tr(
115 self.__browser.addConnectionByDialog) 115 self.__browser.addConnectionByDialog)
116 self.__actions.append(self.addConnectionAct) 116 self.__actions.append(self.addConnectionAct)
117 117
118 self.exitAct = E5Action( 118 self.exitAct = E5Action(
119 self.tr('Quit'), 119 self.tr('Quit'),
120 UI.PixmapCache.getIcon("exit.png"), 120 UI.PixmapCache.getIcon("exit"),
121 self.tr('&Quit'), 121 self.tr('&Quit'),
122 QKeySequence(self.tr("Ctrl+Q", "File|Quit")), 122 QKeySequence(self.tr("Ctrl+Q", "File|Quit")),
123 0, self, 'sql_file_quit') 123 0, self, 'sql_file_quit')
124 self.exitAct.setStatusTip(self.tr('Quit the SQL browser')) 124 self.exitAct.setStatusTip(self.tr('Quit the SQL browser'))
125 self.exitAct.setWhatsThis(self.tr( 125 self.exitAct.setWhatsThis(self.tr(

eric ide

mercurial