Commit graph

235 commits

Author SHA1 Message Date
Damien Elmes
60ba70b1b5 add cards dialog & model chooser 2011-12-10 21:21:20 +09:00
Damien Elmes
f8d39ca210 update deck configuration dialog 2011-12-10 04:21:53 +09:00
Damien Elmes
279c40b5f5 implement prefs window 2011-12-09 00:41:31 +09:00
Damien Elmes
7ca5a23e7c add styles back 2011-12-08 05:19:09 +09:00
Damien Elmes
6148a28bfb make sure we autosync on collection close 2011-12-08 02:32:44 +09:00
Damien Elmes
b025eb9983 add auto optimiziation on close 2011-12-08 01:42:14 +09:00
Damien Elmes
fb88fe2e45 backups 2011-12-08 01:22:25 +09:00
Damien Elmes
9d26496ceb profile switching & refactor closing 2011-12-08 00:47:29 +09:00
Damien Elmes
681c8dea9f add autosync flag, make sure we close col windows on sync 2011-12-08 00:31:04 +09:00
Damien Elmes
9a6ddae1cb removeHook -> remHook 2011-12-06 00:11:48 +09:00
Damien Elmes
d34ee6822f fix ctrl+c handler 2011-12-06 00:08:42 +09:00
Damien Elmes
aca30de49e default to deck browser if decks > 1 2011-12-05 15:01:52 +09:00
Damien Elmes
0085c9fc6c fix closing 2011-12-05 14:52:20 +09:00
Damien Elmes
7916dea182 make sure undo is updated on col load 2011-12-04 19:10:08 +09:00
Damien Elmes
64ed220fba fix autoupdate; make program limit 5 minutes too 2011-12-04 16:24:58 +09:00
Damien Elmes
67285cd230 fix full upload 2011-12-04 15:30:12 +09:00
Damien Elmes
e03b51fae8 option to disable media sync 2011-12-04 14:01:22 +09:00
Damien Elmes
7a71a0798c new sync gui 2011-12-04 13:54:00 +09:00
Damien Elmes
52881b655d improve unused media deletion 2011-12-02 22:30:33 +09:00
Damien Elmes
3ac7aacb54 remove optimize sync warning 2011-12-02 21:50:07 +09:00
Damien Elmes
975f66e693 get type answer support working again 2011-12-02 17:58:53 +09:00
Damien Elmes
ac7602675a tooltips 2011-12-02 17:19:57 +09:00
Damien Elmes
da25e87ac4 key handling stuff 2011-12-01 19:42:36 +09:00
Damien Elmes
5e97a285a1 timer, global shortcuts 2011-12-01 18:45:13 +09:00
Damien Elmes
9c5eb98114 hook up context menu and remaining count 2011-12-01 17:05:04 +09:00
Damien Elmes
5dd5ab710a connect current card editor; ensure same card is reviewed 2011-12-01 15:41:24 +09:00
Damien Elmes
cecec92934 work on reviewer 2011-12-01 15:15:20 +09:00
Damien Elmes
c2176edd07 snapshot of work on new show answer button 2011-11-30 21:10:33 +09:00
Damien Elmes
0965c3a888 revert the dockable changes, strip old status code 2011-11-30 18:20:18 +09:00
Damien Elmes
b745567bb3 add another toolbar at the bottom 2011-11-30 17:54:55 +09:00
Damien Elmes
bea1e60fc8 remove actions that'll be placed on the card 2011-11-30 15:58:39 +09:00
Damien Elmes
b9522487ad finish fields dialog 2011-11-30 12:36:12 +09:00
Damien Elmes
3362ca06a3 move card info into separate diag 2011-11-29 17:46:32 +09:00
Damien Elmes
1c58306d7a new toolbar for the browser 2011-11-29 13:35:13 +09:00
Damien Elmes
cf87d19905 refactor card layout, reviewing 2011-11-28 14:37:07 +09:00
Damien Elmes
f2a39aad2a move the toolbar into a separate file and make it global 2011-11-27 11:25:13 +09:00
Damien Elmes
f75ef69fba experimenting with a new toolbar 2011-11-26 22:07:10 +09:00
Damien Elmes
5f1b762a15 fix stats, start work on revamped overview 2011-11-26 13:20:55 +09:00
Damien Elmes
67c2ccc954 should init profile regardless of upgrade being required or not 2011-11-26 08:12:59 +09:00
Damien Elmes
a1a7e7341c upgrade wizard and first startup language selection dialog 2011-11-25 15:08:41 +09:00
Damien Elmes
7c68b58d44 profile gui, new deck browser 2011-11-24 18:42:06 +09:00
Damien Elmes
f4150a5df4 refactor; add profile support 2011-11-24 12:48:58 +09:00
Damien Elmes
87da9f48b1 facts->notes 2011-11-23 13:35:14 +09:00
Damien Elmes
2f7bbd4d86 libanki tweaks 2011-09-21 03:07:57 +09:00
Damien Elmes
27533c0fc8 tweak wording 2011-09-07 22:18:50 +09:00
Damien Elmes
18812655ab some initial porting to the latest libanki 2011-08-28 15:24:30 +09:00
Damien Elmes
ef5e94db9e only reset() if there's an active deck 2011-05-04 16:42:33 +09:00
Damien Elmes
247276b223 fix rename 2011-04-29 11:39:27 +09:00
Damien Elmes
3a4443404b don't call toString() on registry results; don't cast QUrl.toString() 2011-04-28 09:28:03 +09:00
Damien Elmes
a253d756e3 use pyqt api2; move all imports into a single file for pyside 2011-04-28 09:28:02 +09:00
Damien Elmes
e28f5fe931 tweak config and startup 2011-04-28 09:28:02 +09:00
Damien Elmes
1a0d273b78 plugins -> add-ons; ditch separate download menu
Because of the extensive changes almost all plugins will require an update to
work with 2.0, and add-ons is a slightly friendlier name.
2011-04-28 09:28:02 +09:00
Damien Elmes
60001e41e4 rename support, titlebar, recent decks
- use libanki's new .rename(); don't need to close any deck windows anymore
- titlebar updated only on app load now. No longer shows card
  count or due count, as computing it is expensive, and drops the deck
  name as it's more effective to use groups than separate decks now
2011-04-28 09:28:02 +09:00
Damien Elmes
a45f2ceedc add autosave; improve undo state handling 2011-04-28 09:28:01 +09:00
Damien Elmes
4ab7185cc3 swap the deck list button with a groups button 2011-04-28 09:28:01 +09:00
Damien Elmes
5a5259971a after an undo, disable if empty 2011-04-28 09:28:00 +09:00
Damien Elmes
a13b539819 fix resetRequired state getting stuck 2011-04-28 09:28:00 +09:00
Damien Elmes
2dcb86e4ac fix audio replay 2011-04-28 09:28:00 +09:00
Damien Elmes
7b9b78fe63 make sure card stats is hidden when moving from review 2011-04-28 09:28:00 +09:00
Damien Elmes
863356badb fix about 2011-04-28 09:28:00 +09:00
Damien Elmes
c7cfbd1d35 fix deck switching 2011-04-28 09:28:00 +09:00
Damien Elmes
dd0a6563e7 reset conf after edit current 2011-04-28 09:27:59 +09:00
Damien Elmes
4a931f811f add the toolbar config back to the prefs, so osx users can toggle 2011-04-28 09:27:58 +09:00
Damien Elmes
44fd672ef8 reenable closeAllWindows() 2011-04-28 09:27:58 +09:00
Damien Elmes
a51d51bca6 use new libanki temp funcs 2011-04-28 09:27:58 +09:00
Damien Elmes
f245c7651c use os check shortcuts 2011-04-28 09:27:58 +09:00
Damien Elmes
f55c7492fd cleanup when leaving review state 2011-04-28 09:27:58 +09:00
Damien Elmes
74e5122717 modal open dialogs 2011-04-28 09:27:58 +09:00
Damien Elmes
7de4552b0e configurable document dir 2011-04-28 09:27:57 +09:00
Damien Elmes
6350f620ba reinit current state after reset 2011-04-28 09:27:57 +09:00
Damien Elmes
f58110855b tweak some shortcuts 2011-04-28 09:27:57 +09:00
Damien Elmes
ae9a21167b modal info dialogs 2011-04-28 09:27:57 +09:00
Damien Elmes
915798cf46 prevent flicker on modal dialogs 2011-04-28 09:27:56 +09:00
Damien Elmes
2c7a939073 require a reset after any edits 2011-04-28 09:27:56 +09:00
Damien Elmes
0c5c130f9f more robust deck load on startup 2011-04-28 09:27:56 +09:00
Damien Elmes
9da0a83735 edit current, hide 'close' button on osx 2011-04-28 09:27:56 +09:00
Damien Elmes
9900b02795 mark/bury/etc in main window 2011-04-28 09:27:56 +09:00
Damien Elmes
5828081475 delay reset of main window after edits 2011-04-28 09:27:56 +09:00
Damien Elmes
8865ca6131 _fields -> fields 2011-04-28 09:27:55 +09:00
Damien Elmes
7da7894c89 add a progress handler to upgrade 2011-04-28 09:27:55 +09:00
Damien Elmes
82be9a432e more column work
- removed sort area; users can click on columns to sort now
- displayed columns are now loaded/saved from deck
2011-04-28 09:27:54 +09:00
Damien Elmes
1d9f0176a5 fix sorting, allow sort changing, catch attempts to modify schema 2011-04-28 09:27:54 +09:00
Damien Elmes
e029de6cf9 start of filter tree 2011-04-28 09:27:53 +09:00
Damien Elmes
f2865d7bf5 bare minimum to get the browser to show up 2011-04-28 09:27:53 +09:00
Damien Elmes
7acc6a882b gpl>agpl 2011-04-28 09:27:53 +09:00
Damien Elmes
4d694f0064 modelchooser and card adding 2011-04-28 09:27:52 +09:00
Damien Elmes
058f5e6efc split template selection into separate dialog, add manage button in card layout 2011-04-28 09:27:51 +09:00
Damien Elmes
6459ed6396 move models from deckprops into separate models screen w/ card templates 2011-04-28 09:27:50 +09:00
Damien Elmes
2f6867c4cc start of clayout port 2011-04-28 09:27:50 +09:00
Damien Elmes
3155384a9a allow group selection from graphs window 2011-04-28 09:27:50 +09:00
Damien Elmes
7ab89d2637 merge deck stats and graphs together 2011-04-28 09:27:50 +09:00
Damien Elmes
d48813c743 clarify import new deck msg 2011-04-28 09:27:49 +09:00
Damien Elmes
9fa640feca add progress to check (media) db, fix call 2011-04-28 09:27:49 +09:00
Damien Elmes
42052e6349 update deck properties, rename to deckopts 2011-04-28 09:27:49 +09:00
Damien Elmes
37d04c1831 update preferences 2011-04-28 09:27:49 +09:00
Damien Elmes
7283aba0dd tweak shortcuts; remove study/cram buttons from group screen 2011-04-28 09:26:52 +09:00
Damien Elmes
a70d7be25b add group deletion, add checkpoint() 2011-04-28 09:26:52 +09:00
Damien Elmes
827b22c88c new undo links; disable individual actions instead of menus to work around osx issue 2011-04-28 09:26:51 +09:00
Damien Elmes
363571cc94 trigger on key release instead of press; add overview action+shortcut 2011-04-28 09:26:50 +09:00
Damien Elmes
a036b97a68 add new study options 2011-04-28 09:26:50 +09:00
Damien Elmes
76633d9cce remove some old actions 2011-04-28 09:26:50 +09:00
Damien Elmes
698ba38e74 move various major functions into separate files 2011-04-28 09:26:50 +09:00
Damien Elmes
73edb5eb28 drop the tray 2011-04-28 09:26:50 +09:00
Damien Elmes
204cd3c824 remove obsolete small optimize option 2011-04-28 09:26:50 +09:00
Damien Elmes
a1e5a13f98 split plugin handling into separate file 2011-04-28 09:26:50 +09:00
Damien Elmes
e6b153df13 split error handling into separate file; remove dependency on recurring timer 2011-04-28 09:26:50 +09:00
Damien Elmes
f20d730f3c new graph handling 2011-04-28 09:26:49 +09:00
Damien Elmes
8ea949db74 move the button links to actual buttons, fix some bugs
- by using normal buttons we get the native look&feel and space can activate
  the buttons which is what users expect. Unfortunately it seems that the
  buttons are currently hard-coded to a small font size; hopefully this will
  be fixed in a future toolkit release
- remove the space hack from webview
- move the times into the ease buttons
- set a default button on a few screens
- fix a bug with clearing progress after an error
2011-04-28 09:26:49 +09:00
Damien Elmes
b5f393c7fe deck empty screen 2011-04-28 09:26:49 +09:00
Damien Elmes
90002a3073 note updated counts when returning to deck browser 2011-04-28 09:26:49 +09:00
Damien Elmes
1b20f948f3 add the ability to open deck stats in the browser 2011-04-28 09:26:48 +09:00
Damien Elmes
1f98ef588f add deck stats 2011-04-28 09:26:48 +09:00
Damien Elmes
437da036ea add card stats 2011-04-28 09:26:48 +09:00
Damien Elmes
3c8763602c remove help, drop aqt.utils from frequently used functions 2011-04-28 09:26:48 +09:00
Damien Elmes
abe67f6faa tweak overview layout 2011-04-28 09:26:48 +09:00
Damien Elmes
f561bd1473 move the key handler into the webview instead of the main window 2011-04-28 09:26:48 +09:00
Damien Elmes
ccd49ece47 don't show deck browser when quitting 2011-04-28 09:26:47 +09:00
Damien Elmes
b6844ba817 handle card answering 2011-04-28 09:26:47 +09:00
Damien Elmes
c09070df26 add ease buttons 2011-04-28 09:26:47 +09:00
Damien Elmes
e48e268ee5 add answer display 2011-04-28 09:26:47 +09:00
Damien Elmes
7fcaa98fa8 minor tweaks 2011-04-28 09:26:47 +09:00
Damien Elmes
d3a77c1c67 add answer button; more display tweaks; fix bold munging 2011-04-28 09:26:47 +09:00
Damien Elmes
46c14b5efc question displaying 2011-04-28 09:26:47 +09:00
Damien Elmes
265b598173 various layout tweaks 2011-04-28 09:26:47 +09:00
Damien Elmes
7604fa3797 move the overview into a separate file; rename noDeck state to deckBrowser 2011-04-28 09:26:47 +09:00
Damien Elmes
c9c7b8c25b start work on an overview; add flot to resources 2011-04-28 09:26:47 +09:00
Damien Elmes
045d92238d move view.py into reviewer.py 2011-04-28 09:26:46 +09:00
Damien Elmes
f96e03875a more deck browser work
- add a separate toolbar for the deck browser
- add a message when there are no decks
- change the progress handler not to lock the UI immediately, which causes
  flicker
- ensure the webview is focused after stdHtml()
2011-04-28 09:26:46 +09:00
Damien Elmes
2e327f4fe9 more deck browser improvements
- shortcut keys
- options menu items implemented
- fixed handling of locked decks
- limit accels to 35
2011-04-28 09:26:46 +09:00
Damien Elmes
3b085c486e tweak layout 2011-04-28 09:26:46 +09:00
Damien Elmes
0a4efd018f add js/py bridge, jquery 2011-04-28 09:26:46 +09:00
Damien Elmes
d948b00c54 start refactoring main window
- moved progress handling into separate progress.py
- moved deck browser code into separate deckbrowser.py
- started reworking the state code; views will be rolled into this in the
  future
- the main window has been stripped of the study options, inline editor,
  congrats screen and so on, and now consists of a single main widget which
  has a webview placed inside it. The stripped features will be implemented
  either in separate windows, or as part of the web view
2011-04-28 09:26:46 +09:00
Damien Elmes
c01c6cb79a update config.py
- move into an sqlite file so we don't have to worry about db corruption
  anymore, and can share the deck list among multiple instances
- remove some old options
2011-04-28 09:26:46 +09:00
Damien Elmes
fbb7fe8a3e tidy up __init__.py 2011-04-28 09:26:45 +09:00
Damien Elmes
103871a5b1 refactor file layout
- ankiqt->aqt
- move all the files in ui into the top level
- move icons_rc.py into aqt/forms, and the qrc into designer/
- remove setuptools
2011-04-28 09:26:45 +09:00
Renamed from ankiqt/ui/main.py (Browse further)