Permalink
Browse files

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.
  • Loading branch information...
mgrojo committed Feb 2, 2018
1 parent e43ed17 commit 52ae85dd28ac8a21e5db67db02e551e059917821
Showing with 72 additions and 2 deletions.
  1. +6 −0 src/EditDialog.ui
  2. +12 −0 src/FilterLineEdit.cpp
  3. +49 −1 src/MainWindow.ui
  4. +5 −1 src/RemoteDock.ui
@@ -37,6 +37,9 @@
<height>0</height>
</size>
</property>
<property name="whatsThis">
<string>This is the list of supported modes for the cell editor. Choose a mode for viewing or editing the data of the current cell.</string>
</property>
<item>
<property name="text">
<string>Text</string>
@@ -258,6 +261,9 @@ Errors are indicated with a red squiggle underline.</string>
<property name="toolTip">
<string>Apply data to cell [Ctrl+Return]</string>
</property>
<property name="whatsThis">
<string>This button saves the changes performed in the cell editor to the database cell.</string>
</property>
<property name="text">
<string>Apply</string>
</property>
@@ -20,6 +20,18 @@ FilterLineEdit::FilterLineEdit(QWidget* parent, QList<FilterLineEdit*>* 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()));
@@ -154,6 +154,9 @@ You can drag SQL sentences from an object row and drop them into other applicati
<property name="toolTip">
<string>Clear all filters</string>
</property>
<property name="whatsThis">
<string>This button clears all the filters set in the header input fields for the currently browsed table.</string>
</property>
<property name="text">
<string/>
</property>
@@ -168,6 +171,9 @@ You can drag SQL sentences from an object row and drop them into other applicati
<property name="toolTip">
<string>Save the current filter, sort column and display formats as a view</string>
</property>
<property name="whatsThis">
<string>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.</string>
</property>
<property name="text">
<string>...</string>
</property>
@@ -209,7 +215,7 @@ You can drag SQL sentences from an object row and drop them into other applicati
<string>Delete the current record</string>
</property>
<property name="whatsThis">
<string>This button deletes the record currently selected in the database</string>
<string>This button deletes the record or records currently selected in the table</string>
</property>
<property name="text">
<string>Delete Record</string>
@@ -1060,6 +1066,9 @@ You can drag SQL sentences from an object row and drop them into other applicati
<height>30</height>
</size>
</property>
<property name="whatsThis">
<string>This button clears the contents of the SQL logs</string>
</property>
<property name="text">
<string>&amp;Clear</string>
</property>
@@ -1069,6 +1078,9 @@ You can drag SQL sentences from an object row and drop them into other applicati
</item>
<item>
<widget class="QStackedWidget" name="stackLog">
<property name="whatsThis">
<string>This panel lets you examine a log of all SQL commands issued by the application or by yourself</string>
</property>
<property name="currentIndex">
<number>0</number>
</property>
@@ -1268,6 +1280,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi
<property name="statusTip">
<string>Close the current database file</string>
</property>
<property name="whatsThis">
<string>This button closes the connection to the currently open database file</string>
</property>
<property name="shortcut">
<string>Ctrl+W</string>
</property>
@@ -1563,6 +1578,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi
<property name="text">
<string>Open &amp;tab</string>
</property>
<property name="whatsThis">
<string>This button opens a new tab for the SQL editor</string>
</property>
<property name="shortcut">
<string>Ctrl+T</string>
</property>
@@ -1578,6 +1596,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi
<property name="toolTip">
<string>Execute SQL [F5, Ctrl+Return, Ctrl+R]</string>
</property>
<property name="whatsThis">
<string>This button executes all the SQL statements of the current editor tab</string>
</property>
</action>
<action name="actionSqlOpenFile">
<property name="icon">
@@ -1587,6 +1608,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi
<property name="text">
<string>Open SQL file</string>
</property>
<property name="whatsThis">
<string>This button opens a file containing SQL statements and loads it in a new editor tab</string>
</property>
</action>
<action name="actionSqlSaveFile">
<property name="icon">
@@ -1623,6 +1647,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi
<property name="toolTip">
<string>Execute current line [Shift+F5]</string>
</property>
<property name="whatsThis">
<string>This button executes the SQL statement present in the current editor line</string>
</property>
<property name="shortcut">
<string>Shift+F5</string>
</property>
@@ -1688,6 +1715,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi
<property name="statusTip">
<string>Save the current session to a file</string>
</property>
<property name="whatsThis">
<string>This button lets you save all the settings associated to the open DB to a DB4S project file</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
@@ -1706,6 +1736,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi
<property name="statusTip">
<string>Load a working session from a file</string>
</property>
<property name="whatsThis">
<string>This button lets you open a DB4S project file</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
@@ -1727,6 +1760,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi
<property name="statusTip">
<string>Add another database file to the current database connection</string>
</property>
<property name="whatsThis">
<string>This button lets you add another database file to the current database connection</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
@@ -1766,6 +1802,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi
<property name="toolTip">
<string>Save SQL file</string>
</property>
<property name="whatsThis">
<string>This button opens a saves the content of the current SQL editor tab to a file</string>
</property>
</action>
<action name="actionEditBrowseTable">
<property name="icon">
@@ -1897,6 +1936,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi
<property name="toolTip">
<string>Save the results view</string>
</property>
<property name="whatsThis">
<string>This button lets you save the results of the last executed query</string>
</property>
</action>
<action name="actionSqlFind">
<property name="checkable">
@@ -1912,6 +1954,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi
<property name="toolTip">
<string>Find text in SQL editor [Ctrl+F]</string>
</property>
<property name="whatsThis">
<string>This button opens the search bar of the editor</string>
</property>
<property name="shortcut">
<string>Ctrl+F</string>
</property>
@@ -1930,6 +1975,9 @@ You can drag SQL sentences from the Schema column and drop them into the SQL edi
<property name="toolTip">
<string>Find or replace text in SQL editor [Ctrl+H]</string>
</property>
<property name="whatsThis">
<string>This button opens the find/replace dialog for the current editor tab</string>
</property>
</action>
<action name="actionSqlResultsExportCsv">
<property name="text">
@@ -74,7 +74,11 @@
</layout>
</item>
<item>
<widget class="QTreeView" name="treeStructure"/>
<widget class="QTreeView" name="treeStructure">
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;In this pane, remote databases from dbhub.io website can be added to DB4S. First you need an identity:&lt;/p&gt;&lt;ol style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;&quot;&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Login to the dbhub.io website (use your GitHub credentials or whatever you want)&lt;/li&gt;&lt;li style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;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).&lt;/li&gt;&lt;li style=&quot; margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;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.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Now the Remote panel shows your identity and you can add remote databases.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
</layout>
</widget>

0 comments on commit 52ae85d

Please sign in to comment.