-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTODO
More file actions
30 lines (22 loc) · 1.23 KB
/
TODO
File metadata and controls
30 lines (22 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Clipboard flushing on Windows
https://stackoverflow.com/questions/2007103/how-can-i-disable-clear-of-clipboard-on-exit-of-pyqt4-application#2011376
Converting images from Qt <-> PIL
https://stackoverflow.com/questions/1733096/convert-pyqt-to-pil-image#1756587
note: likely embarassingly slow, so we need to be careful about this
Overriding closeEvent to allow "Are you sure you want to quit dmclient?"
better strategy: just autosave the campaign progress!
Utilise parts of Qt to avoid having to write too much code.
-> use QStyledItemDelegate and QItemEditorFactory
see: http://www.diusrex.com/2014/09/qt-modelview-editing-tutorial/
also see, for a discussion on using dialogs:
https://stackoverflow.com/questions/22868856/qfiledialog-as-editor-for-tableview-how-to-get-result
Use setInformativeText in dialogs. One way might be to have dialog text be two
lines: first line is setText. second line is setInformativeText.
Shortcuts are weird.
"New Campaign" has ^/⌘n
New Encounter from Template has ^/⌘N
New Session isn't in File menu
How often is each action? Yeah...
Ugh, QLineEdits/etc? don't have their own undo/redo model built-in. So we need
to hack those in.
Interesting question: does this fit with global undo/redo?