mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
add tooltips to buttons, improve open online dialog
This commit is contained in:
parent
3ffdae29bb
commit
e48cfaae82
3 changed files with 28 additions and 18 deletions
|
@ -182,6 +182,10 @@ class DeckChooser(QDialog):
|
|||
self.dialog = ankiqt.forms.syncdeck.Ui_DeckChooser()
|
||||
self.dialog.setupUi(self)
|
||||
self.create = create
|
||||
if self.create:
|
||||
self.dialog.topLabel.setText(_("<h1>Synchronize</h1>"))
|
||||
else:
|
||||
self.dialog.topLabel.setText(_("<h1>Open Online Deck</h1>"))
|
||||
if self.create:
|
||||
self.dialog.decks.addItem(QListWidgetItem(
|
||||
_("Create '%s' on server") % self.parent.syncName))
|
||||
|
@ -191,7 +195,7 @@ class DeckChooser(QDialog):
|
|||
if self.create:
|
||||
msg = _("Merge with '%s' on server") % name
|
||||
else:
|
||||
msg = _("Copy '%s' from server") % name
|
||||
msg = name
|
||||
item = QListWidgetItem(msg)
|
||||
self.dialog.decks.addItem(item)
|
||||
self.dialog.decks.setCurrentRow(0)
|
||||
|
|
|
@ -214,8 +214,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>100</width>
|
||||
<height>30</height>
|
||||
<width>370</width>
|
||||
<height>49</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout" >
|
||||
|
@ -234,6 +234,9 @@
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="showAnswerButton" >
|
||||
<property name="toolTip" >
|
||||
<string>Show the answer (shortcut key: space or enter)</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Show Answer</string>
|
||||
</property>
|
||||
|
@ -246,8 +249,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>100</width>
|
||||
<height>30</height>
|
||||
<width>370</width>
|
||||
<height>49</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3" >
|
||||
|
@ -334,6 +337,9 @@
|
|||
</item>
|
||||
<item row="1" column="0" >
|
||||
<widget class="QPushButton" name="easeButton1" >
|
||||
<property name="toolTip" >
|
||||
<string>Show this card again soon (shortcut key: 1)</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Again</string>
|
||||
</property>
|
||||
|
@ -341,6 +347,9 @@
|
|||
</item>
|
||||
<item row="1" column="1" >
|
||||
<widget class="QPushButton" name="easeButton2" >
|
||||
<property name="toolTip" >
|
||||
<string>Wait a little longer next time (shortcut key: 2)</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Hard</string>
|
||||
</property>
|
||||
|
@ -348,6 +357,9 @@
|
|||
</item>
|
||||
<item row="1" column="2" >
|
||||
<widget class="QPushButton" name="easeButton3" >
|
||||
<property name="toolTip" >
|
||||
<string>Wait longer next time (shortcut key: 3)</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Good</string>
|
||||
</property>
|
||||
|
@ -355,6 +367,9 @@
|
|||
</item>
|
||||
<item row="1" column="3" >
|
||||
<widget class="QPushButton" name="easeButton4" >
|
||||
<property name="toolTip" >
|
||||
<string>Wait a lot longer next time (shortcut key: 4)</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Easy</string>
|
||||
</property>
|
||||
|
|
|
@ -16,22 +16,13 @@
|
|||
<property name="spacing" >
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="leftMargin" >
|
||||
<number>9</number>
|
||||
</property>
|
||||
<property name="topMargin" >
|
||||
<number>9</number>
|
||||
</property>
|
||||
<property name="rightMargin" >
|
||||
<number>9</number>
|
||||
</property>
|
||||
<property name="bottomMargin" >
|
||||
<property name="margin" >
|
||||
<number>9</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="label" >
|
||||
<widget class="QLabel" name="topLabel" >
|
||||
<property name="text" >
|
||||
<string><h1>Where should we synchronize to?</h1></string>
|
||||
<string>toplabel</string>
|
||||
</property>
|
||||
<property name="alignment" >
|
||||
<set>Qt::AlignCenter</set>
|
||||
|
@ -53,7 +44,7 @@
|
|||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons" >
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Reference in a new issue