Sat, 19 Jun 2010 16:37:10 +0200
Added dialog to manage Web SQL Databases to the web browser.
--- a/APIs/Python3/eric5.api Mon Jun 14 19:39:15 2010 +0200 +++ b/APIs/Python3/eric5.api Sat Jun 19 16:37:10 2010 +0200 @@ -2135,8 +2135,19 @@ eric5.Helpviewer.Network.QtHelpAccessHandler.QtHelpAccessHandler?1(engine, parent = None) eric5.Helpviewer.Network.SchemeAccessHandler.SchemeAccessHandler.createRequest?4(op, request, outgoingData = None) eric5.Helpviewer.Network.SchemeAccessHandler.SchemeAccessHandler?1(parent = None) +eric5.Helpviewer.OfflineStorage.OfflineStorageConfigDialog.OfflineStorageConfigDialog.on_showDatabasesButton_clicked?4() eric5.Helpviewer.OfflineStorage.OfflineStorageConfigDialog.OfflineStorageConfigDialog.storeData?4() eric5.Helpviewer.OfflineStorage.OfflineStorageConfigDialog.OfflineStorageConfigDialog?1(parent = None) +eric5.Helpviewer.OfflineStorage.WebDatabasesDialog.WebDatabasesDialog?1(parent = None) +eric5.Helpviewer.OfflineStorage.WebDatabasesModel.WebDatabasesModel.columnCount?4(parent = QModelIndex()) +eric5.Helpviewer.OfflineStorage.WebDatabasesModel.WebDatabasesModel.data?4(index, role = Qt.DisplayRole) +eric5.Helpviewer.OfflineStorage.WebDatabasesModel.WebDatabasesModel.hasChildren?4(parent = QModelIndex()) +eric5.Helpviewer.OfflineStorage.WebDatabasesModel.WebDatabasesModel.headerData?4(section, orientation, role = Qt.DisplayRole) +eric5.Helpviewer.OfflineStorage.WebDatabasesModel.WebDatabasesModel.index?4(row, column, parent = QModelIndex()) +eric5.Helpviewer.OfflineStorage.WebDatabasesModel.WebDatabasesModel.parent?4(index = QModelIndex()) +eric5.Helpviewer.OfflineStorage.WebDatabasesModel.WebDatabasesModel.removeRows?4(row, count, parent = QModelIndex()) +eric5.Helpviewer.OfflineStorage.WebDatabasesModel.WebDatabasesModel.rowCount?4(parent = QModelIndex()) +eric5.Helpviewer.OfflineStorage.WebDatabasesModel.WebDatabasesModel?1(parent = None) eric5.Helpviewer.OpenSearch.OpenSearchDefaultEngines.OpenSearchDefaultEngines?7 eric5.Helpviewer.OpenSearch.OpenSearchDialog.OpenSearchDialog.on_addButton_clicked?4() eric5.Helpviewer.OpenSearch.OpenSearchDialog.OpenSearchDialog.on_deleteButton_clicked?4()
--- a/Documentation/Help/source.qhp Mon Jun 14 19:39:15 2010 +0200 +++ b/Documentation/Help/source.qhp Sat Jun 19 16:37:10 2010 +0200 @@ -242,6 +242,8 @@ </section> <section title="eric5.Helpviewer.OfflineStorage" ref="index-eric5.Helpviewer.OfflineStorage.html"> <section title="eric5.Helpviewer.OfflineStorage.OfflineStorageConfigDialog" ref="eric5.Helpviewer.OfflineStorage.OfflineStorageConfigDialog.html" /> + <section title="eric5.Helpviewer.OfflineStorage.WebDatabasesDialog" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesDialog.html" /> + <section title="eric5.Helpviewer.OfflineStorage.WebDatabasesModel" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html" /> </section> <section title="eric5.Helpviewer.OpenSearch" ref="index-eric5.Helpviewer.OpenSearch.html"> <section title="eric5.Helpviewer.OpenSearch.OpenSearchDefaultEngines" ref="eric5.Helpviewer.OpenSearch.OpenSearchDefaultEngines.html" /> @@ -6780,7 +6782,23 @@ <keyword name="OfflineStorageConfigDialog (Module)" id="OfflineStorageConfigDialog (Module)" ref="eric5.Helpviewer.OfflineStorage.OfflineStorageConfigDialog.html" /> <keyword name="OfflineStorageConfigDialog" id="OfflineStorageConfigDialog" ref="eric5.Helpviewer.OfflineStorage.OfflineStorageConfigDialog.html#OfflineStorageConfigDialog" /> <keyword name="OfflineStorageConfigDialog (Constructor)" id="OfflineStorageConfigDialog (Constructor)" ref="eric5.Helpviewer.OfflineStorage.OfflineStorageConfigDialog.html#OfflineStorageConfigDialog.__init__" /> + <keyword name="OfflineStorageConfigDialog.on_showDatabasesButton_clicked" id="OfflineStorageConfigDialog.on_showDatabasesButton_clicked" ref="eric5.Helpviewer.OfflineStorage.OfflineStorageConfigDialog.html#OfflineStorageConfigDialog.on_showDatabasesButton_clicked" /> <keyword name="OfflineStorageConfigDialog.storeData" id="OfflineStorageConfigDialog.storeData" ref="eric5.Helpviewer.OfflineStorage.OfflineStorageConfigDialog.html#OfflineStorageConfigDialog.storeData" /> + <keyword name="WebDatabasesModel (Module)" id="WebDatabasesModel (Module)" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html" /> + <keyword name="WebDatabasesModel" id="WebDatabasesModel" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html#WebDatabasesModel" /> + <keyword name="WebDatabasesModel (Constructor)" id="WebDatabasesModel (Constructor)" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html#WebDatabasesModel.__init__" /> + <keyword name="WebDatabasesModel.__dataString" id="WebDatabasesModel.__dataString" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html#WebDatabasesModel.__dataString" /> + <keyword name="WebDatabasesModel.columnCount" id="WebDatabasesModel.columnCount" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html#WebDatabasesModel.columnCount" /> + <keyword name="WebDatabasesModel.data" id="WebDatabasesModel.data" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html#WebDatabasesModel.data" /> + <keyword name="WebDatabasesModel.hasChildren" id="WebDatabasesModel.hasChildren" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html#WebDatabasesModel.hasChildren" /> + <keyword name="WebDatabasesModel.headerData" id="WebDatabasesModel.headerData" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html#WebDatabasesModel.headerData" /> + <keyword name="WebDatabasesModel.index" id="WebDatabasesModel.index" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html#WebDatabasesModel.index" /> + <keyword name="WebDatabasesModel.parent" id="WebDatabasesModel.parent" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html#WebDatabasesModel.parent" /> + <keyword name="WebDatabasesModel.removeRows" id="WebDatabasesModel.removeRows" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html#WebDatabasesModel.removeRows" /> + <keyword name="WebDatabasesModel.rowCount" id="WebDatabasesModel.rowCount" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html#WebDatabasesModel.rowCount" /> + <keyword name="WebDatabasesDialog (Module)" id="WebDatabasesDialog (Module)" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesDialog.html" /> + <keyword name="WebDatabasesDialog" id="WebDatabasesDialog" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesDialog.html#WebDatabasesDialog" /> + <keyword name="WebDatabasesDialog (Constructor)" id="WebDatabasesDialog (Constructor)" ref="eric5.Helpviewer.OfflineStorage.WebDatabasesDialog.html#WebDatabasesDialog.__init__" /> <keyword name="Bookmarks (Package)" id="Bookmarks (Package)" ref="index-eric5.Helpviewer.Bookmarks.html" /> <keyword name="BookmarksManager (Module)" id="BookmarksManager (Module)" ref="eric5.Helpviewer.Bookmarks.BookmarksManager.html" /> <keyword name="BookmarksManager" id="BookmarksManager" ref="eric5.Helpviewer.Bookmarks.BookmarksManager.html#BookmarksManager" /> @@ -9838,6 +9856,8 @@ <file>eric5.Helpviewer.Network.QtHelpAccessHandler.html</file> <file>eric5.Helpviewer.Network.SchemeAccessHandler.html</file> <file>eric5.Helpviewer.OfflineStorage.OfflineStorageConfigDialog.html</file> + <file>eric5.Helpviewer.OfflineStorage.WebDatabasesDialog.html</file> + <file>eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html</file> <file>eric5.Helpviewer.OpenSearch.OpenSearchDefaultEngines.html</file> <file>eric5.Helpviewer.OpenSearch.OpenSearchDialog.html</file> <file>eric5.Helpviewer.OpenSearch.OpenSearchEditDialog.html</file>
--- a/Documentation/Source/eric5.Helpviewer.OfflineStorage.OfflineStorageConfigDialog.html Mon Jun 14 19:39:15 2010 +0200 +++ b/Documentation/Source/eric5.Helpviewer.OfflineStorage.OfflineStorageConfigDialog.html Sat Jun 19 16:37:10 2010 +0200 @@ -57,6 +57,9 @@ <td><a href="#OfflineStorageConfigDialog.__init__">OfflineStorageConfigDialog</a></td> <td>Constructor</td> </tr><tr> +<td><a href="#OfflineStorageConfigDialog.on_showDatabasesButton_clicked">on_showDatabasesButton_clicked</a></td> +<td>Private slot to show a dialog with all databases.</td> +</tr><tr> <td><a href="#OfflineStorageConfigDialog.storeData">storeData</a></td> <td>Public slot to store the configuration data.</td> </tr> @@ -71,7 +74,12 @@ <dd> reference to the parent widget (QWidget) </dd> -</dl><a NAME="OfflineStorageConfigDialog.storeData" ID="OfflineStorageConfigDialog.storeData"></a> +</dl><a NAME="OfflineStorageConfigDialog.on_showDatabasesButton_clicked" ID="OfflineStorageConfigDialog.on_showDatabasesButton_clicked"></a> +<h4>OfflineStorageConfigDialog.on_showDatabasesButton_clicked</h4> +<b>on_showDatabasesButton_clicked</b>(<i></i>) +<p> + Private slot to show a dialog with all databases. +</p><a NAME="OfflineStorageConfigDialog.storeData" ID="OfflineStorageConfigDialog.storeData"></a> <h4>OfflineStorageConfigDialog.storeData</h4> <b>storeData</b>(<i></i>) <p>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.Helpviewer.OfflineStorage.WebDatabasesDialog.html Sat Jun 19 16:37:10 2010 +0200 @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.Helpviewer.OfflineStorage.WebDatabasesDialog</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.Helpviewer.OfflineStorage.WebDatabasesDialog</h1> +<p> +Module implementing a dialog to show all web databases. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#WebDatabasesDialog">WebDatabasesDialog</a></td> +<td>Class implementing a dialog to show all web databases.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="WebDatabasesDialog" ID="WebDatabasesDialog"></a> +<h2>WebDatabasesDialog</h2> +<p> + Class implementing a dialog to show all web databases. +</p> +<h3>Derived from</h3> +QDialog, Ui_WebDatabasesDialog +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#WebDatabasesDialog.__init__">WebDatabasesDialog</a></td> +<td>Constructor</td> +</tr> +</table> +<a NAME="WebDatabasesDialog.__init__" ID="WebDatabasesDialog.__init__"></a> +<h4>WebDatabasesDialog (Constructor)</h4> +<b>WebDatabasesDialog</b>(<i>parent = None</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +reference to the parent widget (QWidget) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html Sat Jun 19 16:37:10 2010 +0200 @@ -0,0 +1,257 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.Helpviewer.OfflineStorage.WebDatabasesModel</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.Helpviewer.OfflineStorage.WebDatabasesModel</h1> +<p> +Module implementing the web databases model. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#WebDatabasesModel">WebDatabasesModel</a></td> +<td>Class implementing the web databases model.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="WebDatabasesModel" ID="WebDatabasesModel"></a> +<h2>WebDatabasesModel</h2> +<p> + Class implementing the web databases model. +</p> +<h3>Derived from</h3> +QAbstractItemModel +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#WebDatabasesModel.__init__">WebDatabasesModel</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#WebDatabasesModel.__dataString">__dataString</a></td> +<td>Private method to generate a formatted data string.</td> +</tr><tr> +<td><a href="#WebDatabasesModel.columnCount">columnCount</a></td> +<td>Public method to get the number of columns.</td> +</tr><tr> +<td><a href="#WebDatabasesModel.data">data</a></td> +<td>Public method to get data from the model.</td> +</tr><tr> +<td><a href="#WebDatabasesModel.hasChildren">hasChildren</a></td> +<td>Public method to check, if a parent node has some children.</td> +</tr><tr> +<td><a href="#WebDatabasesModel.headerData">headerData</a></td> +<td>Public method to get the header data.</td> +</tr><tr> +<td><a href="#WebDatabasesModel.index">index</a></td> +<td>Public method to get a model index for an entry.</td> +</tr><tr> +<td><a href="#WebDatabasesModel.parent">parent</a></td> +<td>Public method to get the index of the parent entry.</td> +</tr><tr> +<td><a href="#WebDatabasesModel.removeRows">removeRows</a></td> +<td>Public method to remove databases from the model.</td> +</tr><tr> +<td><a href="#WebDatabasesModel.rowCount">rowCount</a></td> +<td>Public method to determine the number of rows.</td> +</tr> +</table> +<a NAME="WebDatabasesModel.__init__" ID="WebDatabasesModel.__init__"></a> +<h4>WebDatabasesModel (Constructor)</h4> +<b>WebDatabasesModel</b>(<i>parent = None</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +reference to the parent object (QObject) +</dd> +</dl><a NAME="WebDatabasesModel.__dataString" ID="WebDatabasesModel.__dataString"></a> +<h4>WebDatabasesModel.__dataString</h4> +<b>__dataString</b>(<i>size</i>) +<p> + Private method to generate a formatted data string. +</p><dl> +<dt><i>size</i></dt> +<dd> +size to be formatted (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +formatted data string (string) +</dd> +</dl><a NAME="WebDatabasesModel.columnCount" ID="WebDatabasesModel.columnCount"></a> +<h4>WebDatabasesModel.columnCount</h4> +<b>columnCount</b>(<i>parent = QModelIndex()</i>) +<p> + Public method to get the number of columns. +</p><dl> +<dt><i>parent</i></dt> +<dd> +index of parent (QModelIndex) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +number of columns (integer) +</dd> +</dl><a NAME="WebDatabasesModel.data" ID="WebDatabasesModel.data"></a> +<h4>WebDatabasesModel.data</h4> +<b>data</b>(<i>index, role = Qt.DisplayRole</i>) +<p> + Public method to get data from the model. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of entry to get data for (QModelIndex) +</dd><dt><i>role</i></dt> +<dd> +data role (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +entry data +</dd> +</dl><a NAME="WebDatabasesModel.hasChildren" ID="WebDatabasesModel.hasChildren"></a> +<h4>WebDatabasesModel.hasChildren</h4> +<b>hasChildren</b>(<i>parent = QModelIndex()</i>) +<p> + Public method to check, if a parent node has some children. +</p><dl> +<dt><i>parent</i></dt> +<dd> +index of the parent node (QModelIndex) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +flag indicating the presence of children (boolean) +</dd> +</dl><a NAME="WebDatabasesModel.headerData" ID="WebDatabasesModel.headerData"></a> +<h4>WebDatabasesModel.headerData</h4> +<b>headerData</b>(<i>section, orientation, role = Qt.DisplayRole</i>) +<p> + Public method to get the header data. +</p><dl> +<dt><i>section</i></dt> +<dd> +section number (integer) +</dd><dt><i>orientation</i></dt> +<dd> +header orientation (Qt.Orientation) +</dd><dt><i>role</i></dt> +<dd> +data role (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +header data +</dd> +</dl><a NAME="WebDatabasesModel.index" ID="WebDatabasesModel.index"></a> +<h4>WebDatabasesModel.index</h4> +<b>index</b>(<i>row, column, parent = QModelIndex()</i>) +<p> + Public method to get a model index for an entry. +</p><dl> +<dt><i>row</i></dt> +<dd> +row number (integer) +</dd><dt><i>column</i></dt> +<dd> +column number (integer) +</dd><dt><i>parent</i></dt> +<dd> +index of the parent (QModelIndex) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +index (QModelIndex) +</dd> +</dl><a NAME="WebDatabasesModel.parent" ID="WebDatabasesModel.parent"></a> +<h4>WebDatabasesModel.parent</h4> +<b>parent</b>(<i>index = QModelIndex()</i>) +<p> + Public method to get the index of the parent entry. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the child entry (QModelIndex) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +index of the parent entry (QModelIndex) +</dd> +</dl><a NAME="WebDatabasesModel.removeRows" ID="WebDatabasesModel.removeRows"></a> +<h4>WebDatabasesModel.removeRows</h4> +<b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>) +<p> + Public method to remove databases from the model. +</p><dl> +<dt><i>row</i></dt> +<dd> +row of the first database to remove (integer) +</dd><dt><i>count</i></dt> +<dd> +number of databases to remove (integer) +</dd><dt><i>parent</i></dt> +<dd> +index of the security origin (QModelIndex) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +flag indicating successful removal (boolean) +</dd> +</dl><a NAME="WebDatabasesModel.rowCount" ID="WebDatabasesModel.rowCount"></a> +<h4>WebDatabasesModel.rowCount</h4> +<b>rowCount</b>(<i>parent = QModelIndex()</i>) +<p> + Public method to determine the number of rows. +</p><dl> +<dt><i>parent</i></dt> +<dd> +index of parent (QModelIndex) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +number of rows (integer) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- a/Documentation/Source/index-eric5.Helpviewer.OfflineStorage.html Mon Jun 14 19:39:15 2010 +0200 +++ b/Documentation/Source/index-eric5.Helpviewer.OfflineStorage.html Sat Jun 19 16:37:10 2010 +0200 @@ -31,6 +31,12 @@ <tr> <td><a href="eric5.Helpviewer.OfflineStorage.OfflineStorageConfigDialog.html">OfflineStorageConfigDialog</a></td> <td>Module implementing a dialog to configure the offline storage.</td> +</tr><tr> +<td><a href="eric5.Helpviewer.OfflineStorage.WebDatabasesDialog.html">WebDatabasesDialog</a></td> +<td>Module implementing a dialog to show all web databases.</td> +</tr><tr> +<td><a href="eric5.Helpviewer.OfflineStorage.WebDatabasesModel.html">WebDatabasesModel</a></td> +<td>Module implementing the web databases model.</td> </tr> </table> </body></html> \ No newline at end of file
--- a/Helpviewer/OfflineStorage/OfflineStorageConfigDialog.py Mon Jun 14 19:39:15 2010 +0200 +++ b/Helpviewer/OfflineStorage/OfflineStorageConfigDialog.py Sat Jun 19 16:37:10 2010 +0200 @@ -7,8 +7,10 @@ Module implementing a dialog to configure the offline storage. """ +from PyQt4.QtCore import pyqtSlot from PyQt4.QtGui import QDialog +from .WebDatabasesDialog import WebDatabasesDialog from .Ui_OfflineStorageConfigDialog import Ui_OfflineStorageConfigDialog import Preferences @@ -39,3 +41,11 @@ self.databaseEnabledCheckBox.isChecked()) Preferences.setHelp("OfflineStorageDatabaseQuota", self.databaseQuotaSpinBox.value()) + + @pyqtSlot() + def on_showDatabasesButton_clicked(self): + """ + Private slot to show a dialog with all databases. + """ + dlg = WebDatabasesDialog(self) + dlg.exec_()
--- a/Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui Mon Jun 14 19:39:15 2010 +0200 +++ b/Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui Sat Jun 19 16:37:10 2010 +0200 @@ -82,7 +82,7 @@ </property> </widget> </item> - <item row="1" column="2"> + <item row="1" column="2" colspan="2"> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> @@ -95,6 +95,29 @@ </property> </spacer> </item> + <item row="2" column="0" colspan="3"> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>306</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="2" column="3"> + <widget class="QPushButton" name="showDatabasesButton"> + <property name="toolTip"> + <string>Press to show the Web SQL Databases</string> + </property> + <property name="text"> + <string>Show databases...</string> + </property> + </widget> + </item> </layout> </widget> </item> @@ -126,6 +149,7 @@ <tabstops> <tabstop>databaseEnabledCheckBox</tabstop> <tabstop>databaseQuotaSpinBox</tabstop> + <tabstop>showDatabasesButton</tabstop> <tabstop>buttonBox</tabstop> </tabstops> <resources/>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Helpviewer/OfflineStorage/WebDatabasesDialog.py Sat Jun 19 16:37:10 2010 +0200 @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing a dialog to show all web databases. +""" + +from PyQt4.QtCore import Qt +from PyQt4.QtGui import QDialog, QFontMetrics + +from E5Gui.E5TreeSortFilterProxyModel import E5TreeSortFilterProxyModel + +from .Ui_WebDatabasesDialog import Ui_WebDatabasesDialog + +from .WebDatabasesModel import WebDatabasesModel + +import UI.PixmapCache + +class WebDatabasesDialog(QDialog, Ui_WebDatabasesDialog): + """ + Class implementing a dialog to show all web databases. + """ + def __init__(self, parent = None): + """ + Constructor + + @param parent reference to the parent widget (QWidget) + """ + QDialog.__init__(self, parent) + self.setupUi(self) + + self.clearButton.setIcon(UI.PixmapCache.getIcon("clearLeft.png")) + + self.removeButton.clicked.connect(self.databasesTree.removeSelected) + self.removeAllButton.clicked.connect(self.databasesTree.removeAll) + + model = WebDatabasesModel(self) + self.__proxyModel = E5TreeSortFilterProxyModel(self) + self.__proxyModel.setFilterKeyColumn(-1) + self.__proxyModel.setSourceModel(model) + + self.searchEdit.textChanged.connect(self.__proxyModel.setFilterFixedString) + + self.databasesTree.setModel(self.__proxyModel) + fm = QFontMetrics(self.font()) + header = fm.width("m") * 30 + self.databasesTree.header().resizeSection(0, header) + self.databasesTree.model().sort( + self.databasesTree.header().sortIndicatorSection(), + Qt.AscendingOrder) + self.databasesTree.expandAll()
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Helpviewer/OfflineStorage/WebDatabasesDialog.ui Sat Jun 19 16:37:10 2010 +0200 @@ -0,0 +1,166 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>WebDatabasesDialog</class> + <widget class="QDialog" name="WebDatabasesDialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>500</width> + <height>357</height> + </rect> + </property> + <property name="windowTitle"> + <string>Web SQL Databases</string> + </property> + <property name="sizeGripEnabled"> + <bool>true</bool> + </property> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0" colspan="3"> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="QLineEdit" name="searchEdit"> + <property name="toolTip"> + <string>Enter search term for databases</string> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="clearButton"> + <property name="toolTip"> + <string>Press to clear the search edit</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </item> + <item row="1" column="0" colspan="3"> + <widget class="E5TreeView" name="databasesTree"> + <property name="alternatingRowColors"> + <bool>true</bool> + </property> + <property name="selectionMode"> + <enum>QAbstractItemView::ExtendedSelection</enum> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QPushButton" name="removeButton"> + <property name="toolTip"> + <string>Press to remove the selected entries</string> + </property> + <property name="text"> + <string>&Remove</string> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QPushButton" name="removeAllButton"> + <property name="toolTip"> + <string>Press to remove all entries</string> + </property> + <property name="text"> + <string>Remove &All</string> + </property> + </widget> + </item> + <item row="2" column="2"> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>309</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="3" column="0" colspan="3"> + <widget class="QDialogButtonBox" name="buttonBox"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="standardButtons"> + <set>QDialogButtonBox::Close</set> + </property> + </widget> + </item> + </layout> + </widget> + <customwidgets> + <customwidget> + <class>E5TreeView</class> + <extends>QTreeView</extends> + <header>E5Gui/E5TreeView.h</header> + </customwidget> + </customwidgets> + <tabstops> + <tabstop>searchEdit</tabstop> + <tabstop>clearButton</tabstop> + <tabstop>databasesTree</tabstop> + <tabstop>removeButton</tabstop> + <tabstop>removeAllButton</tabstop> + <tabstop>buttonBox</tabstop> + </tabstops> + <resources/> + <connections> + <connection> + <sender>buttonBox</sender> + <signal>accepted()</signal> + <receiver>WebDatabasesDialog</receiver> + <slot>accept()</slot> + <hints> + <hint type="sourcelabel"> + <x>248</x> + <y>254</y> + </hint> + <hint type="destinationlabel"> + <x>157</x> + <y>274</y> + </hint> + </hints> + </connection> + <connection> + <sender>buttonBox</sender> + <signal>rejected()</signal> + <receiver>WebDatabasesDialog</receiver> + <slot>reject()</slot> + <hints> + <hint type="sourcelabel"> + <x>316</x> + <y>260</y> + </hint> + <hint type="destinationlabel"> + <x>286</x> + <y>274</y> + </hint> + </hints> + </connection> + </connections> +</ui>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Helpviewer/OfflineStorage/WebDatabasesModel.py Sat Jun 19 16:37:10 2010 +0200 @@ -0,0 +1,212 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing the web databases model. +""" + +import sys + +from PyQt4.QtCore import QAbstractItemModel, QModelIndex, Qt +from PyQt4.QtWebKit import QWebSecurityOrigin, QWebDatabase + +class WebDatabasesModel(QAbstractItemModel): + """ + Class implementing the web databases model. + """ + def __init__(self, parent = None): + """ + Constructor + + @param parent reference to the parent object (QObject) + """ + QAbstractItemModel.__init__(self, parent) + self.__headers = [ + self.trUtf8("Name"), + self.trUtf8("Size") + ] + + self.__data = [] + for origin in QWebSecurityOrigin.allOrigins(): + self.__data.append([origin, origin.databases()]) + + def removeRows(self, row, count, parent = QModelIndex()): + """ + Public method to remove databases from the model. + + @param row row of the first database to remove (integer) + @param count number of databases to remove (integer) + @param parent index of the security origin (QModelIndex) + @return flag indicating successful removal (boolean) + """ + if row < 0 or count <= 0 or row + count > self.rowCount(parent): + return False + + if parent.isValid(): + self.beginRemoveRows(parent, row, row + count - 1) + parentRow = parent.row() + for db in self.__data[parentRow][1][row:row + count]: + QWebDatabase.removeDatabase(db) + del self.__data[parentRow][1][row:row + count] + self.endRemoveRows() + else: + for parentRow in range(row, row + count): + self.beginRemoveRows(self.index(parentRow, 0, parent), + 0, len(self.__data[parentRow][1]) - 1) + for db in self.__data[parentRow][1]: + QWebDatabase.removeDatabase(db) + del self.__data[parentRow][1][:] + self.endRemoveRows() + + return True + + def headerData(self, section, orientation, role = Qt.DisplayRole): + """ + Public method to get the header data. + + @param section section number (integer) + @param orientation header orientation (Qt.Orientation) + @param role data role (integer) + @return header data + """ + if orientation == Qt.Horizontal and role == Qt.DisplayRole: + try: + return self.__headers[section] + except IndexError: + pass + return QAbstractItemModel.headerData(self, section, orientation, role) + + def data(self, index, role = Qt.DisplayRole): + """ + Public method to get data from the model. + + @param index index of entry to get data for (QModelIndex) + @param role data role (integer) + @return entry data + """ + if not index.isValid() or index.model() != self: + return None + + if role == Qt.DisplayRole: + parent = index.parent() + if not parent.isValid(): + # security origin + origin = self.__data[index.row()][0] + if index.column() == 0: + if origin.host() == "": + return self.trUtf8("Local") + elif origin.port() == 0: + return "{0}://{1}".format( + origin.scheme(), + origin.host(), + ) + else: + return "{0}://{1}:{2}".format( + origin.scheme(), + origin.host(), + origin.port(), + ) + elif index.column() == 1: + return self.__dataString(origin.databaseUsage()) + else: + # web database + db = self.__data[parent.row()][1][index.row()] + if index.column() == 0: + return self.trUtf8("{0} ({1})").format(db.displayName(), db.name()) + elif index.column() == 1: + return self.__dataString(db.size()) + + def columnCount(self, parent = QModelIndex()): + """ + Public method to get the number of columns. + + @param parent index of parent (QModelIndex) + @return number of columns (integer) + """ + if parent.column() > 0: + return 0 + else: + return len(self.__headers) + + def rowCount(self, parent = QModelIndex()): + """ + Public method to determine the number of rows. + + @param parent index of parent (QModelIndex) + @return number of rows (integer) + """ + if parent.column() > 0: + return 0 + + if not parent.isValid(): + return len(self.__data) + else: + return len(self.__data[parent.row()][1]) + + def index(self, row, column, parent = QModelIndex()): + """ + Public method to get a model index for an entry. + + @param row row number (integer) + @param column column number (integer) + @param parent index of the parent (QModelIndex) + @return index (QModelIndex) + """ + if row < 0 or column < 0 or \ + row >= self.rowCount(parent) or column >= self.columnCount(parent): + return QModelIndex() + + if parent.isValid(): + return self.createIndex(row, column, parent.row()) + else: + return self.createIndex(row, column, sys.maxsize) + + def parent(self, index = QModelIndex()): + """ + Public method to get the index of the parent entry. + + @param index index of the child entry (QModelIndex) + @return index of the parent entry (QModelIndex) + """ + if not index.isValid(): + return QModelIndex() + + if index.internalId() == sys.maxsize: + return QModelIndex() + + return self.createIndex(index.internalId(), 0) + + def hasChildren(self, parent = QModelIndex()): + """ + Public method to check, if a parent node has some children. + + @param parent index of the parent node (QModelIndex) + @return flag indicating the presence of children (boolean) + """ + if not parent.isValid(): + return True + + if parent.internalId() == sys.maxsize: + return True + + return False + + def __dataString(self, size): + """ + Private method to generate a formatted data string. + + @param size size to be formatted (integer) + @return formatted data string (string) + """ + unit = "" + if size < 1024: + unit = self.trUtf8("bytes") + elif size < 1024 * 1024: + size /= 1024 + unit = self.trUtf8("kB") + else: + size /= 1024 * 1024 + unit = self.trUtf8("MB") + return "{0:.1f} {1}".format(size, unit)
--- a/eric5.e4p Mon Jun 14 19:39:15 2010 +0200 +++ b/eric5.e4p Sat Jun 19 16:37:10 2010 +0200 @@ -805,6 +805,8 @@ <Source>Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py</Source> <Source>Helpviewer/OfflineStorage/OfflineStorageConfigDialog.py</Source> <Source>Helpviewer/OfflineStorage/__init__.py</Source> + <Source>Helpviewer/OfflineStorage/WebDatabasesModel.py</Source> + <Source>Helpviewer/OfflineStorage/WebDatabasesDialog.py</Source> </Sources> <Forms> <Form>PyUnit/UnittestDialog.ui</Form> @@ -1030,6 +1032,7 @@ <Form>Plugins/VcsPlugins/vcsMercurial/HgBundleDialog.ui</Form> <Form>Plugins/VcsPlugins/vcsMercurial/HgBackoutDialog.ui</Form> <Form>Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui</Form> + <Form>Helpviewer/OfflineStorage/WebDatabasesDialog.ui</Form> </Forms> <Translations> <Translation>i18n/eric5_cs.qm</Translation>
--- a/i18n/eric5_cs.ts Mon Jun 14 19:39:15 2010 +0200 +++ b/i18n/eric5_cs.ts Sat Jun 19 16:37:10 2010 +0200 @@ -21237,6 +21237,16 @@ <source> MB</source> <translation type="unfinished"> MB</translation> </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="114"/> + <source>Press to show the Web SQL Databases</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="117"/> + <source>Show databases...</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>OpenSearchDialog</name> @@ -41492,6 +41502,87 @@ </message> </context> <context> + <name>WebDatabasesDialog</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="14"/> + <source>Web SQL Databases</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="43"/> + <source>Enter search term for cookies</source> + <translation type="obsolete">Zadejte hledaný výraz pro cookies</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="50"/> + <source>Press to clear the search edit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="74"/> + <source>Press to remove the selected entries</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="77"/> + <source>&Remove</source> + <translation type="unfinished">Odeb&rat</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="84"/> + <source>Press to remove all entries</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="87"/> + <source>Remove &All</source> + <translation type="unfinished">Odebr&at vše</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="43"/> + <source>Enter search term for databases</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>WebDatabasesModel</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="27"/> + <source>Name</source> + <translation type="unfinished">Jméno</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="28"/> + <source>Size</source> + <translation type="unfinished">Velikost</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="99"/> + <source>Local</source> + <translation type="unfinished">Lokální</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="117"/> + <source>{0} ({1})</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="205"/> + <source>bytes</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="208"/> + <source>kB</source> + <translation type="unfinished">kB</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="211"/> + <source>MB</source> + <translation type="unfinished">MB</translation> + </message> +</context> +<context> <name>WidgetView</name> <message> <location filename="Tools/TRPreviewer.py" line="686"/>
--- a/i18n/eric5_de.ts Mon Jun 14 19:39:15 2010 +0200 +++ b/i18n/eric5_de.ts Sat Jun 19 16:37:10 2010 +0200 @@ -21294,6 +21294,16 @@ <source> MB</source> <translation>MB</translation> </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="114"/> + <source>Press to show the Web SQL Databases</source> + <translation>Drücken, um die Web SQL Datenbanken anzuzeigen</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="117"/> + <source>Show databases...</source> + <translation>Zeige Datenbanken...</translation> + </message> </context> <context> <name>OpenSearchDialog</name> @@ -41647,6 +41657,82 @@ </message> </context> <context> + <name>WebDatabasesDialog</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="14"/> + <source>Web SQL Databases</source> + <translation>Web SQL Datenbanken</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="50"/> + <source>Press to clear the search edit</source> + <translation>Drücken, um den Suchtext zu löschen</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="74"/> + <source>Press to remove the selected entries</source> + <translation>Drücken, um die ausgwählten Einträge zu löschen</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="77"/> + <source>&Remove</source> + <translation>&Entfernen</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="84"/> + <source>Press to remove all entries</source> + <translation>Drücken, um alle Einträge zu löschen</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="87"/> + <source>Remove &All</source> + <translation>&Alle entfernen</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="43"/> + <source>Enter search term for databases</source> + <translation>Gib den Suchbegriff für Datenbanken ein</translation> + </message> +</context> +<context> + <name>WebDatabasesModel</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="27"/> + <source>Name</source> + <translation>Name</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="28"/> + <source>Size</source> + <translation>Größe</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="99"/> + <source>Local</source> + <translation>Lokal</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="117"/> + <source>{0} ({1})</source> + <translation>{0} ({1})</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="205"/> + <source>bytes</source> + <translation>Bytes</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="208"/> + <source>kB</source> + <translation>kB</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="211"/> + <source>MB</source> + <translation>MB</translation> + </message> +</context> +<context> <name>WidgetView</name> <message> <location filename="Tools/TRPreviewer.py" line="686"/>
--- a/i18n/eric5_es.ts Mon Jun 14 19:39:15 2010 +0200 +++ b/i18n/eric5_es.ts Sat Jun 19 16:37:10 2010 +0200 @@ -21304,6 +21304,16 @@ <source> MB</source> <translation type="unfinished"> MB</translation> </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="114"/> + <source>Press to show the Web SQL Databases</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="117"/> + <source>Show databases...</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>OpenSearchDialog</name> @@ -41607,6 +41617,87 @@ </message> </context> <context> + <name>WebDatabasesDialog</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="14"/> + <source>Web SQL Databases</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="43"/> + <source>Enter search term for cookies</source> + <translation type="obsolete">Introduzca término de búsqueda para cookies</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="50"/> + <source>Press to clear the search edit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="74"/> + <source>Press to remove the selected entries</source> + <translation type="unfinished">Pulse para eliminar las entradas seleccionadas</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="77"/> + <source>&Remove</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="84"/> + <source>Press to remove all entries</source> + <translation type="unfinished">Pulse para eliminar todas las entradas</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="87"/> + <source>Remove &All</source> + <translation type="unfinished">Eliminar &Todas</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="43"/> + <source>Enter search term for databases</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>WebDatabasesModel</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="27"/> + <source>Name</source> + <translation type="unfinished">Nombre</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="28"/> + <source>Size</source> + <translation type="unfinished">Tamaño</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="99"/> + <source>Local</source> + <translation type="unfinished">Local</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="117"/> + <source>{0} ({1})</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="205"/> + <source>bytes</source> + <translation type="unfinished">bytes</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="208"/> + <source>kB</source> + <translation type="unfinished">kB</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="211"/> + <source>MB</source> + <translation type="unfinished">MB</translation> + </message> +</context> +<context> <name>WidgetView</name> <message> <location filename="Tools/TRPreviewer.py" line="686"/>
--- a/i18n/eric5_fr.ts Mon Jun 14 19:39:15 2010 +0200 +++ b/i18n/eric5_fr.ts Sat Jun 19 16:37:10 2010 +0200 @@ -23044,6 +23044,16 @@ <source> MB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="114"/> + <source>Press to show the Web SQL Databases</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="117"/> + <source>Show databases...</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>OpenSearchDialog</name> @@ -45726,6 +45736,82 @@ </message> </context> <context> + <name>WebDatabasesDialog</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="14"/> + <source>Web SQL Databases</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="50"/> + <source>Press to clear the search edit</source> + <translation type="unfinished">Cliquer pour vider la barre de recherche</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="74"/> + <source>Press to remove the selected entries</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="77"/> + <source>&Remove</source> + <translation type="unfinished">Supp&rimer</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="84"/> + <source>Press to remove all entries</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="87"/> + <source>Remove &All</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="43"/> + <source>Enter search term for databases</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>WebDatabasesModel</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="27"/> + <source>Name</source> + <translation type="unfinished">Nom</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="28"/> + <source>Size</source> + <translation type="unfinished">Taille</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="99"/> + <source>Local</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="117"/> + <source>{0} ({1})</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="205"/> + <source>bytes</source> + <translation type="unfinished">octets</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="208"/> + <source>kB</source> + <translation type="unfinished">kB</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="211"/> + <source>MB</source> + <translation type="unfinished">MB</translation> + </message> +</context> +<context> <name>WidgetView</name> <message> <location filename="Tools/TRPreviewer.py" line="686"/>
--- a/i18n/eric5_it.ts Mon Jun 14 19:39:15 2010 +0200 +++ b/i18n/eric5_it.ts Sat Jun 19 16:37:10 2010 +0200 @@ -21298,6 +21298,16 @@ <source> MB</source> <translation type="unfinished">MB</translation> </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="114"/> + <source>Press to show the Web SQL Databases</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="117"/> + <source>Show databases...</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>OpenSearchDialog</name> @@ -41620,6 +41630,87 @@ </message> </context> <context> + <name>WebDatabasesDialog</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="14"/> + <source>Web SQL Databases</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="43"/> + <source>Enter search term for cookies</source> + <translation type="obsolete">Inserisci termine di ricerca per i cookies</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="50"/> + <source>Press to clear the search edit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="74"/> + <source>Press to remove the selected entries</source> + <translation type="unfinished">Premi per rimuovere gli elementi selezionati</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="77"/> + <source>&Remove</source> + <translation type="unfinished">&Rimuovi</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="84"/> + <source>Press to remove all entries</source> + <translation type="unfinished">Premi per rimuovere tutti gli elementi</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="87"/> + <source>Remove &All</source> + <translation type="unfinished">Rimuovi &Tutto</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="43"/> + <source>Enter search term for databases</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>WebDatabasesModel</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="27"/> + <source>Name</source> + <translation type="unfinished">Nome</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="28"/> + <source>Size</source> + <translation type="unfinished">Dimensione</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="99"/> + <source>Local</source> + <translation type="unfinished">Locale</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="117"/> + <source>{0} ({1})</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="205"/> + <source>bytes</source> + <translation type="unfinished">bytes</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="208"/> + <source>kB</source> + <translation type="unfinished">kB</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="211"/> + <source>MB</source> + <translation type="unfinished">MB</translation> + </message> +</context> +<context> <name>WidgetView</name> <message> <location filename="Tools/TRPreviewer.py" line="686"/>
--- a/i18n/eric5_ru.ts Mon Jun 14 19:39:15 2010 +0200 +++ b/i18n/eric5_ru.ts Sat Jun 19 16:37:10 2010 +0200 @@ -21366,6 +21366,16 @@ <source> MB</source> <translation type="unfinished">MB</translation> </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="114"/> + <source>Press to show the Web SQL Databases</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="117"/> + <source>Show databases...</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>OpenSearchDialog</name> @@ -41783,6 +41793,87 @@ </message> </context> <context> + <name>WebDatabasesDialog</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="14"/> + <source>Web SQL Databases</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="43"/> + <source>Enter search term for cookies</source> + <translation type="obsolete">Введите образец для поиска</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="50"/> + <source>Press to clear the search edit</source> + <translation type="unfinished">Очистить редактор поиска</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="74"/> + <source>Press to remove the selected entries</source> + <translation type="unfinished">Удалить выбранные элементы</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="77"/> + <source>&Remove</source> + <translation type="unfinished">&Удалить</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="84"/> + <source>Press to remove all entries</source> + <translation type="unfinished">Удалить все элементы</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="87"/> + <source>Remove &All</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="43"/> + <source>Enter search term for databases</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>WebDatabasesModel</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="27"/> + <source>Name</source> + <translation type="unfinished">Имя</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="28"/> + <source>Size</source> + <translation type="unfinished">Размер</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="99"/> + <source>Local</source> + <translation type="unfinished">Локальный</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="117"/> + <source>{0} ({1})</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="205"/> + <source>bytes</source> + <translation type="unfinished">байты</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="208"/> + <source>kB</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="211"/> + <source>MB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> <name>WidgetView</name> <message> <location filename="Tools/TRPreviewer.py" line="686"/>
--- a/i18n/eric5_tr.ts Mon Jun 14 19:39:15 2010 +0200 +++ b/i18n/eric5_tr.ts Sat Jun 19 16:37:10 2010 +0200 @@ -22946,6 +22946,16 @@ <source> MB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="114"/> + <source>Press to show the Web SQL Databases</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="117"/> + <source>Show databases...</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>OpenSearchDialog</name> @@ -44835,6 +44845,82 @@ </message> </context> <context> + <name>WebDatabasesDialog</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="14"/> + <source>Web SQL Databases</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="50"/> + <source>Press to clear the search edit</source> + <translation type="unfinished">Arama düzenlemesini temizlemek için basınız</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="74"/> + <source>Press to remove the selected entries</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="77"/> + <source>&Remove</source> + <translation type="unfinished">Kaldı&r</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="84"/> + <source>Press to remove all entries</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="87"/> + <source>Remove &All</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="43"/> + <source>Enter search term for databases</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>WebDatabasesModel</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="27"/> + <source>Name</source> + <translation type="unfinished">Adı</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="28"/> + <source>Size</source> + <translation type="unfinished">Boyut</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="99"/> + <source>Local</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="117"/> + <source>{0} ({1})</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="205"/> + <source>bytes</source> + <translation type="unfinished">bitler</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="208"/> + <source>kB</source> + <translation type="unfinished">kB</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="211"/> + <source>MB</source> + <translation type="unfinished">MB</translation> + </message> +</context> +<context> <name>WidgetView</name> <message> <location filename="Tools/TRPreviewer.py" line="686"/>
--- a/i18n/eric5_zh_CN.GB2312.ts Mon Jun 14 19:39:15 2010 +0200 +++ b/i18n/eric5_zh_CN.GB2312.ts Sat Jun 19 16:37:10 2010 +0200 @@ -23022,6 +23022,16 @@ <source> MB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="114"/> + <source>Press to show the Web SQL Databases</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui" line="117"/> + <source>Show databases...</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>OpenSearchDialog</name> @@ -45699,6 +45709,82 @@ </message> </context> <context> + <name>WebDatabasesDialog</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="14"/> + <source>Web SQL Databases</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="50"/> + <source>Press to clear the search edit</source> + <translation type="unfinished">点击清除搜索编辑</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="74"/> + <source>Press to remove the selected entries</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="77"/> + <source>&Remove</source> + <translation type="unfinished">移除(&R)</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="84"/> + <source>Press to remove all entries</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="87"/> + <source>Remove &All</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesDialog.ui" line="43"/> + <source>Enter search term for databases</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>WebDatabasesModel</name> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="27"/> + <source>Name</source> + <translation type="unfinished">名称</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="28"/> + <source>Size</source> + <translation type="unfinished">大小</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="99"/> + <source>Local</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="117"/> + <source>{0} ({1})</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="205"/> + <source>bytes</source> + <translation type="unfinished">字节</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="208"/> + <source>kB</source> + <translation type="unfinished">千字节</translation> + </message> + <message> + <location filename="Helpviewer/OfflineStorage/WebDatabasesModel.py" line="211"/> + <source>MB</source> + <translation type="unfinished">兆字节</translation> + </message> +</context> +<context> <name>WidgetView</name> <message> <location filename="Tools/TRPreviewer.py" line="686"/>