From 52ae85dd28ac8a21e5db67db02e551e059917821 Mon Sep 17 00:00:00 2001 From: mgrojo Date: Fri, 2 Feb 2018 21:27:28 +0100 Subject: [PATCH] Added some "What's This" information Added some texts to the "What's This" information of some buttons or other widgets that lacked them. This will help the user to discover the provided features. Specifically, help is added for the filter fields and the remote dock. See discussions in issues #1311 and #1312. --- src/EditDialog.ui | 6 +++++ src/FilterLineEdit.cpp | 12 ++++++++++ src/MainWindow.ui | 50 +++++++++++++++++++++++++++++++++++++++++- src/RemoteDock.ui | 6 ++++- 4 files changed, 72 insertions(+), 2 deletions(-) diff --git a/src/EditDialog.ui b/src/EditDialog.ui index ed9b2eb8..f920188c 100644 --- a/src/EditDialog.ui +++ b/src/EditDialog.ui @@ -37,6 +37,9 @@ 0 + + This is the list of supported modes for the cell editor. Choose a mode for viewing or editing the data of the current cell. + Text @@ -258,6 +261,9 @@ Errors are indicated with a red squiggle underline. Apply data to cell [Ctrl+Return] + + This button saves the changes performed in the cell editor to the database cell. + Apply diff --git a/src/FilterLineEdit.cpp b/src/FilterLineEdit.cpp index d00ad628..7c9d0a99 100644 --- a/src/FilterLineEdit.cpp +++ b/src/FilterLineEdit.cpp @@ -20,6 +20,18 @@ FilterLineEdit::FilterLineEdit(QWidget* parent, QList* filters, connect(this, SIGNAL(textChanged(QString)), delaySignalTimer, SLOT(start())); connect(delaySignalTimer, SIGNAL(timeout()), this, SLOT(delayedSignalTimerTriggered())); + setWhatsThis(tr("These input fields allow you to perform quick filters in the currently selected table.\n" + "By default, the rows containing the input text are filtered out.\n" + "The following operators are also supported:\n" + "%\tWildcard\n" + ">\tGreater than\n" + "<\tLess than\n" + ">=\tEqual to or greater\n" + "<=\tEqual to or less\n" + "=\tEqual to: exact match\n" + "<>\tUnequal: exact inverse match\n" + "x~y\tRange: values between x and y")); + // Immediately emit the delayed filter value changed signal if the user presses the enter or the return key or // the line edit widget loses focus connect(this, SIGNAL(editingFinished()), this, SLOT(delayedSignalTimerTriggered())); diff --git a/src/MainWindow.ui b/src/MainWindow.ui index 6211e390..fc8c9c1f 100644 --- a/src/MainWindow.ui +++ b/src/MainWindow.ui @@ -154,6 +154,9 @@ You can drag SQL sentences from an object row and drop them into other applicati Clear all filters + + This button clears all the filters set in the header input fields for the currently browsed table. + @@ -168,6 +171,9 @@ You can drag SQL sentences from an object row and drop them into other applicati Save the current filter, sort column and display formats as a view + + This button saves the current setting of the browsed table (filters, display formats and order column) as an SQL view that you can later browse or use in SQL statements. + ... @@ -209,7 +215,7 @@ You can drag SQL sentences from an object row and drop them into other applicati Delete the current record - This button deletes the record currently selected in the database + This button deletes the record or records currently selected in the table Delete Record @@ -1060,6 +1066,9 @@ You can drag SQL sentences from an object row and drop them into other applicati 30 + + This button clears the contents of the SQL logs + &Clear @@ -1069,6 +1078,9 @@ You can drag SQL sentences from an object row and drop them into other applicati + + This panel lets you examine a log of all SQL commands issued by the application or by yourself + 0 @@ -1268,6 +1280,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi Close the current database file + + This button closes the connection to the currently open database file + Ctrl+W @@ -1563,6 +1578,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi Open &tab + + This button opens a new tab for the SQL editor + Ctrl+T @@ -1578,6 +1596,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi Execute SQL [F5, Ctrl+Return, Ctrl+R] + + This button executes all the SQL statements of the current editor tab + @@ -1587,6 +1608,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi Open SQL file + + This button opens a file containing SQL statements and loads it in a new editor tab + @@ -1623,6 +1647,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi Execute current line [Shift+F5] + + This button executes the SQL statement present in the current editor line + Shift+F5 @@ -1688,6 +1715,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi Save the current session to a file + + This button lets you save all the settings associated to the open DB to a DB4S project file + QAction::NoRole @@ -1706,6 +1736,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi Load a working session from a file + + This button lets you open a DB4S project file + QAction::NoRole @@ -1727,6 +1760,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi Add another database file to the current database connection + + This button lets you add another database file to the current database connection + QAction::NoRole @@ -1766,6 +1802,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi Save SQL file + + This button opens a saves the content of the current SQL editor tab to a file + @@ -1897,6 +1936,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi Save the results view + + This button lets you save the results of the last executed query + @@ -1912,6 +1954,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi Find text in SQL editor [Ctrl+F] + + This button opens the search bar of the editor + Ctrl+F @@ -1930,6 +1975,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi Find or replace text in SQL editor [Ctrl+H] + + This button opens the find/replace dialog for the current editor tab + diff --git a/src/RemoteDock.ui b/src/RemoteDock.ui index 70489237..c1b5690c 100644 --- a/src/RemoteDock.ui +++ b/src/RemoteDock.ui @@ -74,7 +74,11 @@ - + + + <html><head/><body><p>In this pane, remote databases from dbhub.io website can be added to DB4S. First you need an identity:</p><ol style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Login to the dbhub.io website (use your GitHub credentials or whatever you want)</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click the button to create a DB4S certificate (that's your identity). That'll give you a certificate file (save it to your local disk).</li><li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Go to the Remote tab in DB4S Preferences. Click the button to add a new certificate to DB4S and choose the just downloaded certificate file.</li></ol><p>Now the Remote panel shows your identity and you can add remote databases.</p></body></html> + +