better names for actions WIP
This commit is contained in:
parent
ce9db56d8c
commit
c598d6af53
@ -30,7 +30,7 @@
|
||||
<url type="donation">https://martinrotter.github.io/donate/</url>
|
||||
<content_rating type="oars-1.1" />
|
||||
<releases>
|
||||
<release version="3.9.2" date="2021-06-02"/>
|
||||
<release version="3.9.2" date="2021-06-03"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.0">
|
||||
<content_attribute id="violence-cartoon">none</content_attribute>
|
||||
|
@ -398,7 +398,11 @@ bool DatabaseQueries::purgeImportantMessages(const QSqlDatabase& db) {
|
||||
QSqlQuery q(db);
|
||||
|
||||
q.setForwardOnly(true);
|
||||
q.prepare(QSL("DELETE FROM Messages WHERE is_important = 1;"));
|
||||
q.prepare(QSL("DELETE FROM Messages WHERE is_important = 1 AND is_deleted = :is_deleted;"));
|
||||
|
||||
// Remove only messages which are NOT in recycle bin.
|
||||
q.bindValue(QSL(":is_deleted"), 0);
|
||||
|
||||
return q.exec();
|
||||
}
|
||||
|
||||
@ -414,6 +418,7 @@ bool DatabaseQueries::purgeReadMessages(const QSqlDatabase& db) {
|
||||
|
||||
// Remove only messages which are NOT starred.
|
||||
q.bindValue(QSL(":is_important"), 0);
|
||||
|
||||
return q.exec();
|
||||
}
|
||||
|
||||
|
@ -17,10 +17,57 @@
|
||||
<item>
|
||||
<widget class="QGroupBox" name="m_grpCleanupSettings">
|
||||
<property name="title">
|
||||
<string>Cleanup settings (all checked items are completely erased from database)</string>
|
||||
<string>Cleanup settings</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="4" column="2">
|
||||
<item row="4" column="0" colspan="3">
|
||||
<widget class="QCheckBox" name="m_checkShrink">
|
||||
<property name="text">
|
||||
<string>Shrink database file</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="3">
|
||||
<widget class="QCheckBox" name="m_checkRemoveReadMessages">
|
||||
<property name="text">
|
||||
<string>Remove all read messages</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QSpinBox" name="m_spinDays">
|
||||
<property name="maximum">
|
||||
<number>1000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>1</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="3">
|
||||
<widget class="QCheckBox" name="m_checkRemoveRecycleBin">
|
||||
<property name="text">
|
||||
<string>Remove all messages from recycle bin</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QCheckBox" name="m_checkRemoveOldMessages">
|
||||
<property name="text">
|
||||
<string>Remove all messages older than</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="2">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
@ -33,57 +80,10 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QSpinBox" name="m_spinDays">
|
||||
<property name="maximum">
|
||||
<number>1000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>1</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="3">
|
||||
<widget class="QCheckBox" name="m_checkRemoveReadMessages">
|
||||
<property name="text">
|
||||
<string>Remove all read messages (not those from recycle bin)</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QCheckBox" name="m_checkRemoveOldMessages">
|
||||
<property name="text">
|
||||
<string>Remove all messages older than</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="3">
|
||||
<widget class="QCheckBox" name="m_checkRemoveRecycleBin">
|
||||
<property name="text">
|
||||
<string>Remove all messages from recycle bin</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="3">
|
||||
<widget class="QCheckBox" name="m_checkShrink">
|
||||
<property name="text">
|
||||
<string>Shrink database file</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="3">
|
||||
<widget class="QCheckBox" name="m_checkRemoveStarredMessages">
|
||||
<property name="text">
|
||||
<string>Remove all starred messages (including those from recycle bin)</string>
|
||||
<string>Remove all starred messages</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -195,7 +195,6 @@
|
||||
<tabstops>
|
||||
<tabstop>m_checkRemoveReadMessages</tabstop>
|
||||
<tabstop>m_checkRemoveRecycleBin</tabstop>
|
||||
<tabstop>m_checkRemoveStarredMessages</tabstop>
|
||||
<tabstop>m_checkShrink</tabstop>
|
||||
<tabstop>m_checkRemoveOldMessages</tabstop>
|
||||
<tabstop>m_spinDays</tabstop>
|
||||
|
@ -104,7 +104,7 @@
|
||||
</property>
|
||||
<widget class="QMenu" name="m_menuAddItem">
|
||||
<property name="title">
|
||||
<string>Add &new item</string>
|
||||
<string>&Add item</string>
|
||||
</property>
|
||||
</widget>
|
||||
<addaction name="m_actionUpdateAllItems"/>
|
||||
@ -136,7 +136,7 @@
|
||||
</widget>
|
||||
<widget class="QMenu" name="m_menuMessages">
|
||||
<property name="title">
|
||||
<string>&Messages</string>
|
||||
<string>&Articles</string>
|
||||
</property>
|
||||
<addaction name="m_actionOpenSelectedSourceArticlesExternally"/>
|
||||
<addaction name="m_actionOpenSelectedMessagesInternally"/>
|
||||
@ -248,7 +248,7 @@
|
||||
</action>
|
||||
<action name="m_actionUpdateAllItems">
|
||||
<property name="text">
|
||||
<string>&Download all new messages</string>
|
||||
<string>&Fetch all feeds</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+U</string>
|
||||
@ -256,7 +256,7 @@
|
||||
</action>
|
||||
<action name="m_actionUpdateSelectedItems">
|
||||
<property name="text">
|
||||
<string>Download messages for &selected items</string>
|
||||
<string>Fetch &selected feeds</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+U</string>
|
||||
@ -280,7 +280,10 @@
|
||||
</action>
|
||||
<action name="m_actionMarkSelectedMessagesAsRead">
|
||||
<property name="text">
|
||||
<string>Mark selected messages as &read</string>
|
||||
<string>Mark articles &read</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Mark selected articles read</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true"/>
|
||||
@ -288,7 +291,10 @@
|
||||
</action>
|
||||
<action name="m_actionMarkSelectedMessagesAsUnread">
|
||||
<property name="text">
|
||||
<string>Mark selected messages as &unread</string>
|
||||
<string>Mark articles &unread</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Mark selected articles unread</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true"/>
|
||||
@ -296,7 +302,10 @@
|
||||
</action>
|
||||
<action name="m_actionSwitchImportanceOfSelectedMessages">
|
||||
<property name="text">
|
||||
<string>Switch &importance of selected messages</string>
|
||||
<string>Switch &importance</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Switch importance of selected articles</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true"/>
|
||||
@ -304,7 +313,7 @@
|
||||
</action>
|
||||
<action name="m_actionMarkSelectedItemsAsRead">
|
||||
<property name="text">
|
||||
<string>&Mark selected items as read</string>
|
||||
<string>&Mark selected items read</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Mark all messages (without message filters) from selected items as read.</string>
|
||||
@ -315,7 +324,7 @@
|
||||
</action>
|
||||
<action name="m_actionMarkSelectedItemsAsUnread">
|
||||
<property name="text">
|
||||
<string>&Mark selected items as unread</string>
|
||||
<string>&Mark selected items unread</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Mark all messages (without message filters) from selected items as unread.</string>
|
||||
@ -326,7 +335,7 @@
|
||||
</action>
|
||||
<action name="m_actionDeleteSelectedMessages">
|
||||
<property name="text">
|
||||
<string>&Delete selected messages</string>
|
||||
<string>&Delete selected articles</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true"/>
|
||||
@ -345,7 +354,10 @@
|
||||
</action>
|
||||
<action name="m_actionOpenSelectedSourceArticlesExternally">
|
||||
<property name="text">
|
||||
<string>Open selected source articles in &external browser</string>
|
||||
<string>Open in &external browser</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Open selected articles in external browser</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true"/>
|
||||
@ -353,7 +365,10 @@
|
||||
</action>
|
||||
<action name="m_actionOpenSelectedMessagesInternally">
|
||||
<property name="text">
|
||||
<string>Open selected messages in &internal browser</string>
|
||||
<string>Open in &internal browser</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Open selected articles in internal browser</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true"/>
|
||||
@ -375,7 +390,7 @@
|
||||
</action>
|
||||
<action name="m_actionMarkAllItemsRead">
|
||||
<property name="text">
|
||||
<string>&Mark all items as read</string>
|
||||
<string>&Mark all items read</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Marks all messages in all items read. This does not take message filters into account.</string>
|
||||
@ -400,7 +415,7 @@
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Switch visibility of main &window</string>
|
||||
<string>Switch main &window visibility</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Hides main window if it is visible and shows it if it is hidden.</string>
|
||||
@ -455,7 +470,7 @@
|
||||
</action>
|
||||
<action name="m_actionSelectNextMessage">
|
||||
<property name="text">
|
||||
<string>Select &next message</string>
|
||||
<string>&Next article</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">W</string>
|
||||
@ -463,7 +478,7 @@
|
||||
</action>
|
||||
<action name="m_actionSelectPreviousMessage">
|
||||
<property name="text">
|
||||
<string>Select &previous message</string>
|
||||
<string>&Previous article</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Q</string>
|
||||
@ -527,7 +542,7 @@
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Feed/message list headers</string>
|
||||
<string>&List headers</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">H</string>
|
||||
@ -559,7 +574,7 @@
|
||||
</action>
|
||||
<action name="m_actionRestoreDatabaseSettings">
|
||||
<property name="text">
|
||||
<string>&Restore database/settings</string>
|
||||
<string>&Restore settings</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true"/>
|
||||
@ -567,7 +582,7 @@
|
||||
</action>
|
||||
<action name="m_actionBackupDatabaseSettings">
|
||||
<property name="text">
|
||||
<string>&Backup database/settings</string>
|
||||
<string>&Backup settings</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true"/>
|
||||
@ -575,7 +590,7 @@
|
||||
</action>
|
||||
<action name="m_actionSwitchMessageListOrientation">
|
||||
<property name="text">
|
||||
<string>Switch message list layout orientation</string>
|
||||
<string>Switch layout orientation</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true"/>
|
||||
@ -591,7 +606,10 @@
|
||||
</action>
|
||||
<action name="m_actionSendMessageViaEmail">
|
||||
<property name="text">
|
||||
<string>Send selected message via e-mail</string>
|
||||
<string>Send via e-mail</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Send selected articles via e-mail</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true"/>
|
||||
@ -610,7 +628,7 @@
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show only unread items</string>
|
||||
<string>Show unread items only</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">U</string>
|
||||
@ -626,7 +644,7 @@
|
||||
</action>
|
||||
<action name="m_actionServiceAdd">
|
||||
<property name="text">
|
||||
<string>&Add new account</string>
|
||||
<string>&Add account</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true"/>
|
||||
@ -634,7 +652,7 @@
|
||||
</action>
|
||||
<action name="m_actionRestoreSelectedMessages">
|
||||
<property name="text">
|
||||
<string>&Restore selected messages</string>
|
||||
<string>&Restore selected articles</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true"/>
|
||||
@ -658,7 +676,7 @@
|
||||
</action>
|
||||
<action name="m_actionSelectNextUnreadMessage">
|
||||
<property name="text">
|
||||
<string>Select next &unread message</string>
|
||||
<string>Next &unread article</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true"/>
|
||||
@ -706,7 +724,7 @@
|
||||
</action>
|
||||
<action name="m_actionStopRunningItemsUpdate">
|
||||
<property name="text">
|
||||
<string>Stop ongoing downloading of messages</string>
|
||||
<string>Stop ongoing fetching of feeds</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true"/>
|
||||
@ -745,7 +763,7 @@
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Enable message preview</string>
|
||||
<string>&Enable article preview</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="m_actionCopyUrlSelectedFeed">
|
||||
@ -758,7 +776,7 @@
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show only &unread messages</string>
|
||||
<string>Show &unread articles only</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="m_actionMessageFilters">
|
||||
@ -776,7 +794,7 @@
|
||||
</action>
|
||||
<action name="m_actionUpdateSelectedItemsWithCustomTimers">
|
||||
<property name="text">
|
||||
<string>Download messages for items with &custom auto-download policy</string>
|
||||
<string>Fetch feeds with &custom auto-download policy</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="m_actionAlternateColorsInLists">
|
||||
|
Loading…
x
Reference in New Issue
Block a user