704b5e581a
The old rescheduling dialog's two options have been split into two separate menu items, "Forget", and "Set Due Date" For cards that are not review cards, "Set Due Date" behaves like the old reschedule option, changing the cards into a review card, and and setting both the interval and due date to the provided number of days. When "Set Due Date" is applied to a review card, it no longer resets the card's interval. Instead, it looks at how much the provided number of days will change the original interval, and adjusts the interval by that amount, so that cards that are answered earlier receive a smaller next interval, and cards that are answered after a longer delay receive a bonus. For example, imagine a card was answered on day 5, and given an interval of 10 days, so it has a due date of day 15. - if on day 10 the due date is changed to day 12 (today+2), the card is being scheduled 3 days earlier than it was supposed to be, so the interval will be adjusted to 7 days. - and if on day 10 the due date is changed to day 20, the interval will be changed from 10 days to 15 days. There is no separate option to reset the interval of a review card, but it can be accomplished by forgetting the card(s), and then setting the desired due date. Other notes: - Added the action to the review screen as well. - Set the shortcut to Ctrl+Shift+D, and changed the existing Delete Tags shortcut to Ctrl+Alt+Shift+A.
634 lines
18 KiB
XML
634 lines
18 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>Dialog</class>
|
|
<widget class="QMainWindow" name="Dialog">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>750</width>
|
|
<height>493</height>
|
|
</rect>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>400</width>
|
|
<height>400</height>
|
|
</size>
|
|
</property>
|
|
<property name="windowIcon">
|
|
<iconset resource="icons.qrc">
|
|
<normaloff>:/icons/anki.png</normaloff>:/icons/anki.png</iconset>
|
|
</property>
|
|
<widget class="QWidget" name="centralwidget">
|
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
|
<property name="spacing">
|
|
<number>12</number>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>12</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>6</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>12</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>12</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QSplitter" name="splitter">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
|
<horstretch>4</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<widget class="QWidget" name="widget" native="true">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
|
<horstretch>3</horstretch>
|
|
<verstretch>1</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>12</number>
|
|
</property>
|
|
<property name="horizontalSpacing">
|
|
<number>12</number>
|
|
</property>
|
|
<property name="verticalSpacing">
|
|
<number>0</number>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QComboBox" name="searchEdit">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
<horstretch>9</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="editable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="insertPolicy">
|
|
<enum>QComboBox::NoInsert</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QTableView" name="tableView">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
<horstretch>9</horstretch>
|
|
<verstretch>1</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>150</height>
|
|
</size>
|
|
</property>
|
|
<property name="contextMenuPolicy">
|
|
<enum>Qt::ActionsContextMenu</enum>
|
|
</property>
|
|
<property name="horizontalScrollBarPolicy">
|
|
<enum>Qt::ScrollBarAsNeeded</enum>
|
|
</property>
|
|
<property name="editTriggers">
|
|
<set>QAbstractItemView::NoEditTriggers</set>
|
|
</property>
|
|
<property name="tabKeyNavigation">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="alternatingRowColors">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="selectionBehavior">
|
|
<enum>QAbstractItemView::SelectRows</enum>
|
|
</property>
|
|
<attribute name="horizontalHeaderCascadingSectionResizes">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
<attribute name="horizontalHeaderMinimumSectionSize">
|
|
<number>20</number>
|
|
</attribute>
|
|
<attribute name="horizontalHeaderHighlightSections">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
|
|
<bool>true</bool>
|
|
</attribute>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="verticalLayoutWidget">
|
|
<layout class="QVBoxLayout" name="verticalLayout" stretch="0">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout2">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QWidget" name="fieldsArea" native="true">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>1</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>200</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QMenuBar" name="menubar">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>750</width>
|
|
<height>24</height>
|
|
</rect>
|
|
</property>
|
|
<widget class="QMenu" name="menuEdit">
|
|
<property name="title">
|
|
<string>QT_ACCEL_EDIT</string>
|
|
</property>
|
|
<addaction name="actionUndo"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionSelectAll"/>
|
|
<addaction name="actionSelectNotes"/>
|
|
<addaction name="actionInvertSelection"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionClose"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionCreateFilteredDeck"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menuJump">
|
|
<property name="title">
|
|
<string>QT_ACCEL_GO</string>
|
|
</property>
|
|
<addaction name="actionFind"/>
|
|
<addaction name="actionSidebarFilter"/>
|
|
<addaction name="actionSidebar"/>
|
|
<addaction name="actionNote"/>
|
|
<addaction name="actionCardList"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionFirstCard"/>
|
|
<addaction name="actionPreviousCard"/>
|
|
<addaction name="actionNextCard"/>
|
|
<addaction name="actionLastCard"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menu_Help">
|
|
<property name="title">
|
|
<string>QT_ACCEL_HELP</string>
|
|
</property>
|
|
<addaction name="actionGuide"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menu_Cards">
|
|
<property name="title">
|
|
<string>QT_ACCEL_CARDS</string>
|
|
</property>
|
|
<widget class="QMenu" name="menuFlag">
|
|
<property name="title">
|
|
<string>BROWSING_FLAG</string>
|
|
</property>
|
|
<addaction name="actionRed_Flag"/>
|
|
<addaction name="actionOrange_Flag"/>
|
|
<addaction name="actionGreen_Flag"/>
|
|
<addaction name="actionBlue_Flag"/>
|
|
</widget>
|
|
<addaction name="actionChange_Deck"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="action_set_due_date"/>
|
|
<addaction name="action_forget"/>
|
|
<addaction name="actionReposition"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionToggle_Suspend"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="menuFlag"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="action_Info"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menu_Notes">
|
|
<property name="title">
|
|
<string>QT_ACCEL_NOTES</string>
|
|
</property>
|
|
<addaction name="actionAdd"/>
|
|
<addaction name="actionExport"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionAdd_Tags"/>
|
|
<addaction name="actionRemove_Tags"/>
|
|
<addaction name="actionClear_Unused_Tags"/>
|
|
<addaction name="actionToggle_Mark"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionChangeModel"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionFindDuplicates"/>
|
|
<addaction name="actionFindReplace"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionManage_Note_Types"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionDelete"/>
|
|
</widget>
|
|
<addaction name="menuEdit"/>
|
|
<addaction name="menu_Notes"/>
|
|
<addaction name="menu_Cards"/>
|
|
<addaction name="menuJump"/>
|
|
<addaction name="menu_Help"/>
|
|
</widget>
|
|
<action name="actionSelectAll">
|
|
<property name="text">
|
|
<string>QT_ACCEL_SELECT_ALL</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Alt+A</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionUndo">
|
|
<property name="text">
|
|
<string>QT_ACCEL_UNDO</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Alt+Z</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionInvertSelection">
|
|
<property name="text">
|
|
<string>QT_ACCEL_INVERT_SELECTION</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Alt+S</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionFind">
|
|
<property name="text">
|
|
<string>QT_ACCEL_FIND</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+F</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionNote">
|
|
<property name="text">
|
|
<string>QT_ACCEL_NOTE</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Shift+N</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionNextCard">
|
|
<property name="text">
|
|
<string>QT_ACCEL_NEXT_CARD</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+N</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionPreviousCard">
|
|
<property name="text">
|
|
<string>QT_ACCEL_PREVIOUS_CARD</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+P</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionGuide">
|
|
<property name="text">
|
|
<string>QT_ACCEL_GUIDE</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">F1</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionChangeModel">
|
|
<property name="text">
|
|
<string>BROWSING_CHANGE_NOTE_TYPE2</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Shift+M</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionSelectNotes">
|
|
<property name="text">
|
|
<string>QT_ACCEL_SELECT_NOTES</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionFindReplace">
|
|
<property name="text">
|
|
<string>QT_ACCEL_FIND_AND_REPLACE</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Alt+F</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionSidebarFilter">
|
|
<property name="text">
|
|
<string>QT_ACCEL_FILTER</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Shift+F</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionCardList">
|
|
<property name="text">
|
|
<string>BROWSING_CARD_LIST</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Shift+L</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionFindDuplicates">
|
|
<property name="text">
|
|
<string>QT_ACCEL_FIND_DUPLICATES</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionReposition">
|
|
<property name="text">
|
|
<string>BROWSING_REPOSITION</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Shift+S</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionFirstCard">
|
|
<property name="text">
|
|
<string>BROWSING_FIRST_CARD</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Home</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionLastCard">
|
|
<property name="text">
|
|
<string>BROWSING_LAST_CARD</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">End</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionClose">
|
|
<property name="text">
|
|
<string>ACTIONS_CLOSE</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+W</string>
|
|
</property>
|
|
</action>
|
|
<action name="action_Info">
|
|
<property name="text">
|
|
<string>QT_ACCEL_INFO</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Shift+I</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionAdd_Tags">
|
|
<property name="text">
|
|
<string>BROWSING_ADD_TAGS2</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Shift+A</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionRemove_Tags">
|
|
<property name="text">
|
|
<string>BROWSING_REMOVE_TAGS</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Alt+Shift+A</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionToggle_Suspend">
|
|
<property name="text">
|
|
<string>BROWSING_TOGGLE_SUSPEND</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+J</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionDelete">
|
|
<property name="text">
|
|
<string>ACTIONS_DELETE</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Del</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionAdd">
|
|
<property name="text">
|
|
<string>BROWSING_ADD_NOTES</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+E</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionChange_Deck">
|
|
<property name="text">
|
|
<string>BROWSING_CHANGE_DECK2</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+D</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionRed_Flag">
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>ACTIONS_RED_FLAG</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+1</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionOrange_Flag">
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>ACTIONS_ORANGE_FLAG</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+2</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionGreen_Flag">
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>ACTIONS_GREEN_FLAG</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+3</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionBlue_Flag">
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>ACTIONS_BLUE_FLAG</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+4</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionSidebar">
|
|
<property name="text">
|
|
<string>BROWSING_SIDEBAR</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Shift+R</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionClear_Unused_Tags">
|
|
<property name="text">
|
|
<string>BROWSING_CLEAR_UNUSED_TAGS</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionManage_Note_Types">
|
|
<property name="text">
|
|
<string>BROWSING_MANAGE_NOTE_TYPES</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionToggle_Mark">
|
|
<property name="text">
|
|
<string>BROWSING_TOGGLE_MARK</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+K</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionExport">
|
|
<property name="text">
|
|
<string>QT_ACCEL_EXPORT_NOTES</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Shift+E</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionCreateFilteredDeck">
|
|
<property name="text">
|
|
<string>QT_MISC_CREATE_FILTERED_DECK</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+G</string>
|
|
</property>
|
|
</action>
|
|
<action name="action_set_due_date">
|
|
<property name="text">
|
|
<string>QT_ACCEL_SET_DUE_DATE</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string notr="true">Ctrl+Shift+D</string>
|
|
</property>
|
|
</action>
|
|
<action name="action_forget">
|
|
<property name="text">
|
|
<string>QT_ACCEL_FORGET</string>
|
|
</property>
|
|
</action>
|
|
</widget>
|
|
<resources>
|
|
<include location="icons.qrc"/>
|
|
</resources>
|
|
<connections>
|
|
<connection>
|
|
<sender>actionSelectAll</sender>
|
|
<signal>triggered()</signal>
|
|
<receiver>tableView</receiver>
|
|
<slot>selectAll()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>-1</x>
|
|
<y>-1</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>299</x>
|
|
<y>279</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>actionClose</sender>
|
|
<signal>triggered()</signal>
|
|
<receiver>Dialog</receiver>
|
|
<slot>close()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>-1</x>
|
|
<y>-1</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>374</x>
|
|
<y>199</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|